Type: Posts; User: Ulnarian
Search took 0.02 seconds.
March 19th, 2013, 09:40 AM
I tried that already but I couldnt get it too work :(. Any other ideas?
March 19th, 2013, 08:52 AM
I am programming an old-school dungeon crawler and thought it would be cool to get the pc's internal speaker in on the action. While Ive used the BEEP function to nice effect for generating music,...
August 12th, 2012, 08:15 PM
I'm trying to get my program to read a series of comma delimited values from a file into a vector. However, I am unsure how to actually go about doing this. I've posted my best guess below but it's...
August 5th, 2012, 07:57 PM
Thanks for the help, Nuzzle, your solution worked perfectly.
August 5th, 2012, 01:37 PM
While I once understood the "how" of using code tags, I was unable to remember it (16 years is a long time). And, while I did look for a tag button, I was unable to find it and ultimately decided...
August 5th, 2012, 04:41 AM
Thanks for the help, here's a more simple program I've written just to show the problem I'm running into. I've also listed the error messages that I'm getting from my compiler as comments next to...
August 4th, 2012, 09:03 PM
I would like to write a program that prompts the user to enter a series of client names which the program will then store in an array of structures. I'm thinking something along the lines of:
August 4th, 2012, 08:52 PM
Read from the file to populate the program data structures, do not read keep reading from the file directly. Thanks, I think I got it, I will work with that and see what I can come up with.
August 1st, 2012, 11:37 PM
Im trying to make a program that reads input from a file and outputs it on to the screen. For the sake of example, lets assume that I'm making a weekly planner program. I would like to have the user...
November 29th, 2011, 11:07 PM
Just for fun, I've decided to try to design a card game. However, as I'm pretty new at this, I'm taking baby steps. Anyways, the problem I have right now is how to generate 5 unique,...
August 17th, 2010, 02:28 AM
Thanks everyone. I ended up using Monarch's alternative answer as my vector knowledge is pretty much non-existent.
August 16th, 2010, 12:58 AM
I'm making a "war" style card game. For the sake of explanation, assume that there are only 10 available cards valued 1 through 10. At the start of the game, 5 of the cards will be randomly given...
August 24th, 2009, 12:05 PM
If I want to pause the program until the user hits the ENTER key, what is the best version of cin to use. Also, I'd like to have the input queue cleared afterwards.
Sorry for the...
April 22nd, 2009, 09:04 PM
April 22nd, 2009, 02:15 AM
Say I have the following code:
cin >> cat;
cout << "Yup, " << cat << " is in the dog string";
April 20th, 2009, 01:48 AM
Ouch! That's one sadistic teacher :( Sorry, don't think I could teach you how to do all that stuff in one night.
April 19th, 2009, 09:23 PM
Wow, thanks. I've never heard of sstream before, but I just looked into that and it worked perfectly. Now, if only I had known that before I wrote about 2 hours worth of cases :)
April 19th, 2009, 08:52 PM
Hey, thanks man :)
Yeah, I hear you on the elegance factor. Having to code all the possible combinations is going to take some serious manpower. I suppose smarter people than myself have already...
April 19th, 2009, 07:27 PM
Is there an easy way to have multiple cases execute the same block of code? For example, part of my code asks the user to insert three numbers as shown below.
cin >> x;
April 17th, 2009, 09:08 PM
Awesome, thanks. I'll see what I can do :)
April 16th, 2009, 10:07 PM
So I'm writing a dice game that displays 5 dice on the screen at one time. Part of my code looks like this:
April 13th, 2009, 10:15 PM
Hey all, just for fun I'm designing a game that is similar to Yahtzee. In order to store the values of the players rolls, I'm envisioning an integer array something like:
April 8th, 2009, 09:13 PM
Is there a way to make the following possible with only a character type?
April 7th, 2009, 05:53 PM
Thanks man, that seems to do the trick (and kinda leaves me scratching my head at the same time).
Going one step further, whats the correct way to say the following in C++:
While (a & b & c are...
April 7th, 2009, 01:24 PM
Hey all, so I'm making the obligatory Tic-Tac-Toe game. While it's mostly completed, I've hit a slight snag.
Basically, I've assigned each grid of the board to a character variable. For example,...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!