you are both right
Nepomuk talking about 2nd part
and Banfa talking about 1st part
User Profile
Collapse
-
Make a structure for date containing two function
Make a structure for date containing two function one for increment Date() that add to date if day increase month also increase.
2nd for validation for date like day is not greater than 30 or 31.and validate the user input before user entered value.
i have done second.
but no idea for first one.
hint for increment date. -
thank you pundliknm
it is working.
i'm on initial stage to learn C++ language.
any other tip.Leave a comment:
-
after added <cstdlib>
[Error] cannot convert 'std::string {aka std::basic_stri ng<char>}' to 'const char*' for argument '1' to 'int atoi(const char*)'Leave a comment:
-
-
what's wrong with this program?
I am getting the error:[Error] 'atoi' was not declared in this scopeCode:#include <iostream> #include <string.h> using namespace std; int main() { string str = "131.90"; int n; n = atoi(str); cout << n; return 0; }
No activity results to display
Show More
Leave a comment: