Thread: string name = 'JOHN';

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Registered User
    Join Date
    Mar 2011
    Posts
    254
    Quote Originally Posted by threahdead View Post
    You read the input into a single byte (one chararacter).
    Replace char with string and then it should work as desired.
    Thanks both of you, grumpy, threahdead.

    I haven't learned of the string so far. I only know of this because I remember some member used it. But today the instructor asked us to write a code so that your name in capital letters is printed a certain number of times using the for loop. I was wondering how this could be done without using the declaration string because the instructor didn't teach us anything about the string so far. Please tell me. Thanks.
    Last edited by jackson6612; 04-27-2011 at 06:57 AM.
    I'm an outright beginner. Using Win XP Pro and Code::Blocks. Be nice to me, please.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's up John, got a new xbox?
    By Salem in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 07-08-2007, 07:08 PM
  2. John Carmack on Facebook?
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 11-02-2006, 04:29 PM
  3. Revelations in the John
    By IfYouSaySo in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 03-18-2005, 12:58 AM
  4. John Edward - Crossing Over
    By Magos in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-28-2004, 09:27 AM
  5. John Carmack used goto
    By Silvercord in forum Game Programming
    Replies: 22
    Last Post: 02-06-2003, 09:21 AM