-2
如果我有這樣的一個主要功能:與Visual Studio和C++/OpenGL的COUT輸出
int main(int argc, char **argv) {
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
glutInitWindowSize (800, 600);
glutInitWindowPosition (100, 100);
glutCreateWindow ("A");
init();
glutIdleFunc(update);
glutDisplayFunc(draw);
glutReshapeFunc(resize);
glutKeyboardFunc(keyboard);
glutSpecialFunc(specialKeyboard);
glutMouseFunc(mouse);
cout<<x<<" "<<"Printed out variable x"<<endl;
cout<<y<<" "<<"Printed out variable y"<<endl;
cout<<z<<" "<<"Printed out variable z"<<endl;
glutMainLoop();
return 0;
}
我在哪裏可以看到COUT調用的結果呢?
控制檯窗口? – crashmstr 2012-01-11 16:56:46
我想你沒有設置子系統鏈接器標誌爲CONSOLE。 – mkaes 2012-01-11 17:00:51
哪個GLUT實現? – genpfault 2012-01-11 17:16:31