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
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums

14 Posted Topics

Member Avatar for QuantNeeds

When I did my RNG for my RPG, I had to do [code]void initialSeed(){ srand((unsigned)time(0));}[/code]

Member Avatar for mrnutty
0
840
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
123
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
115
Member Avatar for alleycot

[QUOTE=dougy83;705557]What?? I know a lot of people who will write code for money (myself included). I believe it's fairly standard practice; even a respectable career option.[/QUOTE] That may be true, but in the world of Academics they consider that Academic Dishonesty, which tends to be a big deal.

Member Avatar for Ancient Dragon
1
266
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
193
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
98
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
95
Member Avatar for SteveDB

[code= c++]#include <iostream> using namespace std;// You forgot your include files, as well as your namespace float hipvalley(); float cricketvalley(); float ridgeangle(); int main() { cout << "Copyright 2001, Welcome to the Angle Finder Program." << endl << "This program is designed to take only numeric values." << endl << …

Member Avatar for SteveDB
0
122
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
294
Member Avatar for WillMcc

While we're semi on the topic, could someone please tell me what the difference between if{, else if{ and else{ is?

Member Avatar for Alex Edwards
0
183
Member Avatar for WillMcc
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
258
Member Avatar for Black Magic
Member Avatar for VernonDozier
0
184
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
127

The End.