Void Functions

my second function doesn't seem to look correct. May someone check this and correct me? For my second void function, i'm trying to display the results from the first void function.I'm not highly optimistic about this since my second function will have the index reset at 0 and thus will change the outcome of my results.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  
void array_carssold(int cars[],int size)
{
	int index;
	cout<<"\n\n\tTotal Car Sold: ";
	for (index=0;index < size;index++)
	{
		cin>>cars[index];
	
	}
	

}

void outputtotalcarssold ( int cars[], int size)
{
	int index;
	for (index=0; index<size; index++)
	{ 
		cout<<cars[index];
		cout<<endl;

	}
		
		

}
closed account (S6k9GNh0)
Have you tested it?
I have not tested yet :/ since I'm waiting for my other confliction to get figured out. So, while i'm waiting, I decided to check if this formula would be correct or not :)
Topic archived. No new replies allowed.