Hey guys,
I'm at the losing end of a problem involving strings and char input.
Basically, I have a tree full of morse code and alphabet equivalents in struct morsetree that i will decode against.
so when i decode **** * *-** *-** --- *-- *** *-* *-** -**, i should get hello world.
however, by using the fin >> temptree.morse, i get helloworld.
it is not extracting the whitespace between words (which is actully 2 spaces)
any help greatly appreciated
struct morsetree;
struct temptree1, temptree2;
while (!fin.eof() )
{
fin >> temptree1.morse;
if (morsetree.find(temptree1, temptree2))
{
fout << tree2.alpha;
}
}