gultu
gultu

Reputation: 143

My Rcpp code delays to show printed message

I have a Rcpp code inside of which I have a message to be printed out as:

"The no. of iteration is ---" after each 100 iteration. For this I used the code:

 Rcout << "The number of iteration is : " << t << "\n";

The problem with this code is that it delays to show the message and shows all of it after the program ends. How can I solve this?

Upvotes: 0

Views: 78

Answers (0)

Related Questions