how to use a loop in Functions

can Anybody guide me by writing any program, that how to use loops inside a functions...

1
2
3
4
5
6
7
8
#include <iostream>
int main()
{
    while( true )
    {
        std::cout << http://lmgtfy.com/?q=loops+in+c%2B%2B << std::endl;
    }
}
hey Giblit,, I really appreciate your support and really thankful for that...
With all due respect if you kindly write any complete program so then i will get better idea from that please..... write a program having 2 or 3 different functions in it and then use loop for those 3 different functions.. please
Topic archived. No new replies allowed.