![]() |
|
[C] My First Calculator [Rate] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] My First Calculator [Rate] (/showthread.php?tid=1527813) |
My First Calculator [Rate] - zenawenliang - Jul 26, 2011 Here is the source code to a Calc that I created in camp, warning, only good for windoze. Here is the link: http://pastebin.com/MGgPqpfT Please give me feedback, and I know already that I'll be going to coding hell for using system() to such an extent. * - Conflicted - Jul 26, 2011 Here's a few things I noticed just by taking a quick glance. Fix your main function. It should return an int. Try splitting your program into different functions to do different tasks. This way it looks and functions better. system("pause) - Just use cin.get() EDIT: Forgot to mention to not make your variables global if you don't need to. * - vive facile - Jul 26, 2011 just post the code here, a lot of poeple wont download a very little source file. is it still windoze only if the system pause out? * - zenawenliang - Jul 26, 2011 What Matty Mat? I did that because I thought format is better on PasteBin, also yeah, I think system("pause") is only for windoze, since I think it means it uses a DOS Command. |