|
I am really only trying to help him get a grasp on the language, whatever he wants to do with it after that is up to him. I believe that the current project he is trying to develop is a text based RPG in the console.
I think that he'll learn on his own that he needs to gain more experience in the basics. The way that I got a firm grasp of the concepts was by making mistakes, and figuring out what I needed to learn more of. I think that he will get it, he is just going about it a different way than you did, but I do know that he is learning, and I think that is the whole point of this is teaching and learning.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
kilowatt wrote:
I believe that the current project he is trying to develop is a text based RPG in the console.
Would it be your advice that this is a suitable first ever C++ project ???
kilowatt wrote:
I think that he will get it, he is just going about it a different way than you did, but I do know that he is learning, and I think that is the whole point of this is teaching and learning.
I guess you're right. I realise that some people need to fall on their face before they realise they need to take a step back. I help a lot of people here, and I don't think anyone has ever frustrated me to the point of a reply like this one did. I just hope that someday he actually takes the advice he asked me for and then ignored.
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:
kilowatt wrote:
I believe that the current project he is trying to develop is a text based RPG in the console.
Would it be your advice that this is a suitable first ever C++ project ???
I wouldn't suggest doing a game for a first project. I think that if your in school or at a job and you can go about learning something pragmatically I would choose a series of controlled simpler programs that could be coded in about an hour for a beginner.
I think that SilverShalkin is learning how to program for fun, and I think the fact that he has a program that he is interested in will drive him to learn all of the things that he needs in order to accomplish what he wants, in this sense I think it is good to have a little instant gratification. I have done this before too. Start a project that I do not know how to do everything, do what I can, and learn what I need to in order to do what I want, even if the entire code is not as good as it could be.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Thanks. "both of you" the response was funny and i dont care what people say,.. "it will never be harsh to me" not that i like it. "well some times, like this time... its only funny" not like im doing it to lauph at you "cristian" i doit for the purpose of the question... which is "by your wording" is the correct way to go out and learn.
you said somthing like "this is to cristian": I like to start projects i have no clue how to do, FOR THAT I CAN LEARN SOMTHING NEW! give you a roses are so cool. any ways, yes i am stupid for trying to learn, it isnt the first time you have made this point clear... "probably not the last"
now,... my goal here isnt to frustrate any one "but my self" so if any of my messages frustrate any one on this forum... you can either
A.) ignor them and go on "no need to waist time"
B.) answer the question that was asked.
C.) answer the question like a know it all.
i prefure (B) because,... the answering doesnt take up that much time. and it gets the point across. It is most helpfull... "and some more that i cant thing of at the moment"
you must except the fact that people may not be as advanced as you are. "take note, that they are trying" thank you.
Cristrian, I have always bean thankful for your help, and i believe that others have also bean thankful for it as well. so wether i get the answer through total sarcasm or strait forward... I still get the answer to my problem.
You are so lucky to be able to go and help the people on this forum,... and not like me "depend on them" I cruise the forum every day looking for a question that i could help on... like one of my first question "how do you make an if statment" man,... that must of bean a stupid question to you all... but through everyones help... i can do a ton more than i could of.
Thanks everyone for helping
~SilverShalkin
I give a to everyone for help.
I give a to every one for realising their ability
And finally i give a to all the know it all's that just
dont understand the big picture.
|
|
|
|
|
SilverShalkin wrote:
I like to start projects i have no clue how to do, FOR THAT I CAN LEARN SOMTHING NEW!
Hell, most of my projects are like that. But a man why tries to learn the lambada but for some reason never learned to walk is bound to look silly. That's all I am trying to say.
SilverShalkin wrote:
you must except the fact that people may not be as advanced as you are. "take note, that they are trying" thank you.
Of course, it's to help people who are learning that I post here at all. ( in the forum I mean )
SilverShalkin wrote:
yes i am stupid for trying to learn
NO, NO, NO. You are BEING foolish to not take the time to learn some elementary skills before tackling this project. But kilowatt is right, if you don't have the dedication to do that, a couple of totally awful and badly designed games are better than no code because you can't be motivated to code anything else. BTW, I cringe when I look at my code from two years ago, so 'totally awful' is I suspect something we all have to look back and deal with
SilverShalkin wrote:
You are so lucky to be able to go and help the people on this forum,... and not like me "depend on them"
I started with comp.lang.c++, a totally BRUTAL place to make mistakes like asking about Windows specific functions by accident. I put up with the brutality because still today most of those guys run rings around me in C++. I learned what was appropriate, did the exercises that people recommended, and learned C++. Then I started programming for Windows and used forums like CP to learn. I'm not lucky, I've worked damn hard. There's no reason you can't aspire to do the same.
Just to recap.
1. I was very rude to you this morning and I apologise. kilowatts last post has made me realise that even if you're learning by a sub optimal path, if that's the only one you're capable of, at least you're learning and trying. And most important, asking questions, I've never wanted to discourage anyone from doing that, although I've been disappointed that you sometimes don't accept the answer.
2. I didn't mean you were stupid, rather that you're taking a stupid path. But if you choose that path I will continue to be happy to assist you
3. I am far from being an advanced programmer, nor am I gifted. I just work hard. There is nothing magic about it, and the fact that so many people helped me is another reason I am keen to be helpful now that I have some skills under my belt also.
So are we all friends again ?
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
|
|
|
|
|
We be always friends
I dont try to ask the questions that are to advanced... ill be at a point of understanding somthing then there will be one error in my program,... ill change somthing then i have 15 errors... completly confused ill jump on CP to try to understand what i was doing wrong "that somthing that doesnt feel advanced" and get chewed out because the question was iether really stupid... that somthig of the basics could teach me... or extreamly advanced.
But thats life... i progrssing through little wierd projects like you said to do... ask kilowatt if you dont believe me. and im just taking the things that i learn by doing that and aply them to a little game.. to further my understanding of them.
Also... i have programmed allot of things... i would list them... but ive got to go
See ya
Thanks for the help "always"
~SilverShalkin
for the help
|
|
|
|
|
simply redeclare your global variable in the header file with the extern keyword.
example:
You declare your variable in the cpp file, outside of a function like this:
// Declare this as a global variable in the cpp file.
Counters goblin = {...};
Then inside of your header file you declare the variable like this:
// You do not need to initialize this declaration of the variable, that is already
// taken care of in the cpp file.
extern Counters goblin;
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Can someone show me how to use this? No matter what I do it always returns 50 - "The request is not supported." This is on VC6 and Win2k sp2.
Thanks, Lac
|
|
|
|
|
Hi all.
I have a very large program the uses OpenGl . My problem is that when it is minimised it chews up a large amount of memory. About 1 Gig in 15 secs.
Is there anyway I can use the debugger to find out where this memory is being allocated rather than trace through thousands of lines of code????
Thanks
Coremn
|
|
|
|
|
there r many ways to it. u can use tools like purify/quantify to get it. simplest is, if u r using C++ and allocating memory using new, then overload the new operator and before and after assigning memory, puts some entris in the log file so that u will know where and what u r doing. u can write the overloaded operator in such a way that this overloads only during debug time.
if u r using malloc, bit tough, have ur own memory allocation funtion and call this function, and inside this function call malloc.
|
|
|
|
|
Hey,
I just saw a CHString class. It's a non-MFC class, too!
When did the PSDK start giving us utility classes? I am very much puzzled. It's not part of MFC too
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
|
Mike
It seems it's part of something called Microsoft WMI
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Nish [BusterBoy] wrote:
just saw a CHString class. It's a non-MFC class, too!
When did the PSDK start giving us utility classes? I am very much puzzled. It's not part of MFC too
It is not really a "General" utility class, it is part of the WMI (MS's version of WBEM) SDK. It is basically just a copy of CString .
Peace!
-=- James.
(Try Check Favorites Sometime!)
|
|
|
|
|
James R. Twine wrote:
It is not really a "General" utility class, it is part of the WMI (MS's version of WBEM) SDK. It is basically just a copy of CString
Thanks James.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Was it dumped? Now seems as if we hava a CStringT which is a templated class!
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Yes, it is now gone. However, you will rarely even notice as you can still define things as CString and the CStringT will automatically be used. You can see this if you construct a CString and step into its construction. You'll find that you're in the CStringT constructor
Cheers,
Tom Archer
Author, Inside C#
Author, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
Thanks Tom.
So I guess old code won't break as I thought it will.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
There's a couple of situations where you will have to change your code. However, you'll get compile-time errors and they're easy enough to figure out.
Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
Tom Archer wrote:
There's a couple of situations where you will have to change your code. However, you'll get compile-time errors and they're easy enough to figure out.
Yeah, I expect it to be that way. I mean they wouldn't be able to maintain a 100% compatibility thing if they wanted to also really improve things.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
|
theres VC++ 7.0 now?
that tells you how behind i am
~SilverShalkin
|
|
|
|
|
You've not heard of Visual Studio .NET, or you just don't know what it is ?
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've not heard of Visual Studio .NET, or you just don't know what it is ?
It's amazing that despite all the marketing MS did, that he never heard of .NET
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
The good thing about having the CStringT template class, is that you can now use both the char and wchar_t type CStrings in your program. Previously the compiler would choose one or the other versions based on your __UNICODE definition.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|