whenever I try to compile it to a .exe it gives me this error:
1 2 3 4 5 6
C:\C++>
g++ classBasics.cpp -o classBasics.exe
classBasics.cpp: In function 'int main()':
classBasics.cpp:40:18: error: too few arguments
(std::string)'
classBasics.cpp:17:5: note: declared here
Compare line 17 and line 40. The function is expecting a string parameter, but you provide none.
On a random note, "void means it is not going to return anything." :|
Edit:
Your exampleFunction(string) has a return type of int. You must return an int, like you return 0 for main, or change its return type to void since you don't seem to need it to return an int.