cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
array
array
Sep 28, 2008 at 3:42am UTC
keizer99
(9)
ok so if am going about this in a new way
now i am
infile.open("text.txt");
infile >>words[0] >> words[1]>>words[2] >> words[3] >> words[4];
that puts the words right into my array but when i print the array it comes out blank. The text.txt file has words in it and its reading the file but it comes out blank. What am i doing wrong here?
Sep 28, 2008 at 4:49am UTC
jsmith
(5804)
How do you know it is reading the file then?
It sounds like it is not.
What is the type of words? string[]?
Sep 29, 2008 at 7:50am UTC
neeraj
(2)
what are the various data types ?
Sep 29, 2008 at 7:52am UTC
neeraj
(2)
how to create a algorithm ?
Topic archived. No new replies allowed.