Search:

Type: Posts; User: cyrix

Search: Search took 0.01 seconds.

  1. Thread: colorz

    by cyrix
    Replies
    9
    Views
    1,601

    /* Maybe your terminal doesn't support colors....

    /* Maybe your terminal doesn't support colors. This seems to work on my system. */

    #include <ncurses.h>

    int main()
    {

    initscr();
    noecho();
    cbreak();
  2. Thread: colorz

    by cyrix
    Replies
    9
    Views
    1,601

    You should be using printw(), because it outputs...

    You should be using printw(), because it outputs to the standard screen. wprinft() is for wide-character printing.
  3. Thread: C & C++

    by cyrix
    Replies
    21
    Views
    2,146

    Guess that's defined by ANSI C++ (the whole...

    Guess that's defined by ANSI C++ (the whole casting thing) didn't know that, but you learn something new everyday. That means some of those C++ books and tutorials are wrong about "all C is valid...
  4. Thread: C & C++

    by cyrix
    Replies
    21
    Views
    2,146

    Dosen't that depend on the compiler?

    Dosen't that depend on the compiler?
  5. Thread: C & C++

    by cyrix
    Replies
    21
    Views
    2,146

    Can you give me an example? I'm not doubting your...

    Can you give me an example? I'm not doubting your credibility, I would just like to see an example.
  6. Thread: C & C++

    by cyrix
    Replies
    21
    Views
    2,146

    C++ is a superset of C, meaning all C code is...

    C++ is a superset of C, meaning all C code is valid C++. However, C++ code is linked differently, if you want to retain C style linking you need to add some preprocessor directives. This probably...
  7. Thread: colorz

    by cyrix
    Replies
    9
    Views
    1,601

    The call you made to printf() prints output to...

    The call you made to printf() prints output to the stdout. When you use ncurses, you need to print to the standard screen. Also you didn't call refresh(), so there would be now way to see the output....
  8. Thread: OpenGL

    by cyrix
    Replies
    30
    Views
    3,180

    Good OpenGL book

    OpenGL Game Programming from Prima Tech is pretty good. It not only teaches you OpenGL but it also teaches you the basics of DirectX and WGL. It's a pretty good book.
Results 1 to 8 of 8