well i dont know any of the codes yet so i can not make any programs. where could i get codes from?
well i dont know any of the codes yet so i can not make any programs. where could i get codes from?
If you want to write a game then you first have to learn to code in C++ or whatever language you want which takes a lot of time and dedication and you have to learn to walk before you can run. When you dont even know the absolute basics of programming, just looking at code will not help you to learn how to write a game. Follow the lessons that someone already pointed you to and start there.
Get a grip man - start at the start and learn well! god if it was
as easy as you seem to think to write complex programs, there
would be no industry as we'd all write all our own programs.
why else do you think people get paid loads of money to write
code?
take everyone elses advice - and programming in C++ is not what
you may believe, there are no "codes" that will do all the work
for you, so its not like you can learn off a massive list of functions
and hope to write complex programs. You will need to learn all
about how many different algorithms work in order to train
yourself to design your own. Thats why you learn the language -
to implement processes that do useful things.
if you are starting from scratch and on your own (no good
teacher/good book) then you would be very ambitious
in being able to write a notable text based game. check out
the games forum and look at how long the code for some games
are which you might think of as simple (tic-tac-toe). you cant
realistically expect to be able to do work to that level for some
time yet. take your time and start off slow
No No's:
fflush (stdin); gets (); void main ();
Goodies:
Example of fgets (); The FAQ, C/C++ Reference
My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition
ASCII stupid question, get a stupid ANSI
Originally Posted by demon101
...and stop calling syntax "the codes". You're acting like you're learning cheats for a video game.
Sent from my iPadŽ
Just to add, I have been learning C++ for two years now, and at frist I had to buy at least one good book on practival C++, then when I got half decent and was able to learn and write larger more complexs programs with little ease without the book, I knew some of it was sticking. Take the advise of all you have read on this thread, they all know what they are saying. Now I have bought two good books on game programming, one on simple games, one on harder more comples games. To make the games you want, I am guessing somthing complex like final fantasy or zelda, you have a LOT to learn.
Those big industry games are made by people with years of expereince and work in a large team, but with good practice patience and a good book, there is no reason you cannont get this good in a few years.
Here is soke basic stuff, then a harder program to show you the diffrence in how complex the language is.
simple prog
harder code:Code:#include <iostream> using namespace std; int main() { int age; cout << "What is your age?: "; cin >> age; if ( age == 25 ) { cout << "You are my age!" << endl; } else { cout << "You are not my age!" << endl; } return 0; }
As you can see, there is a big difference beteen the two programs. To get to the level of advanced game programing, you would need more than the larger program shown here. Good luck in your pursuit, and remember the good people on the boards will be here to give advice when you get stuck or need help.Code:#include <iostream> using namespace srd; class myClass { public: int age; string name; myClass(); }; myClass::myClass() { age = 25; name = "pete"; } int main() { myClass mc; cout << "My age is: " << mc.age << endl; cout << "My name is: " << mc.name << endl; return 0; }
i tryed the code and it didnt work. i typed it all in and it didnt work.
That code has some errors in it. I don't think it is meant to be used as is. The point is the idea behind it.
>> To get to the level of advanced game programing, you would need more than the larger program shown here.
You'd want to know a lot more than what is shown there.
To be a good at programming or get anywhere, in any decent amount of time you need to be "quick witted." Excellent problem solving skills, good with mathematics and logic, etc., is all necessary as well.
If that's too much for you then you might be looking in to the wrong thing, that's just being honest.
In fact I almost think your some guy messing around, because you're acting a little stupid, almost too stupid to take seriously. Maybe I'm being a jerk but it really seems that way.
Last edited by exoeight; 02-15-2006 at 02:50 PM.
I agree. Yes, you need good logic and problem solving skills, but all that might mean is you need to buckle down and concentrate. Besides the point, I see employed programmers every day that have terrible logic skills. Are they great programmers? Nope. They do program though.Originally Posted by exoeight
Don't tell someone that they should look for another career when you barely know about them. For all you know the OP is 12 years old. Maybe he doesn't know what is expected in programming and just isn't putting thought into it. It doesn't mean he can't.
Sent from my iPadŽ
Basically to echo everyone else in the thread.
Start with the basics and work up.
YOU WILL NOT BE ABLE TO MAKE A GAME WITHIN 1 WEEK OF LEARNING C/C++.
Thats all in caps so you remember it well.
Unless you are an incredible genius, far beyond anyone else, you will need time and dedication to learn C/C++. Once you have the basics under control keep increasing your skills. I've been programming for some 9 years now, it would take me quite some time to code a good game. I could do it, but the time invested would be steep, and probably to me not worth it.
Take some courses, teach yourself, do anything to learn, but don't expect to be coding any sort of game whatsoever for quite some time. Its a reality, and you need to be sound in C/C++ to consider anything as complex as a game.