0

I need some help here..


I need an example to do that : ( a background task )


#includes blablalbalbla

void?? ExecuteTask ()
{
while(1)
{
cout << "first " << endl;
}
}

int main ()
{
ExecuteTask( );

while( 1 )
{
cout << "lol" << endl;
}
}

I want to be executed the loop from ExecuteTask and the loop from main at same time...

if i make in main 2 while ( 1 ) the 2nd isnt executed.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by zekstein
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.