以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 C/C++编程思想 』  (http://bbs.xml.org.cn/list.asp?boardid=61)
----  [求助]  (http://bbs.xml.org.cn/dispbbs.asp?boardid=61&rootid=&id=44726)


--  作者:rockeystar
--  发布时间:4/2/2007 1:03:00 PM

--  [求助]
#include<iostream.h>
struct point
{int x;int y;}
viod main()
{point pt;
pt.x=5;pt.y=5;
cout<<pt.x<<endl<<pt.y<<endl;}

e:\新建文件夹\vc6.0_mini\microsoft visual studio\vc98\include\streamb.h(49) : fatal error C1083: Cannot open include file: 'ios.h': No such file or directory
 不知道哪错了呀!


--  作者:friday505
--  发布时间:4/3/2007 8:18:00 AM

--  
是不是头文件不存在阿,你找找看
--  作者:一分之千
--  发布时间:4/3/2007 5:00:00 PM

--  
#include<iostream.h>
struct point
{int x;int y;};=============加分号
void main()// 这里应该市void 而不是viod
{point pt;
pt.x=5;pt.y=5;
cout<<pt.x<<endl<<pt.y<<endl;}
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
50.781ms