Void Function Error

I have written a function "totalamount numbers" to print out numbers from 1 to whatever the user defines to be. In print series function, the objective is to print out all the numbers from 1-userdesired. I'm aware they're like the same functions; however, when I call it in the main program. It is not being outputted on the screen.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  void totalamountnumbers (int total)
{
	int counter=1;
	while (counter<=total)
	{
		cout<<counter<< " ";
		counter++;
	
	}
	return;
void PrintSeries_1()
{
	//I have another function which will print out total numbers from 1-1000
	totalamountnumbers(1000);
}



}

int _tmain(int argc, _TCHAR* argv[])
{
PrintSeries_1;
}
On line 23, that's not how you call a function. You might find it helpful to look again at your textbook/tutorials, to make absolutely sure you understand how to do this.
Forgot the parenthesis, thank you :)
You're welcome! Glad you were able to fix it :)
Topic archived. No new replies allowed.