首页 > 其他 > 详细

1.41

时间:2016-01-04 11:34:25      阅读:206      评论:0      收藏:0      [点我收藏+]

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);

 

}


}

1.41

原文:http://www.cnblogs.com/helloaworld/p/5098193.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!