/* Maybe your terminal doesn't support colors. This seems to work on my system. */
#include <ncurses.h>
int main()
{
initscr();
noecho();
cbreak();
Type: Posts; User: cyrix
/* Maybe your terminal doesn't support colors. This seems to work on my system. */
#include <ncurses.h>
int main()
{
initscr();
noecho();
cbreak();
You should be using printw(), because it outputs to the standard screen. wprinft() is for wide-character printing.
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...
Dosen't that depend on the compiler?
Can you give me an example? I'm not doubting your credibility, I would just like to see an example.
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...
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....
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.