CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Buffu

Search: Search took 0.04 seconds.

  1. Re: How can I print unicode symbols in c++ windows console ?

    None of them works, either they show garbage character or nothing. Please help.
  2. How can I print unicode symbols in c++ windows console ?

    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 ?
  3. Re: How to get input from c++ without stopping for user to press a key ?

    Yes I got this also working. Thank you very very much.
  4. Re: How to get input from c++ without stopping for user to press a key ?

    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...
  5. How to get input from c++ without stopping for user to press a key ?

    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...
  6. Re: Not getting inputs correctly,how should I fix it ?

    Nevermind I got it working, Thanks.

    Final code.

    #include "Input.h"
    #include <iostream>
    #include <windows.h>

    Input::Input(){}
    int Input::keyPressed = 0;
  7. Re: Not getting inputs correctly,how should I fix it ?

    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...
  8. Re: Not getting inputs correctly,how should I fix it ?

    I use but still getting same error.
  9. Re: Not getting inputs correctly,how should I fix it ?

    So, How can I clean the buffer ?
  10. [RESOLVED] Not getting inputs correctly,how should I fix it ?

    This is my Input class:
    .h file :-

    #include <iostream>
    #include <conio.h>
    #include <windows.h>
    #include "Input.h"

    int main(){
    while(1){
Results 1 to 10 of 11





Click Here to Expand Forum to Full Width

Featured