Jump to content

SoulHunter

Regular User
  • Posts

    18
  • Joined

  • Last visited

Contact Methods

  • Steam
    JALARSEN5557
  • Skype
    james.larsen8
  • Occupation
    Software Engineer

Profile Information

  • Server
    None
  • Gender
    Male
  • Interests
    Baseball, fishing, FPS
  • Location
    Denton,TX

SoulHunter's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Happy Birthday SoulHunter!

  2. Hopefully I will help clean it up. Duckie changed my permissions yesterday afternoon so I can do some admin. After I got the change and when people noticed the problems cleared up while I was playing. I still play every day.
  3. Welcome to the Forums. Good luck.
  4. Well here is my first attempt at a signature. I know it's not the greatest, but I was happy with the result, especially since I had no idea what I was doing. If anyone wants to make me a better one, then I would take it.
  5. That is a priceless way to treat a camper!!
  6. Hi everyone. You can find me playing BO Nuketown every day. Hope to see you there.

  7. Sorry this answer is so late compared to the question, but I just saw the question. You include <iostream> in the program to include the classes for input output stream. This provides you with the ability to call cin and cout. cin is console input and allows the program to get keyboard input. cout displays the text to the screen. In basic C you included stdio.h and to write to the screen was done with a printf () command. You can modify this program to keep asking for the number until the user guess the proper number, and provide an exit as follows: --------------------------------------------------------- #include <iostream> using namespace std; int main() { int x, found = 0; while (!found) // we will loop until found is set to true { cout << "Guess what number I am thinking of between 1 and 10: Enter 0 to exit"; cin >> x; cin.ignore(); if (x < 1 || x > 10) cout << "That is an invalid entry !!"; else if (x == 0) { cout << "Exiting"; found = 1; } else if (x == 7) cout << "Very good you must be psychic.\n"; else cout << "Sorry you guessed wrong.\n"; } } ------------------------------------------------------------------------ By the way I have been a software engineer for 30 years and have been coding in C and C++ for 27 years
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.