actually the node "Bob" will have a pointer that points to the int 3 and 1, because those are the lines that have Bob in it.
do i have to resort to using a char? (that would be mighty annoying.......) but even so, i tried a simple loop like
char a;
infile >> a;
if(a==' ')
cout <<...
Hey guys, I'm new here as I have a final project coming up and can't figure this out.. it sounds fairly simple
let's say I have a text file that reads
"Hello my name is Bob
I am Testing This Program
Hi there Bob"
I'm just using a simple ifstream loop to read the words as a string
is there...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.