Am I wrong, or from 700 posts I had like, not even last week, i did nomore than 100 posts? I have 818 posts as I write this, Is it me that writes this much or?
#include <iostream>
int PutHowManyPostsIMade(int NumberOfPosts);
int PutHowManyPostsIMade(int NumberOfPosts)
{
if(NumberOfPosts==0)
{
return(0);
}
std::cout<<"The number of posts you made that we have not counted are: "<<NumberOfPosts<<std::endl;
std::cin.ignore();
std::cout<<"Moving on!"<<std::endl;
std::cin.ignore();
PutHowManyPostsIMade(NumberOfPosts-1);
}
main()
{
int NumberOfPosts;
std::cout<<"How many posts have you made?"<<std::endl;
std::cin>>NumberOfPosts;
PutHowManyPostsIMade(NumberOfPosts);
std::cin.ignore();
}
I never really understood recursion hamsterman, but is this an example of what it is?