首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

struct she{int x;int y;struct she *next;}*tou,wei;tou=new s,该如何处理

2012-04-09 
struct she{int xint ystruct she *next}*tou,*weitounew s#include iostream.hstruct she{int xi

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

热点排行