cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
HELP:: READ FROM FILE and PRINT!
HELP:: READ FROM FILE and PRINT!
Oct 27, 2011 at 6:16pm UTC
thadanis09
(1)
I am trying to make a program that prompts the user for a file name and displays the contents of the file on the screen. The contents of the file must also be put in to at 2d array.
I have no clue where to start. Can someone please help me!
Oct 27, 2011 at 7:08pm UTC
JMJAtlanta
(142)
First break the problem down into steps.
1) Prompt the user for a file name
2) Display the contents of the file
3) Put the contents of the file into a 2 dimensional array
So for steps 1 and 2, research input and output streams.
It is unclear to me what you mean by putting the contents in the 2 dimensional array. Perhaps a view of the file would help.
Concentrate on getting step 1 done. The rest will come.
Last edited on
Oct 27, 2011 at 7:08pm UTC
Topic archived. No new replies allowed.