4 Replies - 109 Views - Last Post: 24 February 2010 - 10:01 PM

#1 Xing   User is offline

  • D.I.C Addict
  • member icon

Reputation: 19
  • View blog
  • Posts: 725
  • Joined: 22-July 06

Stopping Output Window

Posted 02 December 2006 - 05:19 PM

Description: Output windows remains open until you press enter.
#include <iostream>
#include <limits>

int main() {
   
  // Rest of the code     
  
  //Clean the stream and ask for input
  std::cin.ignore ( std::numeric_limits<std::streamsize>::max(), 'n' );
  std::cin.get();
  }


Is This A Good Question/Topic? 0
  • +

Replies To: Stopping Output Window

#2 Emerald214   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 15-November 08

Re: Stopping Output Window

Posted 03 March 2009 - 08:36 AM

why is it so long? What does it actually do?
Was This Post Helpful? 0
  • +
  • -

#3 amanmeelu286   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 13-July 09

Re: Stopping Output Window

Posted 14 July 2009 - 12:35 AM

total discription of c and c++
Was This Post Helpful? 0
  • +
  • -

#4 jessicalegner   User is offline

  • D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 66
  • Joined: 05-June 09

Re: Stopping Output Window

Posted 24 February 2010 - 03:42 PM

It is like pause but much more efficient...nay?
Was This Post Helpful? 0
  • +
  • -

#5 PlasticineGuy   User is offline

  • mov dword[esp+eax],0
  • member icon

Reputation: 281
  • View blog
  • Posts: 1,436
  • Joined: 03-January 10

Re: Stopping Output Window

Posted 24 February 2010 - 10:01 PM

Not efficient. Safer and not platform-dependant.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1