| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 571 人关注过本帖
标题:编译的问题
取消只看楼主 加入收藏
mghxz252
Rank: 2
等 级:论坛游民
帖 子:40
专家分:60
注 册:2010-1-18
结帖率:85.71%
收藏
已结贴  问题点数:20 回复次数:0 
编译的问题
我的编译器编译下面的文件显示:stdio:No such file or directory。
                              stdlib:No such file or directory。
是什么问题啊???怎么解决???   
#include <iostream>
#include <stdio>
#include <stdlib>
using namespace std;
class group_1
{
      public:
      void find(void);
};
group_1 everyone;
class group_2
{
      public:
      void add(void);
      void modify(void);
};
group_2 select_few;
class group_3
{
      public:
      void add(void);
      void modify(void);
      void remove(void);
};
group_3 heath;
main(void)
{
       char string[2],option='\0';
       int i,*intptr;
       char *password,*charptr;
       cout<<"Please enter password: ";
       charptr=gets(password);
       i=atoi(charptr);
       while(option!='q')
   {
         cout<<"Please enter option: \n";
         cout<<"<a>dd,<f>ind,<m>odify,<d>elete or<q>uit:";
         cin>>option;
       switch(option)
       {
         case 'a':
         if(i==10 || i==20)
            {
             select_few.add();            
            }  
         else if (i==99)
         {
              heath.add();
         }               
           else
           cout<<"Permission denied!\n";
           break;
         case 'f':
         everyone.find();
         break;
         case 'm':
         if (i==10 || i==20)
         {
           select_few.modify();
         }
         else if(i==99)
         {
           heath.modify();
         }
         else
         cout << "Permission denied!\n";
         break;
         case 'd':
         if (i==99)
         heath.remove();
         else
         cout<< "Permission denied!\n";
         break;
         case 'q':
         break;
         default:
         cout<<"Invalid input !Please re-enter.\n";
         }
   }
}
void group_1::find(void)
{
     cout<<"Inside group1 find()\n";
}
void group_2::add(void)
{
     cout<<"Inside group2_add() \n";
}
void group_3::add(void)
{
     cout<<"Inside group3 add() \n";
}
void group_3::modify(void)
{
     cout<<"Inside group3 modify() \n";
}
void group_3::remove(void)
{
     cout<<"Inside group3 remove() \n";
}
搜索更多相关主题的帖子: 编译 
2010-03-12 15:32
快速回复:编译的问题
数据加载中...
 
   



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

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