I am looking for some suggestions of what is a good book to learn C++ (I already know the language basics and have programmed in c and Jave) and also one that will be useful as a reference down the road.
I am trying to read a line of input into a vector. I want to stop adding to the vector when the end of the line is reached. I have tried this:
string word;
vector<string> sv;
cout << "Type a sentence containing 6 words:";
cin >> word;
while (word != "\n")
{...
I have a file that I need to read in line coordinates from inorder to find the vectors and cross products. I always struggle with inputting from a file so I need some help.
The file is in this format:
L1= (35,70) (35,4) L2 =(63,4) (75,91)
L1= (65,91) (16,26) L2 =(92,61) (93,89)
L1= (77,3)...
I have a file that I need to read in line coordinates from inorder to find the vectors and cross products. I always struggle with inputting from a file so I need some help.
The file is in this format:
L1= (35,70) (35,4) L2 =(63,4) (75,91)
L1= (65,91) (16,26) L2 =(92,61) (93,89)
L1= (77,3)...
I have a file that I need to read in line coordinates from inorder to find the vectors and cross products. I always struggle with inputting from a file so I need some help.
The file is in this format:
L1= (35,70) (35,4) L2 =(63,4) (75,91)
L1= (65,91) (16,26) L2 =(92,61) (93,89)
L1= (77,3)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.