question

This is a discussion on question within the C++ Programming forums, part of the General Programming Boards category; I got a question can we also use system("pause") when using cin and cout...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    23

    Question question

    I got a question can we also use system("pause") when using cin and cout

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,807
    What do you mean?

    Like can you use a system pause after doing a cout statement?
    Woop?

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    23
    Iam just asking is it possible

  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,248
    Quote Originally Posted by luke luvevou View Post
    Iam just asking is it possible
    In the 51 minutes between your two posts, you were not able to determine this yourself by experimentation?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #5
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    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 am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    2,490
    Quote Originally Posted by cpjust View Post
    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...
    perhaps not the entire universe... just our small corner of it... certainly wouldn't extend beyond our local cluster of galaxies.

    one way to prevent this might be to reverse the polarity of the neutron flow with your trusty sonic screwdriver.

  7. #7
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by Elkvis View Post
    perhaps not the entire universe... just our small corner of it... certainly wouldn't extend beyond our local cluster of galaxies.

    one way to prevent this might be to reverse the polarity of the neutron flow with your trusty sonic screwdriver.
    Think about the effect on the multiverse though, a disturbance that large is bound to create a transdimensional temporal implosion
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  8. #8
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    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)

  9. #9
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by EVOEx View Post
    The world will seize to exist.
    in order to exist, the world will seize?

    Quote Originally Posted by EVOEX View Post
    (time to lock this thread? :P)
    It would be nice to have a subforum to put these threads in so we can still have fun
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  10. #10
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Code:
    #include <iostream>
    #include <cstdlib>
    
    int main()
    {
        std::cout << "Hello world\n";
        std::system("pause");
    }
    Is it guaranteed in this program that "Hello world" is printed (before the console closes)?
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  11. #11
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    ಠ_ಠ's entire internet persona freaks me the hell out.

    And to the op, I found this for you

    How to use System("pause")
    Here to Deceive, Inveigle, Obfuscate Since 1945

  12. #12
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by indigo0086 View Post
    ಠ_ಠ's entire internet persona freaks me the hell out.
    I lol'd
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  13. #13
    The Registered User Aparavoid's Avatar
    Join Date
    May 2009
    Posts
    74
    While were sort of off topic I'd like to to take the chance to introduce myself.

  14. #14
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by Aparavoid View Post
    While were sort of off topic I'd like to to take the chance to introduce myself.
    Welcome!
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  15. #15
    The Registered User Aparavoid's Avatar
    Join Date
    May 2009
    Posts
    74
    Thanks. It's good to know your human(joking).

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21