Thread: How do I output one character??

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    1

    Lightbulb How do I output one character??

    I need to know how do I output one character.

    I have a program where I have to output one charcacter, the middle initial of someones name.

    Please Help

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    2

    im not quite sure...

    Im guessing this is what you mean:


    #include <iostream>

    using namespace std;

    int main()
    {
    char initial = 'a';
    cout << initial;

    return 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. "sizeof" character strings - output issue
    By bunko in forum C Programming
    Replies: 3
    Last Post: 12-03-2008, 06:10 PM
  2. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Output text containing '\r' as new line character.
    By anonytmouse in forum C Programming
    Replies: 4
    Last Post: 11-17-2003, 08:47 PM