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

Started by
20 comments, last by Drevay 21 years, 1 month ago
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-)(-
_________________Politics is the ability to foretell what is going to happen tomorrow, next week, next month and next year. And to have the ability afterwards to explain why it didn't happen. -- Winston ChurchillGDNet-0.2 - rate users the easy way with this nifty Firefox extension. Updated with new features.
Advertisement
How many tries is C++ supposed to get?
_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.
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-)(-
_________________Politics is the ability to foretell what is going to happen tomorrow, next week, next month and next year. And to have the ability afterwards to explain why it didn't happen. -- Winston ChurchillGDNet-0.2 - rate users the easy way with this nifty Firefox extension. Updated with new features.
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!!
quote:Original post by Drevay
... but I''m really liking it now

Really? Why?
_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.
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?
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, &#106avascript(Donot underestimate this lil beauty), C, C++ Builder.<br><br>im gonna learn python and perl .. somday <img src="smile.gif" width=15 height=15 align=middle><br><br><a href="http://homepages.paradise.net.nz/danu/">http://homepages.paradise.net.nz/danu/</a> <br><br><i>-- a dancing person appears insane to those who cannot hear the music </i>
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
I started with C++. Still luvin' it.

.lick


[edited by - Pipo DeClown on March 16, 2003 4:02:16 AM]
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...
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.
-Richard

This topic is closed to new replies.

Advertisement