Thread: simple little dilemna

  1. #1
    Unregistered
    Guest

    simple little dilemna

    I'm at school right now, and for some wierd reason I cannot subscribe to the bbs members status, but I need some help with C++.

    I'm a Junior in High school, and have taken up an interest in wanting to learn to program. In our current class here at school, we are being taught to use simple programming aspects of Dev-Pascal. So I do have SOME programming intellect to some degree, but I have started to get into C++ at home using the tutorials found on this site. BTW, if it means anything, I am using Microsoft Visual C++ as my compiler.

    I've just started on the C++ programming scene and I've noticed it holds many similarities with Pascal. But the only thing that's been bugging me a little is the fact a program you've written will run through and close right away after it has finished executing.

    One of the seniors at school has told me to fix that by adding another 'cin>>' to the very end of the program to correct this error. In Pascal, we would add a 'readln;' statement to pull this trick off.

    To get to the point, all I really wanted to know was if there was some way I could delay the program from finishing after it would get to the end other than the 'cin>>' command. Thanks.

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple message encryption
    By Vicious in forum C++ Programming
    Replies: 10
    Last Post: 11-07-2004, 11:48 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Simple simple program
    By Ryback in forum C++ Programming
    Replies: 10
    Last Post: 09-09-2004, 05:48 AM
  4. Need help with simple DAQ program
    By canada-paul in forum C++ Programming
    Replies: 12
    Last Post: 03-15-2002, 08:52 AM
  5. Simple Compile Time Problem - HELP!
    By kamikazeecows in forum Windows Programming
    Replies: 2
    Last Post: 12-02-2001, 01:30 PM