![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#21
|
|||
|
|||
Re: Write a calculator program that lets users enter a simple mathematic operationErm .... I got another question now ....
CPP / C++ / C Code:
Last edited by admin : 09-Sep-2008 at 18:02.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#22
|
|||
|
|||
Re: Write a calculator program that lets users enter a simple mathematic operationQuote:
Single quotes are used to enclose a SINGLE char integer value. Check you book for what this ascii value is for these characters. The combination of >= is TWO char integer values and so not suitable for single quotes. (double would be ok though (a C string)) So what you need is a method to check the characters individually but having a way to detect a certain combination. This might be helpful: CPP / C++ / C Code:
if(result>=result2) Not only might it cause problems but it's hard to for old farts to read and just looks like poop. Good coding is an art! |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| An easy problem solve for most of you | slapshot6819 | C++ Forum | 2 | 20-Nov-2007 03:14 |
| Please help me to solve C++ problem | fahad | C++ Forum | 1 | 01-Nov-2007 05:43 |
| Problem Description: Graph’s Degree.....can help me to solve this out? | thefinalyy | C++ Forum | 0 | 24-Aug-2007 06:42 |
| I have a problem to solve summation in c++ | logieen | C++ Forum | 4 | 22-May-2007 08:25 |
| A problem using streams. (I've spent a month trying to solve it) | Mararia | C++ Forum | 8 | 14-Dec-2006 17:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The