Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
About Us Register FAQ Members List Calendar Mark Forums Read

Closed Thread
 
LinkBack Thread Tools Display Modes
Old December 7th, 2002   #1 (permalink)
Random Madness
 
Kaotic Soul's Avatar
 
Join Date: Nov 2002
Location: Pearl,Mississippi,USA
Posts: 494
C++

Learning C++ is difficult but I shall never give up...practice make perfect I always say.
__________________
----------------------------------
| Intel Pentium 4 3.4 GHz | Windows Vista | 1.7 Gig of Ram | Nvidia 8600 GT OC | Sound Blaster Audigy2 ZS - Gamer : Limited Edition | Western Digital 250 Gig HD | Lite-on DVD-RW/CD-RW | HP Pavilion 19" LCD"
--------------------------------
Kaotic Soul is offline  
Old December 7th, 2002   #2 (permalink)
Registered User
 
Join Date: Oct 2002
Location: Manila, Philippines
Posts: 2,966
so your really persistent?
good luck to you anyway.
Sera is offline  
Old December 7th, 2002   #3 (permalink)
NSBQ nut
 
Nezzar's Avatar
 
Join Date: Aug 2001
Location: .de
Posts: 1,208
Err...yeah.
__________________
Bred for its skills in magic
Nezzar is offline  
Old December 7th, 2002   #4 (permalink)
Registered User
 
Vahid's Avatar
 
Join Date: Nov 2002
Location: Somewhere , where your not there
Posts: 233
hard? heh, if you took at least algerbra 1-2 in school, its pretty easy, caue its really just knowing your math
__________________
P4 2.8ghz (HT), Nvidia Geforce FX 5950 256MB(Core 550mhz, memory at 1.05ghz and running cool) , 1024MB DDR PC3200 ram,160gig HDD, DvD 16x & 52x CD-RW, Windows XP Pro Service Pack 2
Vahid is offline  
Old December 7th, 2002   #5 (permalink)
General of Tangerines
 
RZetlin's Avatar
 
Join Date: Jun 2001
Location: Defending the Sea
Posts: 3,885
What kind of problems are you having with? Objects? Pointers? Overloading?
__________________


AMD Athlon 64 3700+ | 2 GB RAM | XFX Nvidia 6800 GS 256 MB XXX Edition | Win XP Pro SP2
RZetlin is offline  
Old December 8th, 2002   #6 (permalink)
what?!
 
cabal's Avatar
 
Join Date: Nov 2002
Location: programmer's hell
Posts: 127
It's really hard when the misfits in the class the year before you fooled around and got 2's on the AP Test which in turn caused the already evil and insane teacher to make the class even harder and more fast-paced. The fact that there are stuck up, ass-kissing geniuses in the class that get the most difficult projects done in one day and are there to make everyone else look bad doesn't help, either. x_x Heh, sorry for the rant. Some stuff in C++ is hard, like recursion. Right now I just wanna get through the class with a B, hehe.
__________________
In order to understand recursion, one must first understand recursion.
cabal is offline  
Old December 8th, 2002   #7 (permalink)
Registered User
 
AtomicFeline's Avatar
 
Join Date: Aug 2001
Location: Maryland USA
Posts: 569
I'm almost against people learning C++ first. The main reason being that when a newbie makes a "hello world" program, they look at you and the face and say, "So what?" It's better to learn something that has a GUI interface. Something easy, but that still has all the math (like Visual Basic). Once you get interested and you feel comfortable programming, then go on to C++. Even though your first C++ programs won't have any GUI or drawings, it makes the learning process more bearable, graphics-wise.
__________________
Feline

Visit my deviantart page:

http://atomicfeline.deviantart.com

1.4 Ghz T-Bird Athlon
PNY Geforce4 TI4400 AGP 128 Meg DDR
512 Megs DDR ram
Ensoniq Audio PCI
32X CD-ROM
Windows XP SP 1
AtomicFeline is offline  
Old December 8th, 2002   #8 (permalink)
Banned
 
Ninjaa's Avatar
 
Join Date: Oct 2001
Location: Soviet Canuckistan
Posts: 0
I learned C++ first, and I really have no problems with it. When I started wanting to learn graphics, I bought a programming book and learned it myself. I'll be doing 3D graphics next semester in school, and then I can show something to the Visual Basic people about graphics.
Ninjaa is offline  
Old December 8th, 2002   #9 (permalink)
General of Tangerines
 
RZetlin's Avatar
 
Join Date: Jun 2001
Location: Defending the Sea
Posts: 3,885
Quote:
Originally posted by cabal
Some stuff in C++ is hard, like recursion. Right now I just wanna get through the class with a B, hehe.
Yes, recursion can be very trickly.

Recursion is usually saved for the last lessons in class.

Is your teacher making you do an assignment with recursion?
__________________


AMD Athlon 64 3700+ | 2 GB RAM | XFX Nvidia 6800 GS 256 MB XXX Edition | Win XP Pro SP2
RZetlin is offline  
Old December 8th, 2002   #10 (permalink)
Banned
 
Ninjaa's Avatar
 
Join Date: Oct 2001
Location: Soviet Canuckistan
Posts: 0
Heh. Recursion was one of the first things we were taught. We needed it for sorting algorithms, and binary trees, which we covered later in the year.
Ninjaa is offline  
Old December 8th, 2002   #11 (permalink)
Emu author
 
ammoQ's Avatar
 
Join Date: Mar 2002
Location: Vienna/Austria/Europe
Posts: 1,168
I don't think recursion by itself is tricky. In fact, some problems can best be solved by recursion - without it, you would have to do a lot of work to get the same result. Unfortunately, most problems best solved with recursion are rather complex by their nature; so while it looks like recursion is difficult, in reality it is used to solve difficult problems. I'll give you an example:
Try to write a parser that calulates terms like "3*(1+2)+((2*2)+1)" (output is 14). (Programming languages with an "eval" function that does the job for you are not permitted ;-) Such stuff is best made with recursion.
__________________
If you think my English is bad, wait till you read my Polish.
ammoQ is offline  
Old December 8th, 2002   #12 (permalink)
.:: PHP King ::.
 
Mohd's Avatar
 
Join Date: Mar 2002
Location: Bahrain
Posts: 580
recursion hehe . . .
All you need in recursion is to practice by solving alot of problem.

>>ammoQ: In fact, some problems can best be solved by recursion - without it, you would have to do a lot of work to get the same result.

yeah like fibonacci series if you make it using iteration (for,while) it will be too long but with recursion only 4 lines

Code:
long fib( long n )
{
if ( n == 0 || n ==1)
   return n;
return fib( n - 1 ) + fib( n - 2 );
}
Mohd is offline  
Old December 8th, 2002   #13 (permalink)
Banned
 
Ninjaa's Avatar
 
Join Date: Oct 2001
Location: Soviet Canuckistan
Posts: 0
Heh. That was our first example of recursion in our class this year.

I wondered what it would look like without recursion, so I programmed it in BASIC on my calculator. It's 13 lines as it stands.
Ninjaa is offline  
Old December 8th, 2002   #14 (permalink)
.:: PHP King ::.
 
Mohd's Avatar
 
Join Date: Mar 2002
Location: Bahrain
Posts: 580
This was my second example Nina the first one was factorial. I remmber I got a question in quiz about recursion:

Show the output (hey not using computer, brain of course)

they gave us a three nested for loop with pointer which point to two d array in recursion after that quiz I got
Mohd is offline  
Old December 8th, 2002   #15 (permalink)
Banned
 
Ninjaa's Avatar
 
Join Date: Oct 2001
Location: Soviet Canuckistan
Posts: 0
Heh. I got a nasty recursive program that I had to trace on my midterm as well. I had 5 minutes to solve it. I figured it out right as the teacher said the time was up. I quickly wrote it down and handed it in. I was one scared mother...
Ninjaa is offline  
Old December 8th, 2002   #16 (permalink)
Emu author
 
ammoQ's Avatar
 
Join Date: Mar 2002
Location: Vienna/Austria/Europe
Posts: 1,168
It might be of interest for some of you that in computer science (e.g. theory of complexity), everything is described as a recursion - there is no such concept as a loop.
__________________
If you think my English is bad, wait till you read my Polish.
ammoQ is offline  
Old December 8th, 2002   #17 (permalink)
what?!
 
cabal's Avatar
 
Join Date: Nov 2002
Location: programmer's hell
Posts: 127
I'm glad my school requires VB before C++. In VB we learned all of the concepts without going too much in depth (ex. Binary Trees only as opposed to Binary Trees and Expression Trees, less sorting and searching algorithms). This year we need practically an entire semester for the AP Case Study, so we had to quickly learn how everything we knew last year was implemented in C++. If we went in there the first day and didn't know anything about arrays or variables we simply wouldn't be able to prepare for the AP Exam and its case study. Plus, VB doesn't have pointers.

Heh, recursion hurts my brain. x_x We also had to program Fibinacci and factorials recursively.. not to mention that evil, pointless peg game.. -_-. Hehe everytime we have a recursion assignment someone yells "FIBINACHI!!!" real loud Right now my teacher is making us do a Binary Tree class. In fact it's due tomorrow and I only have about ten percent done. :x

That theory of complexity sounds terrible. I dunno, maybe later in college I'll like recursion, but right now it's too wacky.
__________________
In order to understand recursion, one must first understand recursion.
cabal is offline  
Old December 13th, 2002   #18 (permalink)
THE CLASSIC NEWB
 
Join Date: May 2002
Location: KY
Posts: 359
Um im new and need to learn fast i am in a group called STLP and we have a presnitation and have to show sum thing new like c++ and all i know is } and that is it plz help!!!!
Drake Dagow is offline  
Old December 13th, 2002   #19 (permalink)
Banned
 
Ninjaa's Avatar
 
Join Date: Oct 2001
Location: Soviet Canuckistan
Posts: 0
I suggest you buy a book and start learning then.
Ninjaa is offline  
Old December 13th, 2002   #20 (permalink)
THE CLASSIC NEWB
 
Join Date: May 2002
Location: KY
Posts: 359
well i did the 15 hour crash course 1 and it said sumthing abou c++ soft war what is sumthing awsome but simple


sry but im in a hurry
Drake Dagow is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 22:40.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5