Search:
Type: Posts; User: Buffu
Search:
Search took 0.03 seconds.
-
December 23rd, 2016, 11:49 AM
None of them works, either they show garbage character or nothing. Please help.
-
December 18th, 2016, 07:07 AM
I want to print '▲▼►◄' in my c++ console but the problem is when I write
std::wcout << "\u25B2"
It produces capital gamma every time instead of printing ▲ or ▼.
How can I fix this ?
-
December 18th, 2016, 06:59 AM
Yes I got this also working. Thank you very very much.
-
December 18th, 2016, 12:56 AM
Thanks the
_kbhit() function worked.
I have one more question.
The
_kbhit() function will report true every frame if the a button is just held down, I don't want that,
Is there a way so...
-
December 17th, 2016, 02:13 PM
Is there any way to get input from user in c++ such that I get input when he presses any key, if he did not press any key then program should proceed.
When we use getch(), then program waits for...
-
December 17th, 2016, 11:52 AM
Nevermind I got it working, Thanks.
Final code.
#include "Input.h"
#include <iostream>
#include <windows.h>
Input::Input(){}
int Input::keyPressed = 0;
-
December 17th, 2016, 11:41 AM
Now I get a somewhat better behavior. Now I have to keep tapping a key to get positive result else I get negative result.
I don't want this, I want to get positive result if I press 'a' not only if...
-
December 17th, 2016, 11:35 AM
I use but still getting same error.
-
December 17th, 2016, 10:51 AM
So, How can I clean the buffer ?
-
December 17th, 2016, 01:56 AM
This is my Input class:
.h file :-
#include <iostream>
#include <conio.h>
#include <windows.h>
#include "Input.h"
int main(){
while(1){
|
Click Here to Expand Forum to Full Width
|