ok, If I had spent less time on here, and more time in my code I could have figured it out.
after fully understanding Daved's explanation I was able to solve my problems:
fixed code in case...
Type: Posts; User: Arborius
ok, If I had spent less time on here, and more time in my code I could have figured it out.
after fully understanding Daved's explanation I was able to solve my problems:
fixed code in case...
I still didn't see that you said after every cin>> add cin.ignore, I did that, which paused the program when it reached getline after I removed the preceding cin. however ,if c is a string it writes...
I'm still getting errors.
Will only write first word:
char c[256];
...
these are the problems I've had with other versions of my code, bear with me:
If I use a string instead of a char array it ends the write on the first space and tries to pass the rest of the...
Hey, my problem is as follows:
when I pass a variable into array[a] from c I lose the first word.
my code:
#include <iostream>
#include <cstring>