Search:

Type: Posts; User: motocross95

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    5,148

    Dynamic Memory Allocation?

    Can someone please give me some sample code on how I would be able to make an array of N elements. Where N is input by the user. I know a way of making say 'int num[100];' and when checking only...
  2. Replies
    13
    Views
    19,838

    I can't wait til I get good at programming. Maybe...

    I can't wait til I get good at programming. Maybe then I'll be able to make a text based chess game since graphics seems to be a pain in C++. For now I think it's on to my text based minesweeper...
  3. Replies
    10
    Views
    1,313

    Don't mean to drift off topic but Hunter2 you...

    Don't mean to drift off topic but Hunter2 you might want to fix your signature.

    P.S.
    if(somebody.is(about_to).shoot() == you)
    {
    you.better(put_on(Vest(VS_LARGE | VS_BULLETPROOF)); //this line...
  4. Replies
    6
    Views
    12,575

    Thanks for all the answers Crimpy. I suppose I'll...

    Thanks for all the answers Crimpy. I suppose I'll start using int main since alot of people say it's the correct way. I will also have to look into the new functions in the newer header files. Thanks...
  5. Replies
    6
    Views
    12,575

    I understand about the l variable not being...

    I understand about the l variable not being informative and closely resembling 1. If main returns an int then why does it let me declare it void and still work? What is the difference if both work?...
  6. Replies
    6
    Views
    12,575

    I got the timer working and this is the program...

    I got the timer working and this is the program so far. I'm pretty happy with how it's turning out.


    #include <iostream.h>
    #include <conio.h>
    #include <string.h>
    #include <windows.h>...
  7. Replies
    6
    Views
    12,575

    Creating a timer in C++

    Can someone give me a basic sample program on how I would create a timer to keep track of how long it takes the user to perform a certain task. I am making a little program to calculate how many...
  8. Replies
    10
    Views
    1,337

    sound(150);//starts sound delay(3000);//waits 3...

    sound(150);//starts sound
    delay(3000);//waits 3 seconds
    nousound();//Stops sound

    that is the code you wrote, look at the last line. You have an extra 'u' in there. That will give you an error if...
  9. Replies
    8
    Views
    1,963

    Do you think you could either find me a link to...

    Do you think you could either find me a link to an example or explain how I would implement a very simple example? Thanks.
  10. Replies
    8
    Views
    1,963

    thanks sang. If this makes any difference, it is...

    thanks sang. If this makes any difference, it is not creating variables just using PIECE to find which object to change the values of. The objects already exist. Does that make any difference?
  11. Replies
    8
    Views
    1,963

    I'm open for any ideas that get the job done. If...

    I'm open for any ideas that get the job done. If it's easier to use a string then explain it. The way it's coming in is not the problem.
  12. Replies
    10
    Views
    1,046

    I personally hate looking at Java code. Just...

    I personally hate looking at Java code. Just looks foreign and has it's own way of doing things when I'm used to C++.
  13. Replies
    8
    Views
    1,963

    it is a specific question, read it again, and no...

    it is a specific question, read it again, and no it's not a teacher. I am working on a chess program and this question (if possible) would help me out. Now I don't know why you and your friends only...
  14. Replies
    2
    Views
    882

    I wonder if you even check back to see this but...

    I wonder if you even check back to see this but it was a neat little game. I just have one question. How do you get the colored text? That could help me out a bit.
  15. Replies
    8
    Views
    1,963

    C++ Question

    I have a question and a friend tells me that this is not possible. Please prove him wrong and help me out in the process. OK first I am working on a strictly text based chess game. Say the variable...
  16. Replies
    10
    Views
    7,696

    Yes I like my signature as well. I got it from my...

    Yes I like my signature as well. I got it from my brother, who I believe got it from Dr Seuss. As of now I am just adding and subtracting from the x and y coordinates. When I thought about how to do...
  17. Replies
    10
    Views
    7,696

    Thank you for all the help, I will try messing...

    Thank you for all the help, I will try messing with it when i get back to school and I will tell you how it turns out. Thank you again. I love this forum.
  18. Replies
    10
    Views
    7,696

    Bouncing ball

    I can make a ball bounce around the screen and it's not too difficult. The way I do it though the angles are always the same, by simply adding or subtracting 1 to the X and Y coordinates. What I am...
Results 1 to 18 of 18