Does your code compile?
You messed a bit with function return types, both MAKE_PASSWORD and CONFIRM_PASSWORD should return a string but on one you are returning nothing, on the other you are returning an integer
D:\prog\cc\foo>g++ -Wall -ansi -pedantic a.cpp
a.cpp: In function 'std::string MAKE_PASSWORD()':
a.cpp:16: error: expected primary-expression before ')' token
a.cpp: At global scope:
a.cpp:38: error: '_TCHAR' has not been declared
a.cpp: In function 'int _tmain(int, int**)':
a.cpp:43: error: 'numeric_limits' was not declared in this scope
a.cpp:43: error: expected primary-expression before '>' token
a.cpp:43: error: no matching function for call to 'max()'
Try to avoid non-standard junk.
Only name global CONSTANT objects in all-caps.
You must #include <limits> to use the numeric_limits class and <windows.h> to use TCHAR.
Please don't use "_TCHAR". Use TCHAR.
Your function prototypes should be:
The first should get a password from the user and return it.
The second should get another password from the user and return whether or not it matches the argument.
Main should return 0;
I already re-wrote the whole code ^^. But still the strange thing is, in Visual C++ it didnt give any errors :o. But I did learn something from that reply!