- Use
cout << "stuff" + endl;
to print - Use
cin >> variable
to take input
- Use
array<datatype,quantity>
to return array data, use this by including<array>
header
- C++ has mutuable strings
#include<string>
- Use
getline(cin,variable)
to take the whole line as input
- Use
? functionName(datatype& variable)
to edit the memory space directly inside a function
getline(stream,variable)
returns true if it is able to read
- Be careful about types while using
==
ifstream.fail()
return true if the last operation done by the ifstream object has failedifstream >> variable
sets value of variable as "words" from the ifstream object(ignores whitespace), return true if successfulvector<datatype>
from#include<vector>
is a dynamically-resizing array
https://www.youtube.com/playlist?list=PLoCMsyE1cvdWiqgyzwAz_uGLSHsuYZlMX
- Used to delete all the files created by
cl.exe
while building and running scripts