ch1201.cpp

来自「这是我们C++书上的课后题答案。是钱能编著的第二版C++」· C++ 代码 · 共 31 行

CPP
31
字号
#include<iostream>
#include"Account.h"
#include"Accountlist.h"
#include"Checking.h"
#include"Saving.h"
#include<FSTREAM>
using namespace std;

int main()
{
	ifstream in("account.txt");
	string str;
	int flag = 1;
	while(flag)
	{
		getline(in,str);
		if(str.find("x 0")== -1)
		{
			Checking che(str);
			Savings sav(str);
			che.display();
			sav.display();
	
		}
		else 
			flag = 0;
	}

	return 0;

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?