Can someone please help me with figuring out why my codes does not run. I have tried to familiarize myself with how to get data from a file and discovered i need to use fstream. The data of the file is somethin like this:
I tried simply to read from the file but got the first number and the rest zeros when i wanted it printed out. IT NEEDS TO BE STORED IN A VECTOR AND AS A LONG INT. Can someone please tell me whats wrong with my code. I think i need to change the value to strings first but am i using the correct type? I keep getting an error that state cannot conv std::string to char.
Any help would be great