![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Apr 2008
Posts: 10
Rep Power: 0
![]() |
Re: Got stuck while making a program,help would be appreciated
Here's a more pointer-based approach:
c++ Syntax (Toggle Plain Text)
Or, if you prefer to use strings: c++ Syntax (Toggle Plain Text)
I don't know if you've looked into them already, but if you're truly interested in learning C/C++, you'd have to learn about pointers sooner or later (also, your code tends to get shorter if you use them properly). EDIT: I figured I should probably show you a version without pointers for comparison c++ Syntax (Toggle Plain Text)
Last edited by misho; Apr 17th, 2008 at 12:38 AM. Reason: clarification |
|
|
|
|
|
#12 |
|
Newbie
Join Date: Feb 2008
Posts: 15
Rep Power: 0
![]() |
Re: Got stuck while making a program,help would be appreciated
Thanks,just in time i started working with pointers
![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help. I got a problem in making Java games .. | bratsercom | Java | 11 | Oct 1st, 2007 2:31 PM |
| C++ Getting stuck within a loop. | n3o_X | C++ | 5 | Aug 29th, 2007 2:03 PM |
| Tutorials for making a P2P program? | Palladio | C++ | 3 | Nov 26th, 2005 3:51 AM |
| Multiple http-requests are stuck | MereMortal | C++ | 0 | May 4th, 2005 3:08 AM |
| Making a Note Adder/ Editor/ Deleter/ Viewer thingy | brokenhope | C++ | 19 | Apr 29th, 2005 1:30 AM |