标题:编译出错
取消只看楼主
shizhusz110
Rank: 1
等 级:新手上路
帖 子:307
专家分:0
注 册:2006-12-21
 问题点数:0 回复次数:2 
编译出错
我写个c++程序不能运行!!!build:没错,但是运行的时候:出现个小的提示框,显示:无法执行程序
我也不知道怎么搞??谢谢回复
搜索更多相关主题的帖子: 编译 
2007-03-14 21:38
shizhusz110
Rank: 1
等 级:新手上路
帖 子:307
专家分:0
注 册:2006-12-21
得分:0 

谢谢!!!!

#include<iostream>
using namespace std;

#ifndef DATE_H


#define DATE_H
class date
{int mo,da;
public:
date(int i,int j)
{
mo=i;
da=j;
}
void display() const
{
cout<<mo<<"-"<<endl;
}
};
#endif

#include<iostream>
#include"data.h"
using namespace std;

int main(int argc,char *argv[])
{
date t(12,31);

t.display();
return 0;
}

2007-03-15 16:52
shizhusz110
Rank: 1
等 级:新手上路
帖 子:307
专家分:0
注 册:2006-12-21
得分:0 

谢谢!!!
2007-03-20 16:14



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-124277-1-1.html




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

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