[C++] My First Program =]
I started learning C++ 2 days ago. I've been learning by looking at examples.
So far, I've made a command line calculator. Check it out and lemme know what you think. It could probably help out other people who are new to programming.
There is a problem though, it seems to require something non-standard in order to run.. I'm not sure what that something is.. but my computer has it.
Name: Calculatizor
Source: Nopaste - 6/8/07
Download: http://gregith.googlepages.com/calculatizor.rar
Screenshot: http://gregith.googlepages.com/clcsreeeny.PNG
Re: [C++] My First Program =]
Only thing that amkes it half-decent is that it;s your first one, but don't overuse the goto. Very irritating.
Re: [C++] My First Program =]
Nopaste - No description
That compiled perfectly fine.
Re: [C++] My First Program =]
Quote:
Originally Posted by
King Izu
Thanks for the effort. I'll check that out right away.
And username1, no I'm not trolling.
I completely agree with what wh005h said. Trial and error > reading books to learn. I don't need to be told to RTFM, I'm doing that already. I enjoy trying to get as much done as possible with the little snippets of code I understand, then looking at more code and finding new stuff, figuring out what it does and how to use it properly.
Of course this program is gonna be god awfull. It was a historical moment for me because I finally got the program to do what I wanted it to do without any major problems. I posted the code as soon as it worked properly and compiled without error. That doesn't mean it's done. Doesn't even mean I think it's a good, or even a decent program.
Re: [C++] My First Program =]
Quote:
Originally Posted by
King Izu
Add to the top:
Code:
using namespace std;
Then you can shorten the std::cout to just cout
Re: [C++] My First Program =]
well normally you never have a reason to use goto :S