User Profile
Collapse
-
Any ideas, anyone? Please, some help will be great. -
Help please !!! No if...else statements.
Hey All,
This is a program to extract the middle name from a person's full name, but it only works for a person who has a first, middle and a last name. What do I do so that it works for a person who has just a first and last name? For example: Fabio or Santa Claus. I am not supposed to use conditional statements, other wise using if...else it would have been so easy. I can't think of a way to do it without if...else. Any ideas/suggestions... -
Numerical value of string
Hi all,
I am trying to find the numerical value of a string that stores a two digit number. I have found the numerical value of a char as:
char character;
cin >> character;
int number = character - 48; // Computing the numberical value of character entered
cout << "The number you entered is: " << number << endl << endl;
How do I do the same...
No activity results to display
Show More
Leave a comment: