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.
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.