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....
Type: Posts; User: BongoBob
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....
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:...
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...
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()
{
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...
Thanks you guys :)
EDIT: Nevermind, I should have looked in the tutorials for strings in the first place.
Thanks for all your help :)
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...