Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
72% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
~23.8K People Reached
Favorite Tags
Member Avatar for SHWOO

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 left and right as you press the left and right keys. …

Member Avatar for Pavel_11
0
327
Member Avatar for SHWOO

Can anyone point out why I am getting these errors two errors. [CODE] #include <string> #include <iostream> #include <fstream> #include <iomanip> using namespace std; #include "playerType.h" playerType::playerType(string first, string last, int num, string pos) : personType(first, last) { playerNum = num; playerPos = pos; } // end function playerType void …

Member Avatar for saba.gul.1048554
0
261
Member Avatar for OurNation
Member Avatar for SHWOO

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 and I just cannot figure out how to correct …

Member Avatar for WaltP
0
77
Member Avatar for ahnoldschwarz

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 are apparent in just about any language. I would then go on to learn a scripting language such …

Member Avatar for michinobu_zoned
0
447
Member Avatar for SHWOO

while((board.getgXPos() != board.getXPos()) && (board.getgYPos() != board.getYPos())) { system("cls"); board.printBoard(); board.moveBall(); } I would like this while statement to continue repeating until both gxPos equals XPos & gyPos equals YPos. I can't seem to figure out why the statement exits if either both x's are the same or if both …

Member Avatar for Murtan
0
113
Member Avatar for SHWOO

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: missing operator in expression This line add ebx,tmpRowSize * rowIndex I get ------error A2026: constant expected …

Member Avatar for SHWOO
0
172
Member Avatar for SHWOO

Why isn't the mReadkey macro outputting the string "Please enter...." ? [CODE] TITLE MASM Template (main.asm) ; Program: Chapter 10 Problem 1-5 ; Author: Jon Wayman ; Created Date: July 17th,2008 ; Revision date: INCLUDE Irvine32.inc INCLUDE Macros.inc ;------------------------------- mReadkey MACRO ; ; This macro asks user to press any …

0
70
Member Avatar for SHWOO

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 array was marked correctly so that only prime numbers have 0's …

Member Avatar for Salem
0
959
Member Avatar for SHWOO

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: Access violation writing location 0x0000000d. This occurs in the EnableLogging() function. [CODE]//----------------------------------------------------------------------------- // The …

Member Avatar for SHWOO
0
197
Member Avatar for ArrogantLegend

I made some changes to your smallest integer do while loop. I'll leave the rest for you to try to figure out. [code] #include <iostream> using namespace std; const int A_QUANTITY = 10; // Amount of #'s entered for option A const int B_SENTINEL = -99; // Sentinal used to …

Member Avatar for zippie
0
144
Member Avatar for SHWOO

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 left and right as you press the left and right keys. …

0
67
Member Avatar for SHWOO

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 would like it to be a smoother animation instead of thousands …

Member Avatar for Duoas
0
231
Member Avatar for SHWOO

The copyList function here is not working working. Anyone have any ideas? // header file [CODE] #ifndef H_orderedLinkedList #define H_orderedLinkedList #include <list> #include <iostream> using namespace std; struct coordinates { int xValue; //variable to hold x coordinate int yValue; //variable to hold y coordinate }; struct node { coordinates info; …

Member Avatar for Ancient Dragon
0
101
Member Avatar for SHWOO

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 [CODE] #include <cassert> #include <iostream> #include <string> #include "linkedStack.h" using namespace std; void linkedStack::initialize() { destroyStack(); } …

Member Avatar for SHWOO
0
165
Member Avatar for SHWOO

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 implementation file. The dynamic help says that I created an object without creating a pointer …

Member Avatar for vijayan121
0
142
Member Avatar for SHWOO

Can anyone explain why I am not getting any output from this code [code] int _tmain() { String *sym[] = {S"BA", S"CA", S"MS"}; int shares __gc[] = {25, 100, 30}, price __gc[] = {25, 31, 37}; Random *randomCurVal = new Random(); int purVal, curVal; int totalPurVal = 0, totalCurVal = …

0
79
Member Avatar for SHWOO

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 complete and is quite off but if someone could take my blindfold off …

Member Avatar for WaltP
0
174
Member Avatar for SHWOO

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 data 3. ability to search for specific previously entered data 4. ability to save data to a file …

Member Avatar for John A
0
230
Member Avatar for SHWOO

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 must have 5 seperate classes. I already have two classes called person …

Member Avatar for Lazaro Claiborn
0
242
Member Avatar for SHWOO

I was given an assignment to write a recursive function to print a diamond comprised of astrisks (less the dashes) such as: ---* --* * -* * * * * * * -* * * --* * ---* The parameter is the number of astricks in the largest row. I …

Member Avatar for Narue
0
201
Member Avatar for youngone

[quote=youngone;322020] if (month < 0 || month > 12 || day < 0 || day >31 || year > 1900 ||| year < 2099 ) [/quote] I believe you have 3 mistakes here in this line

Member Avatar for WaltP
1
125
Member Avatar for SHWOO

I have implemented inheritance and in the print function for class playertype I have called the print function from personType. When I call the playerType fucntion print() with a playerType object only the playerType variables are printed and not the personType variable firstName and lastName. [code] #ifndef H_personType #define H_personType …

Member Avatar for John A
0
126
Member Avatar for SHWOO

I have overloaded the << & >> operators and I though I could access private data members of the class if I declared the functions friends of the class. I am getting four errors in the two overloaded functions that are trying to access the private members firstName and lastName. …

Member Avatar for iamthwee
0
247
Member Avatar for rhythm

That is the exact same final I have in my C++ programming class at Westwood Online

Member Avatar for John A
0
680
Member Avatar for SHWOO

I cannot figure out why I am getting these two errors error C2504: 'arrayListType' : base class undefined error C2143: syntax error : missing ',' before '<' [code] // Jon Wayman // class that is derived from arrayListType template <class elemType> class unorderedArrayListType: public arrayListType<elemType> { public: void insertAt(int location, …

Member Avatar for Narue
0
140
Member Avatar for SHWOO

The assignment is to write a C++ function using "pointer notation" that will write out the elements of an array of int in reverse order. The problem I'm having is with the sortAscend function and what the parameters should be to accept an array. I'm getting an error cause I'm …

Member Avatar for SHWOO
-1
198
Member Avatar for SHWOO

I am working on a struct. The two requirements are for the user to be able to input an entry and then view it. I have two questions, when entering the data shouldn't I be able to enter spaces when entering the address i.e. 654 smith st and store that …

Member Avatar for disc
0
108
Member Avatar for SHWOO

Can anyone figure out why I get -9.032654e something from my biWeeklySalary function? [code] #ifndef EMPLOYEE_H #define EMPLOYEE_H #include "HireDate.h" #include <string> using std::string; class Employee { public: Employee(); Employee( const string &, const string &, const string &, const HireDate & ); ~Employee(); void setFirstName( const string & ); …

Member Avatar for Salem
1
270
Member Avatar for SHWOO

I have instantiated an object, bob, and have an array with hours for each day bob has worked. When I try to call bob.biWeeklySalary( hours[] ) it doesn't work. I'm not really sure how to use the array here. The compiler just says that hours is an undeclared identifier. Your …

Member Avatar for mostafadotnet
1
138