I'm sure this is simple, but i can't find it so its not dummy simple! lol
ok i loose the first char, i know i skip the colon, but i don't even think i pull the first char..
sample input file:
A : B C D F
B : A D E G
C : A D F
here is the code
where in is the input file name
i'm only getting the chars after my colon.. please help!Code:while ( in.getlin(buf, BUF_SIZE) && in.good() && !in.eof()) { char *vertname2=strpbrk(buf, " \t"); *vertname2++ = '\0'; char *buf2=strpbrk(vertname2, " \t"); *buf2++ = '/0'; cout <<buf2<<endl;



LinkBack URL
About LinkBacks


