Search:

Type: Posts; User: BongoBob

Search: Search took 0.00 seconds.

  1. How do I display an error message when a user inputs nothing

    I have a quick question. I'm making a little craps game, and I have an annoying problem. Whenever a user is asked for input, and inputs nothing, the cursor goes from the input area to the next line....
  2. Thanks you guys. After a little bit of...

    Thanks you guys. After a little bit of experimenting with it, I was able to get it to do what I wanted.

    Now what do I need to switch if I want it to only read chars and not integers?

    EDIT:...
  3. Ok, thanks, I'll try it out and see if it works....

    Ok, thanks, I'll try it out and see if it works.

    Also, you wouldn't happen to have a link for how to implement the enter without typing anything on Windows? If not just let me know.

    Thanks a...
  4. Alright, here's a portion of the code I modified...

    Alright, here's a portion of the code I modified to run on it's own.

    #include <iostream>
    #include <windows.h>
    #include "ShortColors.h"

    using namespace std;

    int main()
    {
  5. Help on restricting input to a numbers only (or text only)

    Hello everyone. I am a beginner at programming in C++, and I just recently finished (to an extent) one of my first real large scale programs, a craps game. Now while playing the near finished...
  6. Replies
    3
    Views
    866

    Thanks you guys :) EDIT: Nevermind, I should...

    Thanks you guys :)

    EDIT: Nevermind, I should have looked in the tutorials for strings in the first place.

    Thanks for all your help :)
  7. Replies
    3
    Views
    866

    Question about variables

    Hello. I am new to C++, but am really enjoying programming in it, and am loving the site's tutorials. But I have a question about variables. I know that char can hold the ascii code of a letter, but...
Results 1 to 7 of 7