|
||||||
| C Tutorials All C Tutorials and Code |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
||||
|
Re: How to program a calcuator in C++
Very nice tutorial! +rep
__________________
Questions and Answers | Online News and Social Bookmarking | Code and Text Collaboration General Chat Forum |
|
||||
|
Re: How to program a calcuator in C++
It's a nice intro to basic input/output and the operations.
A few observations: 1) you can't pick your operation 2) your program will crash if two == 0. 3) wouldn't a loop be more useful than a recursive call?
__________________
CodeCall Blog | CodeCall Wiki | Shareware Programming is a branch of mathematics. My CodeCall Blog | My Personal Blog |
|
||||
|
Re: How to program a calcuator in C++
Quote:
2. How would this come to be? I ran the program and put 0 in for one and two, and nothing happened to the program. 3. Sure, but once again, I was trying to make it simple. Thank's for your feedback WP, and Jordan. |
|
||||
|
Re: How to program a calcuator in C++
0/0 is generally not a good idea.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Programming is a branch of mathematics. My CodeCall Blog | My Personal Blog |
|
||||
|
Re: How to program a calcuator in C++
Interesting... GCC 4.1 gave me "nan" for the output of the division.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Programming is a branch of mathematics. My CodeCall Blog | My Personal Blog |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [HELP] C++ program that will ask the user to enter not greater than to 15 numbers | Kyram143 | C and C++ | 8 | 12-16-2009 02:53 PM |
| Tutorial: Starting C# with C# 2008 Express Edition | Jordan | CSharp Tutorials | 20 | 07-27-2009 05:45 AM |
| Debugging a C++/C File with GDB Debugger | awesome001 | C and C++ | 2 | 01-01-2009 08:07 PM |
| Help with Square root and calculator program!!! | 123456789asdf | C and C++ | 10 | 12-02-2007 05:35 PM |
All times are GMT -5. The time now is 11:18 AM.
Amrosama.cc
Arekbulski.cc
Debtboy.cc
Guest.cc
Jaan.cc
James.cc
Mathx.cc
Tsz.cc
Vswe.cc