邹应 2015-12-13 03:11 采纳率: 0%
浏览 1754

codeblocks 可以编译没法调试

#include
#include
#include
using namespace std;
class Lesson //为节点类,链表方法
{
public:
string name_of_lesson;
string book;
string time;
string place;
string score;

Lesson *next_lesson;
Lesson(ifstream& infile);

};

Lesson::Lesson(ifstream& infile):next_lesson(NULL)
{
infile>>name_of_lesson;
cout< infile>>book;
cout< infile>>time;
cout< infile>>place;
cout< infile>>score;
cout<<score<<endl;
}

int main()
{
string e="record.txt";
int b;
ifstream infile(e.c_str(),ios::in);
infile>>b;
Lesson * z =new Lesson(infile);
cout<<"1212"<<endl;
}

图片说明

到了Lesson构造函数中就跳不出来了
求大神指教诶

  • 写回答

2条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办