大家给看看,为什么已进行运行之后,我输入两个数,编译的那个黑框就结束了

 #include
#include
#include
using namespace std;
class person{
public:
    char name;
    int id;
void shuru();
void shuchu();
};
void person::shuru()
{cin>>id;
cin>>name;}
void person::shuchu()
{cout<<"shuruchenggong"<int main(){
    person person1;
cout<<"请输入要添加的成员信息"<shuru();person1.shuchu();
return 0;}
> 

```c++


```

加个暂停 试试

int main()
{
    person person1;
    cout<<"请输入要添加的成员信息"<<endl;
    person1.shuru();person1.shuchu();
    system("pause"); // 暂停
    return 0;
}

因为你输入完之后,不加暂停,程序直接执行完了,程序就退出了,自然黑框就结束了。