Your first program

Anable

Newbie
Joined
Nov 21, 2003
Messages
270
Reaction score
0
I'm getting rather depressed about learning c++. I mean, I do realize that it's one of the hardest languages to learn but nevertheless I don't feel like I'm accomplishing anything. What was the first program you made that you were proud of? It doesn't have to be written in c++, I'm just curious all around.
 
My first program i was proud of? I wrote a converter which took a text message and converted it to binary. If you had Outlook installed on your system it used Outlook to send the email transcribed in binary.

01001101 01111001 00100000 01100110 01101001 01110010 01110011 01110100 00100000 01110000 01110010 01101111 01100111 01110010 01100001 01101101 00100000 01101001 00100000 01110111 01100001 01110011 00100000 01110000 01110010 01101111 01110101 01100100 00100000 01101111 01100110 00111111 00100000 00100000 01001001 00100000 01110111 01110010 01101111 01110100 01100101 00100000 01100001 00100000 01100011 01101111 01101110 01110110 01100101 01110010 01110100 01100101 01110010 00100000 01110111 01101000 01101001 01100011 01101000 00100000 01110100 01101111 01101111 01101011 00100000 01100001 00100000 01110100 01100101 01111000 01110100 00100000 01101101 01100101 01110011 01110011 01100001 01100111 01100101 00100000 01100001 01101110 01100100 00100000 01100011 01101111 01101110 01110110 01100101 01110010 01110100 01100101 01100100 00100000 01101001 01110100 00100000 01110100 01101111 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00101110 00100000 00100000 01001001 01100110 00100000 01111001 01101111 01110101 00100000 01101000 01100001 01100100 00100000 01001111 01110101 01110100 01101100 01101111 01101111 01101011 00100000 01101001 01101110 01110011 01110100 01100001 01101100 01101100 01100101 01100100 00100000 01101111 01101110 00100000 01111001 01101111 01110101 01110010 00100000 01110011 01111001 01110011 01110100 01100101 01101101 00100000 01101001 01110100 00100000 01110101 01110011 01100101 01100100 00100000 01001111 01110101 01110100 01101100 01101111 01101111 01101011 00100000 01110100 01101111 00100000 01110011 01100101 01101110 01100100 00100000 01110100 01100101 01101000 00100000 01100101 01101101 01100001 01101001 01101100 00100000 01110100 01110010 01100001 01101110 01110011 01100011 01110010 01101001 01100010 01100101 01100100 00100000 01101001 01101110 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00101110

Is the message right above it ASCII equivalent in binary. It even changed the subject line.

I used it to send email at work so the system admin wouldn't read my email. It was done in VB, and it's still not done yet.. i work on it every so often...
 
ah damn it... now i need to write an encryption. At least i know my program works properly :)
 
Anable said:
I'm getting rather depressed about learning c++. I mean, I do realize that it's one of the hardest languages to learn but nevertheless I don't feel like I'm accomplishing anything. What was the first program you made that you were proud of? It doesn't have to be written in c++, I'm just curious all around.
C++ is actually relatively easy comared to some languages. If you want hard, try assembly ^_~
 
C++ is actually relatively easy comared to some languages. If you want hard, try assembly ^_~

Perhaps I should rephrase: C++ is one of the hardest high level languages. I do realize that coding in binary would probably be quite a bit more depressing.
 
SmashOut!

This was my best program I think..course it was my LAST program as well.
There was a program that we started work on, a basic 3D Engine, but I never got to finish it.
 
InsaneFool - Your install doesn't work for me. "This files contains invalid data"

Using Windows 2000 SP4
 
Anable said:
Perhaps I should rephrase: C++ is one of the hardest high level languages. I do realize that coding in binary would probably be quite a bit more depressing.
This is true, generally the hardest thing to get used to is type strictness. I moved to C++ from PHP, which lacked data types, as well as the problems with arrays and dynamic memory that C++ have. Overal the transition took a bit, but was worth it overall.
 
Anable, how long have you been learning? Are you taking a class, self teaching, what?

I've been self-teaching for about a week.. got the C++ For Dummies book (I'm a dummy :( lol), about a fourth of the way through it.. haven't gotten into anything complex, just learned about arrays (so.. the book's still going over what each command does, and what not)

Anyhow, sadly, the first program I was proud of was/is a calculator.. lol, as I learn more C++, I keep updating it.. not very advanced though =(

BTW, InsaneFool, that's pretty cool :)
 
Thanks.

Yeah, I posted that link elsewhere and other guy had a problem installing it.
very strange.
 
A small Java applet that would draw the Mandelbrot set (I think thats how you spell it.)

Anyway if youve ever heard of fractals you will probably know what it is i'm talking about.
 
Ya I still have it. Heres the source code for each class.

EDIT: I just realized its really hard to read in this format. So here they are as txt files instead.
 
Anable, how long have you been learning? Are you taking a class, self teaching, what?

I'm actually self teaching and my pace is pretty start-stopish because I get so little free time between work and school. Right now I'm mainly learning from this site but I also have this Sam's book which I'm not too happy with because the lessons don't build on each other as much as I'd like them too. Also, everyone's code looks different and I like the way the cplusplus.com website writes better than I like the way the Sam's book does.

So is that a fully functional calculator that can add/sub/multi/divide? That would be pretty impressive. I can make it do one of those but not all at the same time.
 
Anable said:
I'm actually self teaching and my pace is pretty start-stopish because I get so little free time between work and school. Right now I'm mainly learning from this site but I also have this Sam's book which I'm not too happy with because the lessons don't build on each other as much as I'd like them too. Also, everyone's code looks different and I like the way the cplusplus.com website writes better than I like the way the Sam's book does.

So is that a fully functional calculator that can add/sub/multi/divide? That would be pretty impressive. I can make it do one of those but not all at the same time.
There are many varied coding styles. Something that you start developing from the onset of coding is your style, generally it's based off whatever material you first learn from, and sticks with you despite transitioning to other languages.
 
Hurray for me, I have a program completed. It's a magic 8 ball. Ask it anything!!

Download here.

EDIT: As a heads up, you have to run it from the console window or your answer is given too quickly before the window closes.
 
The first program I made that I can be proud of?

Well, I just finished the first program I am getting paid to write! Im pretty damn proud of that.

Its called M-DET. Merger Data Extracton Tool. It takes data out of Gov of Canada merger records and compiles it into tab deliminated fields for import into excel.
 
Its called M-DET. Merger Data Extracton Tool. It takes data out of Gov of Canada merger records and compiles it into tab deliminated fields for import into excel.

Kinda makes my magic 8-ball look like crap. :(
 
My first "big" program was a space shooter in 2D written with C and SDL. But I've never finished it. Perhaps I'll work on it again, but at the moment I don't like. ;)
 
Mine was a Tetris clone written in java, looking back, the code was horrible but it worked and it had a MIDI player too :p. The last thing I added was a score counter
 
ah well, as i'm here...

Back on my Atari I made many version of 'the guessing game', mostly so i could try out all kinds of extra effects around it, such as sound and graphics.

Proably my greatest achivement was convincing someones 50Khz tracker reply code to work in STOS basic as an extension, the sense of joy i got after about 4 days of solid 68000 assembler programming still hasnt been topped :D
I was planning on using in a demo i never got finished, but it did have spinky hardware scrolling, 50hkz mod reply and some spinky color bar graphics... ah, pushing the STe, such fun ;)
Also, back in my Atari Assembler hacking days i was part of an effort to make it possible to use GEM (the atari's native windowing system) with STOS (which it was never designed to do), we got a little way with it before i had to goto Uni :(

On the PC, well I did a DOS program and then a Java port of it, both for my mum so she could arrange her keyring collection.
At Uni we had to do a serials coms project, it took me a week but I did all the low level stuff in assembler and linked it to a C++ front end, it was hard but DAMN fun :D

On a PHP trip, I did a small Content Managerment System for an old Clan website, and i was pretty proud of that, basic user levels and news/download and profile update system. I'd like to get around to expanding it one day, probably when I get around to looking at PHP5

And finaly, my server data collection program for CSports, 100s of lines of pure C++ glory... well, ok, it looked good when i started it and frankly the program rocks, 100% stable, multi-threaded and since the last version i dont belive it has crashed once :)

The program i've done which the most people have seen however was Eradicators, the HL mod ;)

Hmmm i've done more stuff than i thought, hehem and as i type this i'm finaly getting my head into doing my OpenGL Window Wrapper library, which is a prelude to me doing more stuff with OpenGL :)
 
010101000110100001100101001000000110011001101001011100100111001101110100001000000111000001110010011011110110011101110010011000010110110100100000010010010010000001110111011100100110111101110100011001010010000001110111011000010111001100100000011101000110100001100101001000000111000101110101011000010110010001110010011000010111010001101001011000110010000001100110011011110111001001101101011101010110110001100001001000000010011000100000010010010010000001110111011100100110111101110100011001010010000001101001011101000010000001101111011011100010000001100001001000000101010001001001001011010011100000110000001011100000110100001010010001100111001001101111011011010010000001110100011010000110010101110010011001010010000001001001001001110111011001100101001000000110010001101111011011100110010100100000011000010010000001101100011011110111010000100000011011110110011000100000011011010110000101110100011010000110010101101101011000010111010001101001011000110110000101101100001000000110000101101110011001000010000001110000011010000111100101110011011010010110001101110011001000000111000001110010011011110110011101110010011000010110110100100000011011110110111000100000011000110110000101101100011000110111010101101100011000010111010001101111011100100111001100101110001000000000110100001010000011010000101001010000011100100110111101100010011000010110001001101100011110010010000001110100011010000110010100100000011011010110111101110011011101000010000001110101011100110110010101100110011101010110110000100000011100000111001001101111011001110111001001100001011011010010000001001001001000000111011101110010011011110111010001100101001000000111011101100001011100110010000001101111011011100110010100100000011000110110000101101100011011000110010101100100001000000010001001110100011100100110000101101001011011100110000101100010011011000110010100100010001000000111011101101000011010010110001101101000001000000111100101101111011101010010000001101001011011100111000001110101011101000010000001100010011000010111001101101001011000110010000001110100011100100110100101100001011011100110011101101100011001010010000001101001011011100110011001101111001000000010100000110011001000000110100101101110011100000111010101110100011100110010100100100000011000010110111001100100001000000110100101110100001000000111010001100101011011000110110001110011001000000111100101101111011101010010000001110111011010000110000101110100001000000111010001101000011001010010000001101111011101000110100001100101011100100010000000110011001000000111011001100001011100100110100101100001011000100110110001100101011100110010000001100001011100100110010100101110001000000010000001001001001000000111011101110010011011110111010001100101001000000110100101110100001000000110100101101110001000000011000100110000011101000110100000100000011001110111001001100001011001000110010100100000001001100010000001110101011100110110010101100100001000000110100101110100001000000111010101101110011101000110100101101100001000000100100100100000011001110111001001100001011001000111010101100001011101000110010101100100001000000110001101101111011011000110110001100101011001110110010100101110001011100010111000101110011100110110000101110110011001010110010000100000011000010010000001110011011010010110011101101110011010010110011001101001011000110110000101101110011101000010000001100001011011010110111101110101011011100111010000100000011011110110011000100000011101110110111101110010011010110010000001100001011011100110010000100000011101000110100101101101011001010010111000001101000010100000110100001010

EDIT: I'll stop being a nerd....

The first program I wrote was the quadratic formula & I wrote it on a TI-80.
From there I've done a lot of mathematical and physics program on calculators.

Probably the most useful program I wrote was one called "trainable" which you input basic triangle info (3 inputs) and it tells you what the other 3 variables are. I wrote it in 10th grade & used it until I graduated college....saved a significant amount of work and time.
 
The program i've done which the most people have seen however was Eradicators, the HL mod

\o/

You not mentioning your illustrious stint on the Battlecruiser games then?
 
Here's just a few programs I've written.....


Base Conversion: This function converts from any base to any base.
RSA Encryption: This program encodes and decodes strings using the RSA encryption algorithm. It properly incorporates public and private keys.
Inverse MOD: This program does the inverse of the Modulus function.
3D to Contour: This program draws contour lines of 3D functions.
Eigen Vector: This program inputs a matrix, and return the Eigen vector.
Length: This returns the length of any vector (of any dimension).
3D Vector Projection
Conic Section: Input values for a, b, c, d, and e where aX^2+bY^2+cx+dY+e=0, and the program returns relevant information such as the type of conic section, foci, radius, vertices, and more.
Limit: Finds the limit of a function (Calculus).
Log Converter: Input three of three variables in the equation and the value of the unknown is returned.
Triangle: This program solved any (2D) Triangle. Inputs are angle A, B, and C and sides a, b, and c. Input any three variables (other than three angles), and the other three variables are automatically solved and returned.
Bisectection: Approximates intersection of f(x)=0.
Golden: Integral Approximation.
Integral Approximation: Integral approximation by sampling at specified intervals.
Linear Lease Squares
Mark8: Mark 8 conversions.
Monte Carlo: Integral Approximation.
Rhomberg Algorithm
Runge Kutta
Secant
Taylor Estimator
 
Anable said:
Hurray for me, I have a program completed. It's a magic 8 ball. Ask it anything!!

Download here.

EDIT: As a heads up, you have to run it from the console window or your answer is given too quickly before the window closes.
create a new int, ie: x, then at the end of the program, std::cin >> x.

Your program will wait for user input, then once it gets it, it will close. This way you won't need to use the command window

I'm still learning too, self learning, using Sams Teach Yourself in 21 days and some random websites, so there's probably a better way to accomplish what I just told you to do.
 
My first program was a tic tac toe game with lots of frills, it actually seems really dumb to me now, but i was quite proud of myself back then.
 
My first step was Hello World, of course, followed by a program that took weather data and made it into a nice little display sheet.
 
PiMuRho said:
You not mentioning your illustrious stint on the Battlecruiser games then?

heh, dear god, i dont even want to think about the hacked up mess which was the code for that ;)

oh yeah, and in my list i forgot my 'bit rearranger', which fluffles a file and stops it being compressed, i've no idea how it does it but i tested it with a txt file and an mp3 and the orignal files compressed fine but after processing they wouldnt compress at all, apon conversion back to the orignal file they compressed fine again o_O
 
First good program, eh? That would be way way back, I programmed a game or two in QBasic. I didn't know how to program anything, and I must have been around 12 or 13, which makes this program about 6 years old.

Still, I made a platfromer game with a particle system, dynamic collision detection, red-faction-style demolitions, fully animated enemies and lots of color. (I just thought those sorts of things were cool, I never thought twice if they had been done before. I didn't play many computer games at that time)

I can't run the game anymore because my new video card doesn't like the qbasic color settings or something, but it runs fine. If you have QB or want to try to see if it works for you, here's the page:

http://www.angelfire.com/wi3/williamresume/qbasic/tombe.html

...and I never looked back, I guess.
 
I made this really neato delay function... it stopped the program at a certain line for a specified amount of time... I was proud of that, I guess. :)
 
oy, not counting hello world, it was payroll. a bunch of fake employees, give em salaries, etc. DId that for meh programming classes, both of em by the same teacher so I did it twice, once in java, and once in C.

I hate Employees.class so much.
 
I started with the infamous "Hello World" program, and then the author of the book (C++ for dummies...*shudders) started talking about nachos or something along those lines. I burnt the book and moved on. After many years of scouring the internet for help (might have been a few days, don't recall) I found neHe. After about five years of work, I can proudly say that my skills have reached the point where I can write the "Hello World" program...with 3D lettering :O
 
you fool! nacho's are a key fundamental programming concept, along with coffee and ciggies. my finest achievement, ignoring the collection of hacks i used to call i-fighter, a space combat hl mod, is a little 2d fighter game thingy. made my own simple little engine, its done in c++ using clanlib (a very sweet collection of libs for starting out on your game coding journey). haven't been paying it attention recently though, need more time in the day
 
Onions, you forgot pizza. My first (and only) proper program is here. You'll need Age of Mythology installed to do anything other than look at it, of course, but I still think it's pretty good.
 
My first program was like 8 years ago in VB 3.0. Hello world!
 
Back
Top