C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-23-2009, 11:07 AM   #1
Registered User
 
Join Date: Oct 2008
Posts: 76
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!
rocketman03 is offline   Reply With Quote
Old 01-23-2009, 11:19 AM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,710
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.

Salem is offline   Reply With Quote
Old 01-23-2009, 07:21 PM   #3
Registered User
 
Join Date: Oct 2008
Posts: 76
well..i thought the same thing..but its my home-work assignment..so i guess there is some way of doing it...
rocketman03 is offline   Reply With Quote
Old 01-24-2009, 12:16 AM   #4
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,710
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.

Salem is offline   Reply With Quote
Old 01-24-2009, 10:55 AM   #5
Registered User
 
Join Date: Jun 2003
Posts: 90
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
DanFraser is offline   Reply With Quote
Old 01-24-2009, 12:41 PM   #6
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
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.
matsp is offline   Reply With Quote
Old 01-24-2009, 02:20 PM   #7
Registered User
 
Join Date: Oct 2008
Posts: 76
yea..matsp is right..i misunderstood the question..the output was not expected to be in italics!..sorry!
rocketman03 is offline   Reply With Quote
Old 01-24-2009, 02:27 PM   #8
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
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.
matsp is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 12:53 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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