| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 19788 人关注过本帖
标题:为什么显示“无法打开包括文件:“iostream.h”: No such file or directory ...
取消只看楼主 加入收藏
流年似水1234
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2014-9-21
结帖率:0
收藏
已结贴  问题点数:3 回复次数:0 
为什么显示“无法打开包括文件:“iostream.h”: No such file or directory”
#include<iostream.h>
#include<stdlib.h>
class counter
{
    static int count;
    int objnumber;
    public:
        counter()
        {
            count++;
            objnumber=count;
        }
        void show()
        {
            cout<<"obj"<<objnumber<<" ";
            cout<<"cout="<<count<<"\n";
        }
};

int counter::count=0;


main()
{
    counter obj1;
    obj1.show();
    cout<<"------------------";
    counter obj2;
    obj1.show();
    obj2.show();
    cout<<"----------------------";
    counter obj3;
    obj1.show();
    obj2.show();
    obj3.show();
    return 1;
}
搜索更多相关主题的帖子: counter include public file 
2014-10-23 22:29
快速回复:为什么显示“无法打开包括文件:“iostream.h”: No such file or dire ...
数据加载中...
 
   



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

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