mardi 24 novembre 2020

Is it possible to execute "cout" by order?

is it possible to get the raw output as shown but with specific order(from bottom to top)?


cout<<R"(programming )";sleep(10); cout<<R"(
          newbie at  )";sleep(5); cout<<R"(
            i'm      )"; sleep(1);


output:  programming------>printed third
           newbie at------->printed second
            i'm--------->printed first

note: I don't mean reversing the output

Aucun commentaire:

Enregistrer un commentaire