User Profile

Collapse

Profile Sidebar

Collapse
minkkp
minkkp
Last Activity: Nov 27 '07, 09:44 PM
Joined: Sep 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • minkkp
    replied to Student Question
    in C
    Im kinda new at this but you would need use toupper();
    and inputone[0] and inputtwo[0] of what ever your cin was....
    [0], [1]. [2].........being the position of the character you want to be uppercase
    example:

    string firstname;
    cin >> firstname; //john

    fname [0] = toupper (firstname[0]);
    cout << firstname<<endl ;

    //john is the cin of string firstname...
    See more | Go to post

    Leave a comment:


  • minkkp
    replied to Size of an array
    in C
    in C.....say your string is lastName...i think you would enter lastName.Length
    in C....
    in c++ in think you would enter: cout <<lastName.leng th()<<endl;...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...