标题:编译问题,求救!
取消只看楼主
niitp
Rank: 1
等 级:新手上路
帖 子:53
专家分:0
注 册:2007-4-15
 问题点数:0 回复次数:1 
编译问题,求救!
#include <iostream>
class Customer
{
      private:
      char mobileNo[12];
      char name[25];
      char dateOfBirth[10];
      char billingAdd[50];
      char city[25];
      char phoneNo[13];
      float amountOutstanding;
      public:
      void print()
      {
           cout<<endl<<"Mobile phone number:";
           cout<<mobileNo<<endl;
           cout<<"Name:";
           cout<<name<<endl;
           cout<<"date of birth:";
           cout<<dateOfBirth<<endl;
           cout<<"Billing address:";
           cout<<billingAdd<<endl;
           cout<<"City:";
           cout<<city<<endl;
           cout<<"residence phone number:";
           cout<<phoenNo<<endl;
           cout<<"amount due:";
           cout<<amountOutstanding<<endl;
      }   
       void get()
       {
          cout<<"Mobile phone number:";
          cin>>mobileNO;
          cout<<endl<<"Name:";
          cin>>name;
          cout<<endl<<"Date of Birth:";
          cin>>dateOfbirth;
          cout<<endl<<"Billing Address:";
          cin>>billingAdd;
          cout<<endl<<"city";
          cin>>city;
          cout<<endl<<"Residence phone number:";
          cin>>phoneNO;
          cout<<endl<<"Amount due:";
          cin>>amountOutstanding;
         
                  
            }
      
};   
 int main()
 {
     Customer object;
     object.get()
     object.print()
     return 0;
}         



15 C:\Documents and Settings\ping\桌面\2ke.cpp `cout' undeclared (first use this function)
  (Each undeclared identifier is reported only once for each function it appears in.)



请问是什么问题!
搜索更多相关主题的帖子: 编译 
2007-11-29 16:16
niitp
Rank: 1
等 级:新手上路
帖 子:53
专家分:0
注 册:2007-4-15
得分:0 
谢谢楼上两位~~问题解决了...

为什么我输入数据后还没显示就闪没了....
2007-11-29 17:03



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




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

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