Search:

Type: Posts; User: CrazedBrit

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,514

    Unless a function is "pure virtual," which your...

    Unless a function is "pure virtual," which your Student's Print function isn't, you need to define it. You should either come up with a simple definition, or just put
    {} after the declaration like...
  2. Replies
    12
    Views
    1,762

    Haha that makes two :p Glad I could help

    Haha that makes two :p
    Glad I could help
  3. Replies
    12
    Views
    1,762

    Shouldn't this cpu_line = backup; be ...

    Shouldn't this

    cpu_line = backup;
    be

    backup = cpu_line;

    Because backup never gets initiated. And i'm guessing that the while(cpu_line==backup) loop is supposed to keep looping until you...
  4. Replies
    6
    Views
    2,049

    C will automatically round down, or simply cut...

    C will automatically round down, or simply cut off the decimal, if you assign a floating point value to an integer variable. If you wish to round up all the time, simply do that and then add one to...
  5. I don't know if this make any difference, but...

    I don't know if this make any difference, but tan(pi/2) is not actually inifinity. By definition tan is sin/cos and since the sin of pi/2 is 1 and the cos of pi/2 is 0 the tan of pi/2 is an...
  6. Replies
    5
    Views
    1,010

    If all you need to do is print the array there is...

    If all you need to do is print the array there is no need to actually modify any of the values in the array. Just use a for loop to cycle through each value in the array, and if it is not equal to...
  7. Replies
    3
    Views
    769

    There are two problems I can see. The first is...

    There are two problems I can see. The first is in your call to scanf. In this you need to include an & in front of the get, because you actually need to send the memory address of the variable not...
  8. Replies
    5
    Views
    1,670

    Your problem is in your while statement. The...

    Your problem is in your while statement. The first issue is that each time you declare getchar() you are getting a different character. What you need to do is make a new character varable, lets say...
  9. Replies
    11
    Views
    2,827

    so...ummm....there was absolultly no problem with...

    so...ummm....there was absolultly no problem with the for loop...it just had to be done differently in order to change the number each time.

    printf ("\nEnter the number of gallons used for tank...
  10. Replies
    5
    Views
    2,549

    Nono, bithub is right, I was wrong. When you...

    Nono, bithub is right, I was wrong. When you declare an array...ex. array[7] you get 7 chunks of memory. But that memory starts at 0, so its really 0-6. So you need to change that line to the one...
  11. Replies
    5
    Views
    2,549

    Here's an issue: for (y = 1; y > 7; y++)...

    Here's an issue:

    for (y = 1; y > 7; y++)
    Should be <= I believe
  12. Replies
    6
    Views
    1,347

    I don't think I fully understand your...

    I don't think I fully understand your question....but if you just look at the loops logically they'll be pretty easy to figure out. For example the one you showed m would equal 31+31+31 for its...
  13. Replies
    16
    Views
    3,157

    Just like you don't need a ; after your if...

    Just like you don't need a ; after your if statements you don't need a semicolon after your while statement. If you do put one it will simply repeat over and over again until Counter is less than...
  14. Replies
    2
    Views
    1,348

    Don't forget to box in your main. int...

    Don't forget to box in your main.


    int
    main(void)
    {
    int score [100];

    score [0] = 5;
    score [1] = 3;
  15. Replies
    11
    Views
    2,730

    Oop my bad. You're right Sly it would be best to...

    Oop my bad. You're right Sly it would be best to use a while loop for that, but, it would still be possible to do it using an infinite loop with a break statement.
    -Crazed
  16. Replies
    5
    Views
    1,320

    Hmm...try declaring the FILE at the beginning of...

    Hmm...try declaring the FILE at the beginning of main, where you normaly declare variables. The compiler might like it better there. Otherwise...I'm not really sure what the issue is.
    Also, you...
  17. Replies
    11
    Views
    2,730

    Yeah, ditto what cwr and sly said. Don't bother...

    Yeah, ditto what cwr and sly said. Don't bother reading his post. But do try using a for loop, then show us what you come up with and we'll be happy to help you work through the problem.
    -Crazed
  18. Replies
    3
    Views
    1,214

    Also you will never have a total of one because...

    Also you will never have a total of one because the lowest roll for each die is a one, and one plus one is two.
  19. Replies
    5
    Views
    1,047

    Well....from what I can see you've got a couple...

    Well....from what I can see you've got a couple problems,


    int main () {
    STUDENT stuArr[MAX_STUDENTS]; STUDENT, MAX_STUDENT, are these in test.h? what are they?
    void rmNl ( char s[]...
  20. total = total - (MINS_HR * SECS_MIN); ...

    total = total - (MINS_HR * SECS_MIN);

    shouldn't this be:


    total = total - (MINS_HR * SECS_MIN * h);
  21. Replies
    3
    Views
    1,830

    The only way for you to really do this nicely...

    The only way for you to really do this nicely would be to change the number of lines you use for the roof depending on the width entered.
    This is what I came up with, feel free to do it however you...
  22. Replies
    2
    Views
    1,227

    looks to me like the problem is probably in your...

    looks to me like the problem is probably in your equalBets function. Try posting that.
  23. Replies
    2
    Views
    1,540

    You've also got some issues with your brackets. ...

    You've also got some issues with your brackets. You need to include all of your main () stuff in brackets. ex


    int main()
    {
    blah blah blah
    return(0);
    }

    Not to mention, that...
  24. Replies
    4
    Views
    1,698

    Oh okay, I'm at my home computer now so I could...

    Oh okay, I'm at my home computer now so I could compile it and see what you meant. I understand the problem now.
    Try this:


    do
    {
    time = time + 1;
    ...
  25. Replies
    4
    Views
    1,698

    Umm...I only see a couple lines with odd...

    Umm...I only see a couple lines with odd indenting, and even then its still pretty readable...As for the altitude problem, is there any guarentee that it will ever equal exacly zero? What if it goes...
Results 1 to 25 of 44
Page 1 of 2 1 2