![]() |
|
#1
|
|||
|
|||
Help on simple arraysHello again, I have encountered another problem, this time, dealing with arrays. I need help in correcting my program that I have posted below to meet the requirements of the assignment.
"Write a program that lets the user enter 10 values into an array. The program should then display all values as in the example format shown below:" You have entered: 3 4 8 3 5 9 0 45 4 3 Here is my program so far: CPP / C++ / C Code:
I want to modify it to 1) allow the user to enter 10 numbers, separated by commas (which I haven't learned how to do), and 2) output all the numbers as in the example format above. Any help you can offer will be truly appreciated. Thanks again! |
|
#2
|
||||
|
||||
|
Quote:
__________________
Age is unimportant -- except in cheese |
|
#3
|
|||
|
|||
New programWalt, how about this? I fixed a few errors but still would like to know how to input numbers separated by commas, like 1,2,3,4,5,6,7,8,9,0, etc... in my array.
CPP / C++ / C Code:
Also, my teacher suggested that I try another program for fun. It was one right from the book that deals with arrays. It asks "Write a program that lets the user enter 10 values into an array. The program should then display those values in ascending order." I'll post it when I (hopefully) get it done! |
|
#4
|
||||
|
||||
|
Quote:
I'd recommend for now not worrying about it. You'll get into that kind of stuff soon enough. __________________
Age is unimportant -- except in cheese |
|
#5
|
|||
|
|||
|
Quote:
I see... Well, as long as my program meets the requirements of the assignment, it should be perfectly fine. I'll take your advice and wait until I learn about it, before attempting it. Thanks again, Walt! ![]() |
Recent GIDBlog
Halfway done! by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Knight tour (arrays help needed) | dilmv | C++ Forum | 7 | 18-Oct-2004 14:31 |
| problem with arrays | melas | C Programming Language | 5 | 12-Oct-2004 04:18 |
| need help with passing 3 arrays into a function | tommy69 | C Programming Language | 14 | 07-Apr-2004 00:22 |
| Problem multiplying arrays | hellhammer | C Programming Language | 9 | 29-Mar-2004 15:32 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The