读书人

struct she{int x;int y;struct she *

发布时间: 2012-04-09 13:41:24 作者: rapoo

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;    } 

读书人网 >C++

热点推荐