Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
~4K People Reached
Favorite Tags

17 Posted Topics

Member Avatar for Colezy

Hi all, I am creating an application that includes and calls upon someone else's code. I need to slightly change the functionality of a constructor in their code but the class I need to change is buried away very deep. I considered inheriting from the class so I could change …

Member Avatar for Colezy
0
116
Member Avatar for kamohelo

A little bit more information would have been nice. Anyway, I do remember making a pacman game years ago at university but unfortunately I am unable to find the source code. However, I may have found one better :) Take a look at this tutorial [URL="http://www.angelfire.com/games4/anirak/tutorial/day0/"]http://www.angelfire.com/games4/anirak/tutorial/day0/[/URL] Hopefully that helps. Regards, …

Member Avatar for Colezy
0
152
Member Avatar for Urv73

You've almost got it by the looks of it. I've tried to translate it into English so that other people will find it a bit easier to follow the code, I hope you dont mind. [CODE]#include <iostream> using namespace std; int main () { int start_Nr, start_Hour, start_Min, start_Sec, end_Hour, …

Member Avatar for Urv73
0
192
Member Avatar for Colezy

Hi all, Ok, a little bit of background before I start. I am working on some 2D visualisation software to show a cross-section of a magnet yoke with colour coded sections showing the force. The diagram has 10 discrete colour sections, not a continuous blend of colour. The data I …

0
92
Member Avatar for Elihu5991

Depends on your language. I have used NetBeans for Java games (which is free) and Visual Studio (which has a free 'Express' version) for C++/C# games. If you are making an XNA game then I belive you need Visual Studio 2008 (at least there was no support for 2010 in …

Member Avatar for Elihu5991
0
293
Member Avatar for jogieglenmait

I imagine you and the OP from this thread 2 days ago are in the same class :P [url]http://www.daniweb.com/forums/thread312919.html[/url] Your delims don't need to include the 'dot' as you can read in a number in ascii and convert it to a float with atof() or to an int with atoi().

Member Avatar for jogieglenmait
0
374
Member Avatar for warzone

Hi, If I have understood your question correctly you wish to modify your code to use strtok and strcmp. I can see why you need strtok but I don't fully understand what you want strcmp for? are you looking to check for the strings '101' '102' etc etc or are …

Member Avatar for jogieglenmait
0
481
Member Avatar for kakaliki

[QUOTE=kakaliki;1341437]I am mostly familiar with C++. :?: Please help. Question is below : Write a program to discover how many numbers between 1 and 40 can be expressed as the sum of 4 positive squares (e.g. 15 = 12 + 12 + 22 + 32).[/QUOTE] Ok, a couple of problems... …

Member Avatar for kakaliki
0
269
Member Avatar for chinchan

why not use a 3d bool array to save space if you are only allowing two values anyway? Look at [URL="http://www.cplusplus.com/reference/clibrary/cstdlib/rand/"]this link[/URL] for information on random number generation. As you are only looking for 2 values you can just use [CODE] if(rand() % 2 == 0) value = true; //or …

Member Avatar for Colezy
0
204
Member Avatar for COKEDUDE
Re: ->

Hi, That is a pointer arrow, it is used instead of 'dot' when dealing with pointers. Example: [CODE] //Direct access with 'dot' Object myObjectDirect; myObjectDirect.doWork(); //Indirect access with pointer arrow Object myObjectPointer = new Object(); myObjectPointer->doWork(); [/CODE] Notice the difference in the object declaration. Regards, Colezy P.S. some people call …

Member Avatar for Colezy
0
110
Member Avatar for ASTA LAVISTA

[QUOTE]Your current code produces a single zero (0) on the screen, if that's all you need, that's what you have.[/QUOTE] I think it would currently return a one (1) as there is a arg++; just before the cout<<arg; I believe he is asking if there is a way of modifying …

Member Avatar for ASTA LAVISTA
0
411
Member Avatar for localp

Hi, Firstly, the boolean type is just bool in C++. Using boolean will give you a compile error. [CODE]virtual bool process(void);[/CODE] Also, in your cpp you have just put boolean Sample::process(void) instead of [CODE]bool AlgorithmSample::process(void)[/CODE] As for calling it, you must make an instance of the object then call it …

Member Avatar for Valaraukar
0
136
Member Avatar for basics_of_sena

Hi, are you asking for help with the AI or are you asking for a premade game that you can modify?

Member Avatar for basics_of_sena
0
138
Member Avatar for Elven Princess

You created an account just to say that? In the words of Narue... [QUOTE=Narue;1219115]I encourage you to piss off.[/QUOTE]

Member Avatar for Fbody
-1
96
Member Avatar for usustarr

If you can capture the data instead of outputting it to screen then you can use [URL="http://www.cplusplus.com/reference/string/string/find/"]string::find[/URL] Colezy

Member Avatar for Lerner
0
124
Member Avatar for kamotekid08

Third thread with the EXACT same problem... school assignment maybe?? [URL="http://www.daniweb.com/forums/thread313333.html"]http://www.daniweb.com/forums/thread313333.html[/URL] [URL="http://www.daniweb.com/forums/thread312919.html"]http://www.daniweb.com/forums/thread312919.html[/URL] In future, read the forum for your solution before creating a new thread. Regards, Colezy

Member Avatar for kamotekid08
0
135
Member Avatar for |hex

I agree with VernonDozier except in that you should delete lines 36 - 39. They do serve a purpose in checking whether there is a command after 'show', although maybe you should increase the size to 5 to include a check for the inevitable [space] after 'show'.

Member Avatar for Fbody
0
177

The End.