User profile: Castaway

User info
User name:Castaway
Name:Timo Hilden
Location:Oulu
History
Joined:
Number of posts:6
Latest posts:

getting the size of string
You have to ask the name in a loop repeatedly until the user inputs a name whose length is less than...

Exceptions
You need to catch the exception, i.e. enclose the call in a try/catch block.

Error in casting
You need to initialize variables rate1 and rate2 in MaxNum(). Also, when atof() takes a const char* ...

Getting a garbage value.
[quote]I always thought variables without any specified initialization value would be initialized to...

error C2248: cannot access private member declared in class
Pass the [code]ifstream[/code] object as reference instead of value, i.e. modify the function protot...