Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Filthy_Utter

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,123

    Re: Graphics Programming

    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...
  2. Thread: C++

    by Filthy_Utter
    Replies
    7
    Views
    293

    Re: C++

    People obviously don't want to do your homework for you, but you could do something along the lines of:


    int main()
    {
    char stringIn[40];
    fstream fin, fout;
    fin.open("pathIn.txt",...
  3. Re: File Paths.. Very simple problem!

    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.
  4. [RESOLVED] File Paths.. Very simple problem!

    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...
  5. Replies
    7
    Views
    676

    Re: Still Some Trouble Creating Gravity

    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!

    You...
  6. Replies
    7
    Views
    676

    Re: Still Some Trouble Creating Gravity

    Wait, so would I simply be able to say:

    forceX = (-G*M1*M2/R^2) / (y2-y1)
    and
    forceY = (-G*M1*M2/R^2) / (x2-x1)
    ?
  7. Replies
    7
    Views
    676

    Re: Still Some Trouble Creating Gravity

    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...
  8. Replies
    7
    Views
    676

    Still Some Trouble Creating Gravity

    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...
  9. Replies
    3
    Views
    635

    Re: Trouble Creating Gravity

    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...
  10. Re: Need help with physics for this engine. I will explain in thread.

    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...
  11. Replies
    3
    Views
    635

    [RESOLVED] Trouble Creating Gravity

    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...
  12. Re: Need help with physics for this engine. I will explain in thread.

    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++)
    {...
  13. Re: Need help with physics for this engine. I will explain in thread.

    Also, this part of the assignment (with gravity built in) is due Monday. o.o
  14. Re: Need help with physics for this engine. I will explain in thread.

    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...
  15. Re: Problem using case '\n': with an inputted char.

    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....
  16. Problem using case '\n': with an inputted char.

    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...
  17. Need help with physics for this engine. I will explain in thread.

    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.
    You can...
  18. Replies
    2
    Views
    556

    Re: Help using a character as parameter

    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..
    char charVariable;
    cin >> charVariable;
    if(charVariable == 'a');

    You...
  19. Re: [RESOLVED] Problem with passing a stack by reference

    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
  20. Replies
    13
    Views
    1,005

    Re: C++ Recursive function has me stumped

    ABCDE
    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.
  21. Re: Problem with passing a stack by reference

    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 &...
  22. [RESOLVED] Problem with passing a stack by reference

    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....
  23. Poll: (easy to answer [hopefully]) College student needs help debugging one line of code.

    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...
Results 1 to 23 of 24


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center