使用GLEW我要实现在Broldand 5.02做了一个很老的OpenGL程序维也纳组织,但是当我尝试即时得到如下因素的错误,包括GL/glew.h: Info :Compiling C:\fontesusr\vertexbuffer.cpp
Error: glew.h(269,25):Too many types in declaration
Error: glew.h(270,27):To
假设我们有一个类 class A
{
int x;
public:
void sayHi()
{
cout<<"Hi";
}
};
int main()
{
A *a=NULL;
a->sayHi();
}
上面的代码将编译上的Turbo C(其中I测试)和打印Hi作为输出。 我期待崩溃,因为a是NULL。更
我必须制作一个程序来管理它从文件中获得的信息,但是我使用的是古老的Turbo C 3.0,所以我在尝试写入文件时出现错误,这里是我的代码: #include <conio.h>
#include <stdio.h>
void main(){
clrscr();
int c;
FILE *datos;
datos = fopen("datos.txt","w");
c = fg