Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K

20 Posted Topics

Member Avatar for brettbed

I think your main problem is you are not making an option to where neither a wining move or a blocking move is found anywhere. I think you need to check each one instead of checking randomly. If no good moves are found then pick a random spot to put …

Member Avatar for brettbed
0
178
Member Avatar for sjn21682

could you provide some code so I can see what is happening? Most likely you are just putting it in the wrong spot but I need to see where you put it.

Member Avatar for jonsca
0
221
Member Avatar for Member #738564

I don't think any one gets what you are asking, could you please restate your question? What I get from it is you are trying to find a pair of two letters inside an char array? Or maybe how many times a pair of two letters occurs?

Member Avatar for kplcjl
0
1K
Member Avatar for coding101

to check to see if the user presses enter. You will need to create an integer value to hold how many times it was pressed and set it to zero. If enter is pressed add one to the integer, else set it to zero. If the integer equals 2 move …

Member Avatar for WaltP
0
232
Member Avatar for skiabox

First things first is _MyType a string? because you are comparing it to a string. And second is ThreadSafeObjectProvider a public class, if so did you declare all the references you need? Thats about all I can do with what you gave me. I have never converted a source file …

Member Avatar for kvprajapati
0
486
Member Avatar for dondajr
Re: XNA

[QUOTE=dondajr;1173065]So.. you are very wrong man.. because is for real for my friend. But unfortunatelly I don't have a way to prove that. And if you belive or not, I don't care. If was for me, I would tell here was for me and would not create a fake friend …

Member Avatar for noey699
0
81
Member Avatar for yuriythebest

you could always just manually port it to visual studio. You know open each source file inside the program till all are in there, same with the header files. I am not sure what you have in data though.

Member Avatar for noey699
0
87
Member Avatar for noey699

I have been searching around the internet for a few questions I have on the List<T> class with no success. 1. how do you edit the last item in your list 2. how do you edit a specific items value, every time i do it says you cannot edit a …

Member Avatar for noey699
0
98
Member Avatar for noey699

if I wanted to do for example this [CODE]class MyClass{ float x,y; void SomeFunction() }; void MyClass::SomeFunction(){ MyClass A = this;//???? } [/CODE] How would I do that? I have virtually no experience with pointers so please help me out. I basically want to make the new class I am …

Member Avatar for noey699
0
104
Member Avatar for noey699

I have been trying to make a vector class to handle particles in a particle system I am making. The problem I have is when I try to change the dir it does not do what it is supposed to. If I keep pressing up it will just bounce back …

Member Avatar for noey699
0
139
Member Avatar for noey699

I am designing a artificial life simulator atm and it would be very useful if I could pass any statement as an argument. For Example. [CODE]LoopStatement(X += 2,50)//loop statement 50 times //or LoopStatement(X += 2 * Speed,75)//loop statement 75 times[/CODE] I know the for loop has something like that. Also …

Member Avatar for timtaylor
0
98
Member Avatar for noey699

Every thing works perfectly only it will not check for a full house. Ive tried to figure out what the problem was by rewriting pair checking and three of a kind checking but the same result always. The function simply returns an integer corresponding to the hand stength given a …

Member Avatar for noey699
0
157
Member Avatar for noey699

Everything compiles fine but it does not identify a straight. It will find straight flush though. A hand consists of 5 objects of the class CARDS which has 3 int variables(Value, Suit, Position). When I send a straight through it it goes all the way through to else and returns …

Member Avatar for noey699
0
164
Member Avatar for noey699

I am trying to create a timer that calls a function when the timer ends this is the timer class [code] class CreateTimer{ float OverallLapsed; float EndOfTimer; bool Running; public: CreateTimer::CreateTimer(float); void StartTimer(); void StopTimer(); void Lapsed(float); void SetEndOfTimer(float); bool CheckTimer(); void ResetOverallLapsed(); float GetOverallLapsed(); }; CreateTimer::CreateTimer(float EndTime){ EndOfTimer = …

Member Avatar for noey699
0
100
Member Avatar for noey699

right now I am using slope calculations to determine the direction a selected unit needs to go basically the equation is (x2 - x1) / (x2 - x1) + (y2 - y1)to calculate the ratio of change in x to the total change in position. (y2 - y1) / (x2 …

Member Avatar for mrnutty
0
86
Member Avatar for noey699

I am learning how to program through the windows.h library and was following a tutorial. After I copied the code to just create a window I got a lot of errors here is the code [code=c] #include <windows.h> #define WNDCLASSNAME "wndclass" //the needed global variables using namespace std; HWND handleWin; …

Member Avatar for sfuo
0
272
Member Avatar for crystality

[QUOTE=crystality;1028094]Hi! I'm getting this error when compiling: $ g++ index.cpp index.cpp:85: error: 'friend' used outside of class index.cpp: In function 'std::ostream& operator<<(std::ostream&, const GrabStuff&)': index.cpp:88: error: 'myLineNumbers' was not declared in this scope Links to included files: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/mystring.h"]mystring.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/string.cpp"]string.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.h"]SplayTree.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.h"]QueueAr.h[/URL] And for fun: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.cpp"]SplayTree.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.cpp"]QueueAr.cpp[/URL] [CODE]#include <iostream> #include <fstream> …

Member Avatar for crystality
1
750
Member Avatar for noey699

I cannot figure out what is wrong with this collision detection code. ballx1 and bally1 is the current position for the ball ballx2 and bally2 is the position of the ball one step before paddlex1 and paddley1 is the current position of the paddle diry is the direction of the …

Member Avatar for mrnutty
0
87
Member Avatar for noey699

First of all I would like to point out that all my values are correct in boxes[5][4] which contains the two x and y values needed for each box. boxes[0][0] and boxes[0][1] are the x and y value for the top left of the rectangle. boxes[0][2] and boxes[0][3] are the …

Member Avatar for noey699
0
145
Member Avatar for noey699

this should b realitivly easy to answer but i need to know how to ask a use for an address to a program (example C:\Program Files\....) then have C++ open it up. all i really need to know is the code required to open the program (the programs intended to …

Member Avatar for Salem
0
181

The End.