Re: Button not working <<<<<



2012-03-24 14:34, nalin4linux77 linux skrev:
But friend it is not working when i replace exit(0); with cout<<"Hai";
Any idea ?? 


std::cout is buffered. To see the printed text you have to either add an end-of-line
  cout << "Hai" << endl;
or explicitly flush the buffer
  cout << "Hai" << flush;

Kjell


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]