Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

My First Calculator [Rate]

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.
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.
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?
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.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by J. McCarthyMar 28, 2015 06:07 AM 13 369 Mar 28, 2015 06:07 AM
Last Post: salmoneus
[Java] by fsocApr 9, 2014 02:38 PM 0 66 Apr 9, 2014 02:38 PM
Last Post: fsoc
[.NET] by Gr0wlitMar 3, 2013 05:52 AM 26 1,022 Mar 3, 2013 05:52 AM
Last Post: Gr0wlit