Output display in c++
Hey guys, i am having problem with displaying my text. my text file is displayed in such a way and is called test.......
Code:
Sam Worthington ... Jake SullyasZoe Saldana ... NeytiriasSigourney Weaver ... Dr. Grace AugustineasStephen Lang ... Colonel Miles QuaritchasJoel Moore ... Norm Spellman (as Joel David Moore)asGiovanni Ribisi ... Parker SelfridgeasMichelle Rodriguez ... Trudy ChaconasLaz Alonso ... Tsu'teyasWes Studi ... EytukanasCCH Pounder ... MoatasDileep Rao ... Dr. Max PatelasMatt Gerald ... Corporal Lyle WainfleetasSean Anthony Moran ... Private FikeasJason Whyte ... Cryo Vault Med TechasScott Lawrence ... Venture Star Crew Chiefmore Code:
This is my coding.. Code:
string templine ; I keep getting the error saying ... Code:
editmain.cpp.98:error: initializer fails to determine size of 'str' what does this mean, and how can i be able to format my file in the way i want? |
Quote:
To solve the problem mentioned in the error, look at the place where "str" is initialized. |
I can guess which line is 98
Code:
char str [] = line ; Probably you want Code:
char* str = line.c_str() ; |
All times are GMT -5. The time now is 12:01 AM. |