| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 19888 人关注过本帖
标题:编程序时出现fatal error C1004: unexpected end of file found 能指点一下 ...
只看楼主 加入收藏
wolf123
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-4-21
收藏
 问题点数:0 回复次数:5 
编程序时出现fatal error C1004: unexpected end of file found 能指点一下吗
编程序时出现fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
但不知道错在哪 求各位高手指点下
程序为 #include<iostream.h>
class Point
{private:
int x,y;
public:
Point(int a,int b)
{x=a;y=b;}
void setpoint(int a,int b)
{x=a;y=b;}
double getpoint()const
{return x;y;}

};
class Ccircle:public Point
{
private:
double radiu;
public:
Ccircle(double radiusval)
{radius=radiusval;}
void setradius(double radiusval)
{radius=radiusval;}
double getradius()const
{return radius;}
double area()const
{return 3.14*radius*radius;}
Ccircle(int a,int b):point(a,b)
}
void Ccircle::printout()
void main()
{
Point point(3,4);
Ccircle ccircle(10);
cout<<"圆心座标:"<<"("<<x<<","<<y<<")"<<endl;
cout<<"圆半径:"<<radius<<endl;
cout<<"圆面积"<<area<<endl;
}
搜索更多相关主题的帖子: found error unexpected fatal end 
2007-04-21 11:43
zinking
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:35
帖 子:916
专家分:0
注 册:2004-12-5
收藏
得分:0 
类定义以分号结尾

http://kongfuziandlife. http://codeanddesign.
2007-04-21 12:14
边城路人
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:9
帖 子:591
专家分:0
注 册:2007-3-8
收藏
得分:0 
加上分号可以了吗?

当你开始怀疑自己时,说明你已经失去了判断力
2007-04-21 13:38
wolf123
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-4-21
收藏
得分:0 
貌似还是不行啊?具体是哪要加?
2007-04-21 15:26
Arcticanimal
Rank: 3Rank: 3
等 级:论坛游民
威 望:7
帖 子:341
专家分:20
注 册:2007-3-17
收藏
得分:0 

将光标放在)或者{前面,Ctrl+] 跟踪"(" ")" "{" "}"的匹配是否正确


try new catch
2007-04-21 16:11
shenyulv
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:166
专家分:150
注 册:2009-3-8
收藏
得分:0 
顶下,我也看了好久,看不出什么问题

叶的离去,是风的过错,还是树的不挽留?
2009-11-22 23:49
快速回复:编程序时出现fatal error C1004: unexpected end of file found 能指 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018115 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved