Forum: C++ Feb 20th, 2009 |
| Replies: 1 Views: 198 This function is supposed to open a file stream and copy the text into an integer array to be used for a map key. Here is the contents of the file. I am getting the decimal value stored in the array... |
Forum: Game Development Dec 14th, 2008 |
| Replies: 10 Views: 2,278 ahnoldschwarz said he wants to be a game designer, not a game programmer. I would start out by learning the basic concepts of programming, i.e. variables, control statements, and other concepts that... |
Forum: C++ Dec 14th, 2008 |
| Replies: 1 Views: 414 while((board.getgXPos() != board.getXPos()) && (board.getgYPos() != board.getYPos()))
{
system("cls");
board.printBoard();
board.moveBall();
}
I would like this while statement to... |
Forum: Assembly Jul 24th, 2008 |
| Replies: 3 Views: 659 My fogMap array was printing fine then I integrated the menu into it and now I am getting an error. When I select the option to play the game my mapFog array outputs, but after that the program... |
Forum: Assembly Jul 23rd, 2008 |
| Replies: 3 Views: 659 |
Forum: Assembly Jul 23rd, 2008 |
| Replies: 3 Views: 659 I am trying to print a two-dimensional array to the screen. My algorithm probably isn't correct but I am having trouble even getting the process to work.
on the call I get ----error A2206:... |
Forum: Assembly Jul 19th, 2008 |
| Replies: 0 Views: 921 Why isn't the mReadkey macro outputting the string "Please enter...." ?
TITLE MASM Template (main.asm)
; Program: Chapter 10 Problem 1-5
; Author: Jon Wayman
; Created Date: July... |
Forum: Assembly Jul 13th, 2008 |
| Replies: 1 Views: 1,292 I am stuck on problem 7 that is outlined clearly. I am trying to create a process that changes all of the non-prime number elements of a 65,000 element array to 1. Then I would like to verify that... |
Forum: C++ Jan 17th, 2008 |
| Replies: 2 Views: 712 The problem was that I was trying to use functions in the engine before I created the engine itself. I solved the problem by moving the new Engine( &setup) above the three functions I was testing. |
Forum: C++ Jan 17th, 2008 |
| Replies: 2 Views: 712 I am trying to create a set of functions to allow the user to output a string to a file name EngineLog.txt
It compiles fine, but I get an Unhandled exception at 0x00444c36 in Test.exe: 0xC0000005:... |
Forum: C++ Nov 18th, 2007 |
| Replies: 9 Views: 982 I made some changes to your smallest integer do while loop. I'll leave the rest for you to try to figure out.
#include <iostream>
using namespace std;
const int A_QUANTITY = 10; //... |
Forum: C++ Nov 12th, 2007 |
| Replies: 1 Views: 1,846 Hi, I am trying to get a cat walking back and forth between the screen using a left and right tileset of bitmaps. Also, I am supposed to be able to control two caveman sprites that appear to walk... |
Forum: Game Development Nov 12th, 2007 |
| Replies: 0 Views: 2,800 Hi, I am trying to get a cat walking back and forth between the screen using a left and right tileset of bitmaps. Also, I am supposed to be able to control two caveman sprites that appear to walk... |
Forum: C++ Oct 26th, 2007 |
| Replies: 1 Views: 5,941 I am trying to animate a bitmap in a window. I am able to load the bitmap in random locations multiple times, but I would like to have the previous instance of the bitmap erased each redraw, as I... |
Forum: C++ Jul 17th, 2007 |
| Replies: 2 Views: 5,251 |
Forum: C++ Jul 14th, 2007 |
| Replies: 2 Views: 5,251 The copyList function here is not working working. Anyone have any ideas?
// header file
#ifndef H_orderedLinkedList
#define H_orderedLinkedList
#include <list>
#include... |
Forum: C++ Jun 27th, 2007 |
| Replies: 2 Views: 3,174 The first iterator isn't getting assigned the correct number. instead of size - 1, it is being assigned to -842150451. Then obviously that number is being copied to the new stack.
[code]
void... |
Forum: C++ Jun 26th, 2007 |
| Replies: 2 Views: 3,174 I'm trying to implement a function to copy one instance of a stack into another instance of a stack.
The result should be two identical stacks. It only outputs blank lines. I
Implementation
... |
Forum: C++ Apr 6th, 2007 |
| Replies: 3 Views: 1,575 I am writing a class character for an assignment. The class relates to a role playing game. I am getting an error which I don't understand. This error occurs in the default constructor of the... |
Forum: C++ Apr 1st, 2007 |
| Replies: 0 Views: 1,840 Can anyone explain why I am not getting any output from this code
int _tmain()
{
String *sym[] = {S"BA", S"CA", S"MS"};
int shares __gc[] = {25, 100, 30},
price... |
Forum: C++ Mar 11th, 2007 |
| Replies: 11 Views: 2,586 yeah but if the strings dont compare then the found = true; statement isn't executed and found should be false still |
Forum: C++ Mar 11th, 2007 |
| Replies: 11 Views: 2,586 How do I search through an array of objects to see if a player name is in the array of objects? The code I have in main I know is incorrect cause I get "Player is in database!" whether or not the... |
Forum: C++ Mar 11th, 2007 |
| Replies: 11 Views: 2,586 Well I would be searching for two different strings |
Forum: C++ Mar 11th, 2007 |
| Replies: 11 Views: 2,586 IF I have seven objects of playerType player, player1, player2, player3...etc and I want to search to see if there is a certain player in these objects, how would I do that. I know my code isnt... |
Forum: C Mar 10th, 2007 |
| Replies: 7 Views: 1,424 So im new to vectors and I'm trying to create an addTeam function, The ultimate outcome should be an object with a division name, 5 teams in a division and 5 players on each team. Here is what I have... |
Forum: C Mar 9th, 2007 |
| Replies: 7 Views: 1,424 So if I were to only write one team class and used a menu that the user chose to (C)reate a team. would I use a local static variable to create a team object within the switch where a new object... |
Forum: C Mar 9th, 2007 |
| Replies: 7 Views: 1,424 Wouldn't it be better to simply write one team class and just instantiate 5 teams from that one class? What would be the benifit to the 5 different team classes? |
Forum: C Mar 8th, 2007 |
| Replies: 7 Views: 1,424 I am writing a program which has these require ments
1.Program must be command-line based and interactive, allowing the user to control its operation by entering commands.
2. ability to accept new... |
Forum: C Mar 8th, 2007 |
| Replies: 2 Views: 3,070 Can anyone point out why I am getting these errors two errors.
#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std; |
Forum: C Mar 7th, 2007 |
| Replies: 2 Views: 940 I am coding a class project where I will have a basketball league. The league will include 3 divisions and each division will have 5 teams. Each team will have a number of players and one coach. I... |
Forum: C Mar 4th, 2007 |
| Replies: 14 Views: 4,411 Well I used the jump function that you wrote and I tried to add the loop that prints the top half of the diamond where you have the going up code, then I put the code for the bottom half where you... |
Forum: C Mar 4th, 2007 |
| Replies: 14 Views: 4,411 Well that brings a whole new light to the subject. I didn't understand that the function stepped back out. I've been messing around with my code and I can't figure out where to put the loop to print... |
Forum: C Mar 4th, 2007 |
| Replies: 14 Views: 4,411 I don't understand how that works. The Jump (n + 1) recursively calls Jump up to n =8 then why does going down keep getting called? there is no recursive call there |
Forum: C Mar 3rd, 2007 |
| Replies: 14 Views: 4,411 I made a mistake here, I used a static int x in the topDiamond function but this doesn't work obviously. How do use a variable in a recursive function that is only static within the function? |
Forum: C Mar 3rd, 2007 |
| Replies: 14 Views: 4,411 So here is what I have so far. This Recursive function prints the top half of the diamond. For the bottom half should I create another recursive function to print the bottom half of the diamond and... |
Forum: C++ Mar 1st, 2007 |
| Replies: 12 Views: 9,647 I believe you have 3 mistakes here in this line |
Forum: C Mar 1st, 2007 |
| Replies: 14 Views: 4,411 So I was going to write a function to print "* " one astrick and a space and then depending on the parameter of the recursive function, which is an int to identify the number of astricks in the... |
Forum: C Feb 28th, 2007 |
| Replies: 14 Views: 4,411 I was given an assignment to write a recursive function to print a diamond comprised of astrisks (less the dashes) such as:
---*
--* *
-* * *
* * * *
-* * *
--* *
---* |
Forum: Posting Games Feb 23rd, 2007 |
| Replies: 2,356 Views: 219,125 You get cheese.
I put in a Qur'an |
Forum: C++ Feb 23rd, 2007 |
| Replies: 3 Views: 1,078 Hey thanks that was the problem. Now my inherited print() function works just fine. The text I am using defines constructors the way I have coded it so I think I will just stick with that way for... |