|
|
|
|
![]() ![]() |
Jul 24 2007, 11:05 PM
Post
#1
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 75 Joined: 28-April 06 From: New Delhi Member No.: 22,707 |
hello guys i have started this topic to share our little experience with this language and could help the needys out there and also to share programs or projects ...
take care |
|
|
|
Jul 26 2007, 10:40 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 396 Joined: 14-November 04 From: Elysium Member No.: 2,280 |
Ooh! C++ experience... let's see. I started when I was like 12 because I felt bored one day and picked up this book at the library.
Learned the language and played around it for a few months and then dropped it because it couldn't do anything interesting at the time. Few years later, came across OpenGL and the gcc and started using it again. I've been using it for almost everything since - until I came across assembly of course, but that's a different story. |
|
|
|
Jul 27 2007, 01:47 PM
Post
#3
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 31 Joined: 22-July 07 Member No.: 46,856 |
I started learning C++ when I was 13 because I wanted to know more about how computers worked, and I was intrigued by what software really was. After a few VB6 tutorials I felt the whole thing was a bit lame so I tried another language, C++. After that I began a book about making RPGs with DirectX9 and that gave me much more practice with the whole language. By that time I learned other languages as well, which lead me to web design too.
|
|
|
|
Jul 31 2007, 05:52 PM
Post
#4
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 47 Joined: 22-July 07 From: Dhaka, Bangladesh Member No.: 46,859 |
I get in to this language three years back
|
|
|
|
Jul 31 2007, 10:22 PM
Post
#5
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 521 Joined: 9-February 07 Member No.: 38,519 |
Well, I started learning C++ in 7th grade when I saw one of my friends' programs she made at IBM. After seeing her program I became interested in programming and my dad had a C++ book that I took up and read whenever I could. After a year, I borrowed my friends OpenGL book then I got one for christmas so by 8th grade I was programming visual applications. I took programming 9th and 10th grade, but it only taught me a few basic techniques, nothing really too helpful since I had already made the final project before school started. Now I still use C/C++ for my games, I never took a real class so my code isn't pretty/efficient, but I have fun while coding.
|
|
|
|
Dec 10 2007, 08:51 PM
Post
#6
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 239 Joined: 10-December 07 From: India Member No.: 54,553 |
Hi guys i have got c++ problem can u plz help wth the pre and postfix operators
heres an expression a=++x+x++ if x=10 then a=??? plz give the answer and reason if any knows about this i would be thanful to u... This post has been edited by musicmaza: Dec 30 2007, 04:07 PM |
|
|
|
Dec 30 2007, 04:02 AM
Post
#7
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 396 Joined: 14-November 04 From: Elysium Member No.: 2,280 |
QUOTE a=++x+x++,,,,if x=10 then a=??? Wait, what? ,,,,? Could you explain that more clearly?
|
|
|
|
Dec 30 2007, 08:09 AM
Post
#8
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 239 Joined: 10-December 07 From: India Member No.: 54,553 |
oh thats nothing .the expression goes something like this:
a=(++x)+(x++),now here x is initially 10, what I want to ask is the outcome of this expression. It would be also good if you can give me any information about postfix and prefix operations like their precedence and other facts,I really find it difficult to calculate when such expressions are used in a class I don't know but I think that is it true that at someplaces the value of such expression changes due to "change in instance",I have such change in values when they are used in a class. |
|
|
|
Dec 30 2007, 03:39 PM
Post
#9
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 396 Joined: 14-November 04 From: Elysium Member No.: 2,280 |
prefix changes the value of the variable before the expression is calculated,
postfix changes the value of the variable after the expression is calculated. So in the example a=(++x)+(x++) with x=10, first, the value of x is incremented by the ++x. So x = 11. a = 11 + x++. The x++ increments x after the expression, so a = 11 + 11 = 22. x is now 12. Now personally, I wouldn't write code out like that unless I was in a rush, because that just confuses other people who'd read it. This type of devilish code belongs to schools and obfuscation contests. |