Thread: String formatting (italics)

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    84

    String formatting (italics)

    hey could someone tell me how to format a string so that the output is in italics;

    example : this is Italics.

    I am writing a console application.

    Thanks!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    I think you might be over-estimating the capabilities of a console.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    84
    well..i thought the same thing..but its my home-work assignment..so i guess there is some way of doing it...

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    5 minutes clarifying the assignment with the tutor might save hours of fruitless manual searching.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    129
    I have no intention of offending, but there's two options for this confusion.

    1. You have read your assignment incorrectly and should be doing a windows form application.

    2. Your tutor has no idea about programming and is following the manual he's been given to teach you about the subject.

    To be fair, the first option is mostly likely, and can happen if you're swamped with assignments. If it's number two, start making official complaints!
    He who asks is a fool for five minutes, but he who does not ask remains a fool forever.

    The fool wonders, the wise man asks. - Benjamin Disraeli

    There are no foolish questions and no man becomes a fool until he has stopped asking questions. Charles Steinmetz

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    A third option is that the poster him/herself has misunderstood the instructions in the sense that the console output is NOT expected to be italic.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    Registered User
    Join Date
    Oct 2008
    Posts
    84
    yea..matsp is right..i misunderstood the question..the output was not expected to be in italics!..sorry!

  8. #8
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by rocketman03 View Post
    yea..matsp is right..i misunderstood the question..the output was not expected to be in italics!..sorry!
    That's alright - we do get all sorts of "I've got an impossible task", which is OFTEN based on a misunderstanding of some sort - but not always.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please check my C++
    By csonx_p in forum C++ Programming
    Replies: 263
    Last Post: 07-24-2008, 09:20 AM
  2. String Class
    By BKurosawa in forum C++ Programming
    Replies: 117
    Last Post: 08-09-2007, 01:02 AM
  3. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 03:23 PM
  4. creating class, and linking files
    By JCK in forum C++ Programming
    Replies: 12
    Last Post: 12-08-2002, 02:45 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM