标题:求高手指教错误
取消只看楼主
cd435646912
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2012-7-12
结帖率:50%
已结贴  问题点数:20 回复次数:0 
求高手指教错误
#include<string>
#include<stdio.h>
class student(){
 public:
     int name;
     int number;
     char score;
     string sex;
};
 student(int n,int num,char sc,string s){
           name=n
           number=num
           score=sc
           sex=s
  }    ;
   ~student();
display void(){
      cout<<姓名=<<""<<endl;
      cout<<学号=<<""<<endl;
      cout<<成绩=<<""<<endl;
      cout<<性别=<<""<<endl;
};
class Gstudent::clsss student(int n,int num,char sc,string s,string h,string w){
      string height;
      string weight;
};
 Gstudent(int n,int num,char sc,string s,string h,string w){
       height=h
       weight=w   
 }
  int main(){
  cout<<"L2"<<"2"<<"60"<<"男"<<endl;     


};



我这程序哪里错了
搜索更多相关主题的帖子: include display public number 
2012-07-12 17:37



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




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

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