| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 449 人关注过本帖
标题:请教两道题目,谢谢
只看楼主 加入收藏
Timber
Rank: 1
等 级:新手上路
帖 子:42
专家分:0
注 册:2010-1-31
结帖率:71.43%
收藏
 问题点数:0 回复次数:0 
请教两道题目,谢谢
1

Write a program which reads lines from a text file into a dynamically allocated array
where also the length of the line is allocated dynamically.

Hint: Read line first into a temporary variable and compute length of the line.


2

Write a program which reads lines from a text file into a dynamically allocated array.
Program may use a static limit for line length.

Hint: First open the file then read (and discard) all lines to count
how many lines there are in the file. Then reopen the file to really read the data.
搜索更多相关主题的帖子: Read 
2010-05-15 04:12
快速回复:请教两道题目,谢谢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013524 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved