Class
-
Well, I'm trying hard to get him to take the point - he is out of his league and should take the time to learn this stuff before thinking he can design and write a game engine. But it *is* kinda funny..... Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
Oh... If you've got a couple of spare minutes, I'd love it if you could explain to me what a class is. Sorry to dissapoint you all with my lack of a witty or poignant signature.
-
Oh... If you've got a couple of spare minutes, I'd love it if you could explain to me what a class is. Sorry to dissapoint you all with my lack of a witty or poignant signature.
Jon Hulatt wrote: Oh... If you've got a couple of spare minutes, I'd love it if you could explain to me what a class is. Apparently something you should have attended more regularly if you went to Uni, otherwise something you should take up in the evening to help you understand how to program.... :laugh: :laugh: :laugh: :-D Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
-
Jon Hulatt wrote: Oh... If you've got a couple of spare minutes, I'd love it if you could explain to me what a class is. Apparently something you should have attended more regularly if you went to Uni, otherwise something you should take up in the evening to help you understand how to program.... :laugh: :laugh: :laugh: :-D Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
Wow. That helps. Now, tell me what is a pointer? how can i use them in my program? Sorry to dissapoint you all with my lack of a witty or poignant signature.
-
Wow. That helps. Now, tell me what is a pointer? how can i use them in my program? Sorry to dissapoint you all with my lack of a witty or poignant signature.
Jon Hulatt wrote: Wow. That helps. Now, tell me what is a pointer? how can i use them in my program? Here's a pointer - move to VB. :laugh: Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
-
Can I just say again that it scares the hell out of me that someone who doesn't know ( in this case ) what a class is, is talking about writing a game engine ? You're setting yourself up to fail, or in the least write something truly awful, when you set out to write something well and truly beyond your skills. You need to forget about windows, forget about games and sit down and learn these total basics which you lack. Write console programs until you understand C++ to the point of being able to write classes, a class structure that uses inheritance, and the standard iostreams and STL to at least a basic degree before you even think about windows or game programming. That is not to say you suck, it's more that like a lot of people, you're so eager to get the end result that you're not putting the time you need into the basics. I keep hoping for your sake that this particular light will come on, but the number of failed game engines in existance proves to me that this is not guarenteed to happen. Whatever happens, I'm always happy to answer your questions, but this is the best piece of advice you've got to date ( although I don't think it's the first time I have given it ). Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
Christian Graus wrote: You need to forget about windows, forget about games and sit down and learn these total basics which you lack. Thanks... "Writting games is the only thing i know how to do... so weather it is a small stupid game... which ive bean doing "Stupid text(Just text)((Only only, text)" "no graphics what so ever..." (i think you get it) :) Im trying to learn the basics, thats why im working on text rpg instead of tetris clone. I want to know C++ to the fullest, so much that i can think of somthing to program and almost instintly think up the structure of that program. I am the most dedicated learner that "I" have ever seen. "I just dont know where to start." "I do know what a pointer is... kindof... it points to the address of somthing, you use "&" with it... I know of allot of things... but i dont know why they are used... or, what the can do to make my program run more efficiently. I need a project, somthing that i can do and learn the things i need to... so, till i find one, or till someone gives me one "learning purposes only" Im going to be cruising the books and taking note on whatever i can to program better. Thanks, "It scares the hell out of me to :)" ~SilverShalkin :rose:
-
Christian Graus wrote: You need to forget about windows, forget about games and sit down and learn these total basics which you lack. Thanks... "Writting games is the only thing i know how to do... so weather it is a small stupid game... which ive bean doing "Stupid text(Just text)((Only only, text)" "no graphics what so ever..." (i think you get it) :) Im trying to learn the basics, thats why im working on text rpg instead of tetris clone. I want to know C++ to the fullest, so much that i can think of somthing to program and almost instintly think up the structure of that program. I am the most dedicated learner that "I" have ever seen. "I just dont know where to start." "I do know what a pointer is... kindof... it points to the address of somthing, you use "&" with it... I know of allot of things... but i dont know why they are used... or, what the can do to make my program run more efficiently. I need a project, somthing that i can do and learn the things i need to... so, till i find one, or till someone gives me one "learning purposes only" Im going to be cruising the books and taking note on whatever i can to program better. Thanks, "It scares the hell out of me to :)" ~SilverShalkin :rose:
SilverShalkin wrote: Writting games is the only thing i know how to do Bull. You mean 'writing games is all I want to do'. Game programming is a superset of common programming skills. If you cannot write a calculator ( my suggested first C++ task ) then you cannot write a game. Period. SilverShalkin wrote: Im trying to learn the basics, thats why im working on text rpg instead of tetris clone. An rpg is *not* the basics. This is what I'm trying to get you to understand. SilverShalkin wrote: I want to know C++ to the fullest, so much that i can think of somthing to program and almost instintly think up the structure of that program. *grin* if you manage that you'll be beating everyone here, but I understand what you mean. Do you own 'the C++ programming language' by Bjarne Stroustrup ? You should get it if you don't. SilverShalkin wrote: I am the most dedicated learner that "I" have ever seen. "I just dont know where to start." Write a calculator program. Make a base class called calculation that defines what a calculation does, then define derived classes that do individual calculations such as add. No program would ever do this for a calculator, but the simplicity of the task will let you focus on the details required to make the classes behave properly. Then have a pointer to the base class in your main app, so you can learn more about pointers and so on. Use dynamic_cast to find out if the pointer you have is the type you want or not. Again, this example is designed to teach you a lot of stuff, not to be practical. I'd be glad to help you. SilverShalkin wrote: I know of allot of things... but i dont know why they are used... or, what the can do to make my program run more efficiently. Which gets back to me saying focus on the basics for a bit. SilverShalkin wrote: so, till i find one, or till someone gives me one "learning purposes only" Im going to be cruising the books and taking note on whatever i can to program better. Stroustrups book is also full of examples and exercises. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer
-
SilverShalkin wrote: Writting games is the only thing i know how to do Bull. You mean 'writing games is all I want to do'. Game programming is a superset of common programming skills. If you cannot write a calculator ( my suggested first C++ task ) then you cannot write a game. Period. SilverShalkin wrote: Im trying to learn the basics, thats why im working on text rpg instead of tetris clone. An rpg is *not* the basics. This is what I'm trying to get you to understand. SilverShalkin wrote: I want to know C++ to the fullest, so much that i can think of somthing to program and almost instintly think up the structure of that program. *grin* if you manage that you'll be beating everyone here, but I understand what you mean. Do you own 'the C++ programming language' by Bjarne Stroustrup ? You should get it if you don't. SilverShalkin wrote: I am the most dedicated learner that "I" have ever seen. "I just dont know where to start." Write a calculator program. Make a base class called calculation that defines what a calculation does, then define derived classes that do individual calculations such as add. No program would ever do this for a calculator, but the simplicity of the task will let you focus on the details required to make the classes behave properly. Then have a pointer to the base class in your main app, so you can learn more about pointers and so on. Use dynamic_cast to find out if the pointer you have is the type you want or not. Again, this example is designed to teach you a lot of stuff, not to be practical. I'd be glad to help you. SilverShalkin wrote: I know of allot of things... but i dont know why they are used... or, what the can do to make my program run more efficiently. Which gets back to me saying focus on the basics for a bit. SilverShalkin wrote: so, till i find one, or till someone gives me one "learning purposes only" Im going to be cruising the books and taking note on whatever i can to program better. Stroustrups book is also full of examples and exercises. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer
Christian Graus wrote: SilverShalkin wrote: Writting games is the only thing i know how to do Bull. You mean 'writing games is all I want to do' "its all that i have the heart to program" (learning quickly though, calculater program may help more :)) Christian Graus wrote: Do you own 'the C++ programming language' by Bjarne Stroustrup ? You should get it if you don't. this is a book right? or is it the actual programming language? "just wondering" ill go and check it out. thanks for the help ~SilverShalkin :rose:
-
Christian Graus wrote: SilverShalkin wrote: Writting games is the only thing i know how to do Bull. You mean 'writing games is all I want to do' "its all that i have the heart to program" (learning quickly though, calculater program may help more :)) Christian Graus wrote: Do you own 'the C++ programming language' by Bjarne Stroustrup ? You should get it if you don't. this is a book right? or is it the actual programming language? "just wondering" ill go and check it out. thanks for the help ~SilverShalkin :rose:
SilverShalkin wrote: "its all that i have the heart to program" (learning quickly though, calculater program may help more ) Exactly. The point is not to love what you're doing, but to do things that will equip you to do what you love. SilverShalkin wrote: this is a book right? or is it the actual programming language? "just wondering" ill go and check it out. It's a book - get the third edition, which is the current one. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
-
SilverShalkin wrote: "its all that i have the heart to program" (learning quickly though, calculater program may help more ) Exactly. The point is not to love what you're doing, but to do things that will equip you to do what you love. SilverShalkin wrote: this is a book right? or is it the actual programming language? "just wondering" ill go and check it out. It's a book - get the third edition, which is the current one. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
-
Christian, I am not sure if you are aware but a text RPG is actually a console program not windows, usually in a text rpg they will give you a story then ask you a question and you reply by typing "turn east" or another sort of function.:cool:
Whoops just to let you know that was me... i thought was logged in:-O