用C语言读文章。
我用的是 turbo c++ 3.0
我要从文件中读一篇文章到一个字符串数组 s[100][100] 中,
例如文件的内容是 :
Before I started at university,I took my first job as a waitress in a nice restaurant.At the night before my first day.I was too excited to go to sleep and as a result,I got up late in the morning.I threw on my clothes and rushed over to the restaurant.
In a great hurry,I didn't hear clearly the head waiter's instruction that we should go into the kitchen through one door and out from the other.So when I took two plates of eggs and bacon and an orange juice out to the restaurant,I went straight towards the wrong door and collided with another waiter coming in!
Worst of all was that I wore a pair of smart shoes but with high heels! A few hours later I was in agony yet had no time to change them. By the time we finished serving dinner at about 10:30 I was completely exhausted. Nevertheless, I learnt something through my experience.
我要让文件的第1行保存在 c[0] 中,第2行保存在 c[1] 中,……
第4行是空的,我也让它保存在 c[3] 中,也就是 c[3]="";
请问具体程序应该怎么编?只能用C语言遍,注意我用的是 turbo c++ 3.0
请各位大哥告诉我,谢谢!