Hi guys! Im doing a very simple program that asks for two inputs (2 names) and the program compares if the last names are the same or not.
At school we made the same program - if i paste it to VS it runs perfect, however if i write a new program (which does the same, only the name of the varialbes are changed) it gives meg dozens of error and I have no clue where I gone wrong.
I also uploaded a screenshot from the list of the errors: http://speedy.sh/KgAPW/picture.PNG
1) Names::lastname(string name) → std::string Names::lastname(string name) Names::same() → bool Names::same()
2) use C++ headers: <stdlib.h> → <cstdlib>; <math.h> → <cmath>
3) Change Visual studio settings: _tmain() is non-standard and should not be used.
4) Do not use conio.h. It was deprecated when first NT OS was created.
If you still insist, function call is _getch(), not _getch