How do I output one character??

This is a discussion on How do I output one character?? within the C++ Programming forums, part of the General Programming Boards category; I need to know how do I output one character. I have a program where I have to output one ...

  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, 05: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, 01: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, 07:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21