Type: Posts; User: Filthy_Utter
Search took 0.01 seconds.
No one replied to you! I'm not sure why. However, you can try starting out using SDL. I'm currently learning to use SDL with c++ and it's going great.
With SDL you load images, sounds, etc., and...
People obviously don't want to do your homework for you, but you could do something along the lines of:
fstream fin, fout;
I apologize very sincerely (dui bu qi). I was linking to an incorrect file name. Cheers to you all, and I hope you all have a great day.
Sorry guys, I'm in China so of course I'm a little drunk.
I've forgotten how to include a path to a folder from my current directory!
I mean, instead of loading my dice images as "dice6.png", I'm...
March 28th, 2012, 12:58 PM
I don't know how to thank you enough. Thank you so much :(:cry::wave:
My program is working correctly now. I have to make a video of it, so I'll go ahead and post it later so you can see!
March 27th, 2012, 06:57 PM
Wait, so would I simply be able to say:
forceX = (-G*M1*M2/R^2) / (y2-y1)
forceY = (-G*M1*M2/R^2) / (x2-x1)
March 27th, 2012, 06:21 PM
I'm glad it's Peter_B here to save the day yet again.
As for the complicated switch.. I know it's horrible x.x
I was really trying to get things working correctly before going to clean up (for...
March 27th, 2012, 12:20 PM
Hi, I've been having trouble working on this physics engine of mine. Right now I'm having trouble adding gravity.
The game is a spaceship--which you control--flying around in space with asteroids...
March 27th, 2012, 12:18 PM
Thanks.. I've tried to fix my code with what you two suggested.. I'm doing something wrong, however. I hate to continue posting topics about this, but I really need the help and I want my question to...
March 26th, 2012, 05:53 PM
Thanks for another great reply.
As for the neater code: it is much neater--I don't know what else to say.
I will definitely implement it in this manner when I get done with the gravity part. (I...
March 26th, 2012, 09:13 AM
Hi, sorry for posting another thread. I want this one to be more specific. Also, it's on a different question than my last thread.
I'm making a physics engine for class. The GUI was provided by my...
March 26th, 2012, 08:55 AM
Thanks for the help. I got that part working.
//limit the speed of every object pushed into the game. (will need to make special case for bullets)
for(int i = 0; i <= pushCount; i++)
March 24th, 2012, 08:20 PM
Also, this part of the assignment (with gravity built in) is due Monday. o.o
March 24th, 2012, 08:17 PM
Thanks Superbonzo. You seem to clearly grasp what I'm doing wrong. However I'm still a little confused.
Actually I'm very confused.
How do I find the length of the vector V?
And what special...
March 24th, 2012, 07:55 PM
Thanks Paul, I do try really hard to learn from my mistakes. I know it will pay off one day.
But, I had tried using the debugger and could not find out why it was skipping. It just wasn't catching....
March 24th, 2012, 01:08 AM
I'm trying to search a specified file for all instances of substring "abbaa."
This is an easy problem, and I know I can do it better than I have, but the professor is making us use a 6x3 array in...
March 23rd, 2012, 05:30 PM
Thanks for clicking this post, I'll get right down to business.
I'm creating a physics engine for class.
The overall idea is a 2d screen with a spaceship flying around and asteroids.
February 25th, 2012, 03:22 AM
You actually don't need the three chars: a, b, and c.
I'm not completely familiar with c coding, but with c++ you would..
cin >> charVariable;
if(charVariable == 'a');
February 25th, 2012, 03:11 AM
Yes, I did mean truncating.
I switched it to floats and I set the precision to 10.
The program is working flawlessly now if anyone is interested in seeing the RPN Calculator
February 24th, 2012, 12:34 PM
Bounds of 1 and 4 would be referring to
B to E
So, your output "AEDCB" is actually correct.
Note, A = 0, B = 1, C = 2, D = 3, E = 4.
February 21st, 2012, 09:15 PM
To those who care:
I finally found the problem. I was calling iStack.top() while iStack was empty.
To circumvent this, I did:
/*12*/void placeInto(stack<char> & iStack, char iChar, int &...
February 21st, 2012, 08:28 PM
I'm having trouble using a stack's functions when passing it by reference.
I'm currently messing around with passing a pointer to the stack instead, but to no avail.
Any help would be appreciated....
February 21st, 2012, 07:56 PM
Hi, I'm not sure if this is the correct place to post, or if posting for help debugging is even allowed (as this is my first post). If I'm in the wrong, let me know.
But! I need help debugging my...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.