Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Drevay

Ok, C++ my dear, you get another try :)

This topic is 5575 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Yes, I''m giving C++ another try, because of the amount of information on it, and I just like challenges. Python wasn''t challenging enough for me.... So, I''ve given in another try, and guess what! THIS is THE most complicated thing I can do with C++, (as of yet ).#include <iostream> #include <stdlib.h> using namespace std; int main() { int value = 0; cout << "Beginning of while loop" << endl; while(value < 5) { cout << "The value of value is: " << value << endl; ++value; } cout << "End of while loop." << endl; cout << "\nBeginning of do-while loop." << endl; do { cout << "The value of value is: " << value << endl; }while(value < 5); cout << "End of do-while loop." << endl; cout << "\nBeginning of for loop." << endl; for(value = 0; value < 5; value++) { cout << "The value of value is: " << value << endl; } cout << "End of for loop." << endl; cout <<''\n''; system("PAUSE"); return 0; } Yay n'' stuff Of course that''''s just my opinion, I could be wrong. -)(-Dennis Miller-)(-

Share this post


Link to post
Share on other sites
Advertisement
As many as I wish I suppose, but I''m really liking it now

So, yay.....


.....

Of course that''''s just my opinion, I could be wrong.
-)(-Dennis Miller-)(-

Share this post


Link to post
Share on other sites
quote:
Original post by bishop_pass
How many tries is C++ supposed to get?


Well, it took me three (okay, two and a half, really). What about y''all? Ever try to learn a language (or, for that matter, any skill), completely fail at it, then try some months or years later and find that you really UNDERSTOOD it that time?


But... but that''s what HITLER would say!!

Share this post


Link to post
Share on other sites
It looks like you''ll be able to write a number-guessing game without too much trouble. Do you know the calls for getting pseudorandom numbers?

Share this post


Link to post
Share on other sites
yes i remember when i tried to learn C++ ...

i learnt basic, then gave up on C++ and went back to basic
after learning desing & programming principals, i got to a level where the language didnt matter, all you needed was the idea and how you were gonna implement it ... the langauge i used only played a small part.

as a result, i have mastered C++ and VisualBasic/Script/ASP and can handle very well, Delphi, javascript(Donot underestimate this lil beauty), C, C++ Builder.

im gonna learn python and perl .. somday

http://homepages.paradise.net.nz/danu/

-- a dancing person appears insane to those who cannot hear the music

Share this post


Link to post
Share on other sites
My first attempt, failed. Then I dabbled some in VB and tried again - it went a lot better this time.

I started programming C five years ago or so, soon after I went on to C++. Pretty much everything I know is self-taught - I''ve taken 10 weeks or so of university courses in C++/etc so far. I still don''t know everything about C++ - like virtual inheritance, which is on my to-lookup list. Then again, I''ve been trying to have a life as well - i.e. not programming every hour of the day, or even every week...

And just this month I read a book that taught me tons and tons of new stuff I didn''t even know was possible with C++ - "Modern C++ Design".

Did you know you can make compile-time algoritms in C++? It surely never occured to me...
Generate class-hierchies on the fly with one line of code? It can be done...

Share this post


Link to post
Share on other sites
The very first time I started programming (years ago!) was with some variant of Basic that came with a book.
The second example in the book had an error somewhere in it - and of course, by page 2 I didn''t know enough to find what it was.

Eight or so years later, and I start programming at University. Much easier - I''ve never had a problem with any language since, from Miranda to C++ and Pop-11. Which is good

I sometimes wonder what would have happened had I carried on - I think in the end it would have had a negative influence.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!