假设我们有一个类 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