The Geek Forum

  • May 16, 2024, 07:26:58 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Due to the prolific nature of these forums, poster aggression is advised.

*

Recent Forum Posts

Shout Box

Members
  • Total Members: 4962
  • Latest: hvWeils
Stats
  • Total Posts: 129633
  • Total Topics: 7189
  • Online Today: 168
  • Online Ever: 1013
  • (January 12, 2023, 01:18:11 AM)

Author Topic: c++ help  (Read 2025 times)

Netrack

  • Jail Bait
  • *
  • Coolio Points: +0/-0
  • Offline Offline
  • Posts: 84
    • View Profile
c++ help
« on: January 20, 2003, 09:30:56 PM »

ok i have a program at schoo and the script is somthing like this

if (y == x)
{
        Cout << "That is correct" << endl;
}




my questions is after it says that is correct, how do i terminate the program?
Logged

Banshee

  • Geek
  • ****
  • Coolio Points: +106/-3
  • Offline Offline
  • Gender: Male
  • Posts: 967
  • Baby-Eater
    • View Profile
    • A Shadow Priest
c++ help
« Reply #1 on: January 21, 2003, 08:35:34 AM »

Return 0;

If I remember correctly, the main function must be initialized as an INT function.

How are you having trouble with something so simple?
Logged
"Dear pete, lol. U r dum." - Bobert