标题:为什么显示“无法打开包括文件:“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



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




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

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