struct she{int x;int y;struct she *next;}*tou,*wei;tou=new s
#include <iostream.h>
struct she
{
int x;
int y;
struct she *next;
}*tou,*wei;
tou=new she;
wei=tou;
[解决办法]
#include <iostream>
using namespace std;
struct she
{
int x;
int y;
struct she *next;
}*tou,*wei;
int main()
{
tou=new she;
wei=tou;
return 0;
}
在vc6.0里没有错误
[解决办法]
这样子就好了!
- C/C++ code
#include <stdio.h>#include <string.h>#include <iostream.h>struct she { int x; int y; struct she *next;}*tou,*wei; void main(void){ tou=new she; wei=tou; }