Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~3K People Reached
About Me

I am not a crook.

Favorite Forums
Favorite Tags
c++ x 53
Member Avatar for QuantNeeds

Hello , My program works fine but I still have one error that appears and I would like to fix it. It is complaining about [code] srand( time(0) ); [/code] with the following error: .cpp(25) : warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data …

Member Avatar for mrnutty
0
757
Member Avatar for Ellisande

As part of a project I'm working on, I need to develop a program that can take in a sentence and convert it somehow (I'm choosing to convert into Pig Latin). At first I thought this was going to be a piece of cake, until I realized that after [code]#include …

Member Avatar for Ellisande
0
116
Member Avatar for Ellisande

So for my project I'm working on, we have to simulate a game of Sorry. There are 1-4 players who are each represented by a color. Player 1 is always BLUE, 2 is YELLOW, 3 is GREEN and the 4th player is RED. Each color has it's own unique start/home …

Member Avatar for ST865
0
110
Member Avatar for alleycot

write a program to create a customer's bill for Ms.B's Desk-Shop. ms. B sell only three items: grater-cake, icy-mints and corn-sham, which she persoally delivers to ezch customer upon accepting their phone order. The unit prices are $50, $10 and $30 respectively, with delivery charge of 10% on the total …

Member Avatar for Ancient Dragon
1
262
Member Avatar for Ellisande

To pass an ifstream type as an argument for a function? [code]bool initGame(Game &game, int argc, char *argv[]){ ifstream board(argv[1]); // <------------------- This part ifstream deck(argv[2]); int numPlayers= atoi(argv[3]); int numRounds= atoi(argv[4]); if (board.fail() || deck.fail() || numPlayers==0 || MAXPLAYERS < numPlayers || numRounds < 1 || numRounds > 1000 …

Member Avatar for Ellisande
0
186
Member Avatar for Ellisande

While working on my CS project, I coded the following line: [code] if(...*stuff* || *morestuff* || *evenMOREstuff* || (strcmp(argv[5], "yes") && strcmp(argv[5], "no"){ cout << "Improper arguments." exit(1); } else{ do more stuff} [/code] Where argv[5] is a program argument supplied by the user. Either a yes or a no …

Member Avatar for Narue
0
94
Member Avatar for Ellisande

How do I write it so if I have ifstream file("file.txt") that has rows of characters like 60 REGULAR NONE GREEN BEGIN REGULAR NONE REGULAR NONE GREEN END that I can read one line at a time and do whatever I need with it.

Member Avatar for VernonDozier
0
89
Member Avatar for SteveDB

Well, apparently, I jumped the gun a little. My code for the program I wrote still doesn't work. It compiles fine and throws no errors, but when I run it, only my main menu list runs-- over and over, regardless of my input, and the esc key no longer works. …

Member Avatar for SteveDB
0
116
Member Avatar for Ellisande

So... here I am again. Items are a pretty important part of RPGs, so I'm probably going to have to code them in at some point. My basic idea is this: I'll start with an abstract class called "Item". From there, it'll be broken down into several subclasses, including "Equipment" …

Member Avatar for Ellisande
0
276
Member Avatar for WillMcc

I'm just basically reading a book and messing around with the scripts they give me so I can understand what they're talking about, and here is the script (essencially word for word) however isn't working. What the program is supposed to do is (for example:) [B]"Enter two integers, and I …

Member Avatar for Alex Edwards
0
180
Member Avatar for WillMcc

As the title says, more or less. I'm just trying to make a program basically (Variable) + (Variable) = (Total) Here is the script: // Variable + Variable = Total.cpp : main project file. #include "stdafx.h" using namespace System; void main() { float num1; float num2; float total; cout<<"enter a …

Member Avatar for WillMcc
0
131
Member Avatar for Ellisande

Back with another question concerning my RPG. I had the idea to do a multi-dimensional array to represent a map, with each element in the array being it's own square, Depending on where you are, you can move in any of the 4 directions, unless you are on an edge. …

Member Avatar for Ellisande
0
233
Member Avatar for Black Magic

Hey, my dad was checking the "lotto" results so that inspired me to make a little program of my own, i accomplished that just got a problem.. [CODE=C++]#include <iostream> using namespace std; int main() { srand(time(NULL)); unsigned int lotteryBall; for(int i = 0; i <=7; ++i) { lotteryBall = rand() …

Member Avatar for VernonDozier
0
169
Member Avatar for Ellisande

I'm having this weird issue with a text based RPG I'm trying to create. I'm fairly new to C++, so I thought having a project that I can work on and expand as I learn more would be a good way to put what I have been reading about into …

Member Avatar for Ellisande
0
113