I got a question can we also use system("pause") when using cin and cout
Printable View
I got a question can we also use system("pause") when using cin and cout
What do you mean?
Like can you use a system pause after doing a cout statement?
Iam just asking is it possible
No, it's absolutely 100% impossible because it would defy the laws of physics and cause a temporal paradox that would destroy the universe if it ever were to happen...
I think he'll need this explained in easier words.
Don't do it. The world will seize to exist.
(time to lock this thread? :P)
Is it guaranteed in this program that "Hello world" is printed (before the console closes)?Code:#include <iostream>
#include <cstdlib>
int main()
{
std::cout << "Hello world\n";
std::system("pause");
}
ಠ_ಠ's entire internet persona freaks me the hell out.
And to the op, I found this for you
How to use System("pause")
While were sort of off topic I'd like to to take the chance to introduce myself.
Thanks. It's good to know your human(joking).
Yes and he was the most polite and curteous man I have ever met. Your human(whatever that means) is a contribution to society.
hmmm... couldn't have been my human
Your a good little boy and you know it.
I'm fairly certain I'm not a boy
= a multi-threaded threadQuote:
It would be nice to have a subforum to put these threads in so we can still have fun
if system pause is possible in cin and cout then what law of physics would it defy
your avatar looks like Pintsize from QC
Like the use of system("PAUSE") with cin, instead of posting the question you should be setting up tests to examine the use and interaction of system("PAUSE") with the laws of physics.
If you find that you get any errors then you should post the error and your code and then someone will attempt to help you. The help is usually proportionate to amount of effort you put in.
However, if you do destroy the multiverse with your hamfisted keyboard mashing I, for one, will be most upset.
In order for the System( ) function to be used as a cin / cout parameter, the function would have to return ostream reference I believe.