My C++ project

Here’s the source code and exe of my final computer project. A simple contact keeper. It’s pretty buggy now, if you enter wrong type of values ( characters instead of number) the project goes in an infinite loop. I wanted to fix that but my reluctance to show interest in anything school related stopped me.

So here’s the download link-

http://dl.dropbox.com/u/5811650/project.rar

Apart from that I am thinking of moving the blog to Blogger because it has better features,allows me to post swf files and supports Adsense. I wont do it now, maybe after March after my final theory exams.

C++ Example and another Christmas Card

Here’s another C++ example showing the use of graphics.h in TC 3. The code is not commented, but I may explain about it later some time.

Download Example

It’s kind of interesting that when I showed this to my friends(who also are learning C++ at school) the first question they asked was-

“From where did you copy this?”

LOL…this is what you get if you don’t showoff your knowledge at school, and I couldn’t care less about them. :P

This is the reason why there is a firewall between the ‘game maker me’ and the ‘student’ me. No friends of the ‘student’ me’ knows anything about the ‘gamer maker me’. ;)

Graphics example in Turbo C++ Part 2

Here’s another example of using Graphics.h header file in TC 3.

DOWNLOAD

Use W,A,S,D to move, B to Quit.

It uses the kbhit() function present in conio.h for storing the value of the key pressed by the user. Note that if you press two keys at the same time, it only repsonds to one of them since the buffer can store only one key at a time.The code is commented and fairly esy to understand if you know basic C++.

Graphics example in Turbo C++

Here’s an example of how to use the “Graphics.h” header file which comes with the TC Compiler. Yeah, I know the
compiler is pretty old and nobody uses it, but still it’s used in many schools in India(really, don’t know why).
Here’s the TC download:

DOWNLOAD

In the source code change the path in the ‘initgraph’ line to where you have stored the BGI files of TC and don’t
forget to use double slash(\\) in the path. IF the program still doen’t compile then, go to
OPTIONS->Linker->Libraries and check the ‘Graphics Library’ option.

Download Example:

DOWNLOAD

And there will be no Demo released of ‘Infestation’ since the development has pretty much stopped because of lack of time, but I’ll try to resume the development after some time.

C++ Game Source Code

A few days ago i made a post about my first C++ game and promised that I’ll release the source code of that, so here it is…

DOWNLOAD

EXE FILE

SOURCE CODE 

To open it you’ll need C-Free IDE, although it may work in other(like Dev C++) IDE’s but everyone uses slightly tweaked rules like C-Free allows void main() but in Dev C++ you will have to use int main() , don’t worry if that doesn’t make any sense to you :) , i have also included a .exe of the file that is the main game. The code is mostly uncommented just there are some line’s of comments in the code. The game worked fine in Windows Xp but i don’t about Vista or Win 7.

       

Hope you like it (and I hope it runs on you PC)  

 

My First C++ Game!

Yes! I have completed my first C++ game that i made for school project. No, it’s not a full blown 3d game but just a simple quiz on computers and internet. It took around an hour to make and has around 150-200 lines of code. It features an score system, difficulty level, and also a “Play Again” button! Wish I could sell it for Rs.1000(around $25), nah, if ever I make games(as hobby) I’ll make sure they are free…

And yes I’m (going to start) working on the Novice C++ tutorials. And this was my first post using “Windows Live Writer”, no more typing in notepad……

Tomorrow I’ll be posting the source code and the game itself.

*yawn* time to sleep it’s 1 AM already!