User Profile

Collapse

Profile Sidebar

Collapse
farah727rash
farah727rash
Last Activity: Oct 15 '06, 10:40 PM
Joined: Oct 13 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • farah727rash
    replied to Help please !!! No if...else statements.
    in C
    Any ideas, anyone? Please, some help will be great.
    See more | Go to post

    Leave a comment:


  • farah727rash
    started a topic Help please !!! No if...else statements.
    in C

    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...
    See more | Go to post

  • farah727rash
    started a topic Numerical value of string
    in C

    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...
    See more | Go to post
No activity results to display
Show More
Working...