[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
Re: [C++] My First Program =]
very bad programmed
you know they call the goto commanad as
macarony spachity
beacuse it make the program like that
Code:
program
|
code-------+
code |-----+
code ------+ |
code------------+
which means after he make the program if he want to update he wont be able beacuse he wont see how the program works beacuse fo these got commands
and second it is an asm code
which = low language
Re: [C++] My First Program =]
OMGLOL, a calculator. Nice man! We all started of this. :)
Re: [C++] My First Program =]
Just friggen google it!
Anyway, you should have created a better program.
You have posted over 1000 post.
Like come on.
Atleast make it decent.
Re: [C++] My First Program =]
Since when does post count relates to programming knowledge? This forum has other sections like games, art and servers. Its not dedicated to coding...
Re: [C++] My First Program =]
Ok i just started attempting to learn c++ yesterday...
And let me tell ya, due to all these not so nice posts i will probably never stick anything in this showcase lol.
Re: [C++] My First Program =]
Yeah, people want to see usefull programs in the section, apparently. And before you make really usefull tools with C++, you'll need a few years of experience. Best way is to get in contact with a good programmer to which you can show and share code.
Re: [C++] My First Program =]
Yeah...
But it's completely logical to expect someones first app to be of years of experience calibur.
Re: [C++] My First Program =]
Yeah, but if its just a test program or a program to show what you can do with C++, than this is not the right section. Its not a section for "look what I created, aint I uba?". For your small test programs you'd better share it with someone with experience, personal. Than you get a much better review of how you actually wrote the code.
Re: [C++] My First Program =]
Oh, so this is more of a elite showoff thread. Not just a "come show us your first shitty app" thread xD
oh btw, if you have time i'd really like it if you could check out my post in c++ tut #2, doesn't seem like kylenos has time to and i would really like some contructive critisism so i can improve. =D
Re: [C++] My First Program =]
Very good! every one starts with calculators and stuff. I remember that my first program was physics formula calculator. Keep it going! ;]