1.41

void load()
{
//ofstream out("out.txt");
/*if (out.is_open())
{
out << "This is a line.\n";
out << "This is another line.\n";
out.close();
}
*/


char num[50];
char name[50];
char address[50];
ifstream in;in.open("out.txt");
if (! in.is_open())
{ cout << "Error opening file"; exit (1); }
for(int i=0;i<=4;i++){
in.getline(num,'/n');
in.getline(name,'/n');
in.getline(address,'/n');
string n(num);

 

}


}

posted on 2016-01-04 11:12  天才程序猿  阅读(132)  评论(0编辑  收藏  举报

导航