![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
C++ Function Trouble(I'm having trouble with my program).C++,CPP
I'm having trouble tripleing my out put. The program works, but I'm having trouble figuring out how to triple the out put. I do have a function listed in my program as void triple(int & number_used), but it doesn't seem to effect the program at all. I need some help with this function. So far my out put looks like this. Enter up to 10 nonnegative numbers. Mark the end of list with neg number 1 2 3 4 5 Array Values ...... 1 2 3 4 5 Press any key to continue . . . I need help or guidence with getting the out put to triple its out put as in... Enter up to 10 nonnegative numbers. Mark the end of list with neg number 1 2 3 4 5 Array Values ...... 3 6 9 12 15 Press any key to continue . . . Here is my c++ code in cpp format. C++,CPP CPP / C++ / C Code:
//C++, CPP End of code Last edited by admin II : 25-Nov-2007 at 08:44.
Reason: Please surround your C++ code with [cpp] your code [/cpp]
|
|
#2
|
|||
|
|||
Re: C++ Function Trouble(I'm having trouble with my program).I could not find anywhere in your code where you actually call the function triple(). Call it like this:
CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: C++ Function Trouble(I'm having trouble with my program).Your problem is that you did not call the triple function in your code like the example here:
CPP / C++ / C Code:
|
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| return string from a function | Howard_L | C Programming Language | 4 | 18-Aug-2007 00:56 |
| floating point decimal to ascii conversion | crazypal | C Programming Language | 5 | 18-Apr-2007 05:59 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 14:12 |
| Revising Script style ?????? | pepee | MySQL / PHP Forum | 4 | 14-Apr-2004 05:59 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The