调试音乐俱乐部计划 [英] debugging music club program

查看:43
本文介绍了调试音乐俱乐部计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

#include< iostream>

#include< conio.h>

class musicclub

{

私人:

int noofinstrument;

char mcname [50];

char noofstudent [50];

public:

  &NBSP; void getdata()

  &NBSP; {

  &NBSP; cout<<"输入乐器号:" ;;

  &NBSP; cin>> no of instrument;

cout<<"输入mc名称:" ;

cin>> name;

cout<<"输入学生编号:" ;

cin>> noofstudent;

  &NBSP; }¥b $ b  &NBSP; void display()

  &NBSP; {

cout<<"输入工具编号:<<< instrument<< endl;

cout<<"输入mc名称:"<<< mcname<< endl;

cout<<"输入学生编号:" ;;

  &NBSP; }
};

  &NBSP; int main()

  &NBSP; {

  &NBSP; class musicclub s;

  &NBSP; &NBSP; &NBSP; s.getdata();

  &NBSP; &NBSP; &NBSP; s.display();

};

#include<iostream>
#include<conio.h>
class musicclub
{
private:
int noofinstrument;
char mcname[50];
char noofstudent[50];
public:
    void getdata()
    {
    cout<<"enter the no of instrument:";
    cin>>no of instrument;
cout<<"enter the mc name:" ;
cin>>name;
cout<<"enter the no of student:" ;
cin>>noofstudent;
    }
    void display()
    {
cout<<"enter the no of instrument:"<<instrument<<endl;
cout<<"enter the mc name:"<<mcname<<endl;
cout<<"enter the no of student:";
    }
};
    int main()
    {
    class musicclub s;
        s.getdata();
        s.display();
};

推荐答案

我的帖子中没有任何问题或任何问题描述。

只有代码。你期待什么样的帮助?



- Wayne
I don't see any question in your post, or any description of a problem.
Only code. What sort of help were you expecting?

- Wayne


这篇关于调试音乐俱乐部计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆