Search:

Type: Posts; User: kcpilot

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. for (n, n

    for (n, n<= size*size, n++) You sure you want to do this? Just a suggestion, but start with a 3X3 array to see if you have the code working properly
  2. Replies
    40
    Views
    3,230

    your "naming convention" for functions needs some...

    your "naming convention" for functions needs some help. Try naming your functions starting with a letter, like "my_1()". I doubt if this program even compiles, much less execute.

    And I agree with...
  3. Replies
    7
    Views
    1,563

    Take another look at the strtok function. I...

    Take another look at the strtok function. I believe you have to use it twice to make it work the way you want. There should be shown an example in a decent book on 'C' in the 'String and Character...
  4. First off, this is NOT a 'C' function. This is a...

    First off, this is NOT a 'C' function. This is a UNIX function to be used on particular UNIX versions. So if you need help on 'wprintw' I suggest you do the following at the command prompt: man...
  5. Replies
    2
    Views
    1,515

    First, * 1 2 3 ... are really numbers, you have...

    First, * 1 2 3 ... are really numbers, you have to print this line as characters, OK? When you are printing out your rows, that first entry is not a number, but again, a character. Think of it as...
  6. Replies
    6
    Views
    1,014

    I'd find a new career, because if your mind...

    I'd find a new career, because if your mind wanders when trying to program at this level, you won't make when the heavier programming comes along.
  7. Any decent 'C' book will provide you all the...

    Any decent 'C' book will provide you all the answers you seek here. You should already have one if you're taking a class in 'C'.
  8. Replies
    2
    Views
    857

    This isn't the Java forum --- it's 'C', even...

    This isn't the Java forum --- it's 'C', even though the statements would be the same. So you're going to run a loop from 1 to 100 and test to see if that number in that loop is evenly divisible in...
  9. Replies
    5
    Views
    2,786

    It only runs ONE TIME. You need to add a third...

    It only runs ONE TIME. You need to add a third option of telling it when to quit and then use a WHILE statement or a DO-WHILE until that third option is used. You can put that third option in the...
  10. Thread: Help please

    by kcpilot
    Replies
    18
    Views
    2,212

    Your line : if ( argc != 'E' || argc != 'e'...

    Your line :


    if ( argc != 'E' || argc != 'e' || argc != 'D' || argc != 'E' )


    is checking 'E' twice. Should it be checking some other value??
  11. Replies
    13
    Views
    6,534

    I may be wrong, but if memory serves me...

    I may be wrong, but if memory serves me correctly, the rand() function may not be returning the type of values you think they are. I know I've found occasions where the value returned was a double...
  12. Thread: newb help

    by kcpilot
    Replies
    5
    Views
    1,017

    Try working out your formulas on paper --- you...

    Try working out your formulas on paper --- you will see they are bogus. It might help if you defined your constants better. Instead of "POUNDS" doesn't something like "OZ_PER_LB" sound more accurate?...
  13. Replies
    5
    Views
    1,816

    Area is PI * r * r not PI * Diameter * Diameter

    Area is PI * r * r not PI * Diameter * Diameter
  14. Replies
    2
    Views
    1,128

    For one thing, struct scene DOES NOT contain an...

    For one thing, struct scene DOES NOT contain an 'obj', so your 'scene[0].obj[0].numobj;' is completely bogus.

    To do what you want to do, you would have to include the structure 'object_list'...
  15. Replies
    4
    Views
    67,691

    You will not get the correct answer for an...

    You will not get the correct answer for an average until you make :

    int grade1;
    int grade2;

    as

    double grade1;
    double grade2;
  16. Replies
    1
    Views
    1,398

    BINGO, you answered your own question!

    BINGO, you answered your own question!
  17. Replies
    14
    Views
    1,872

    Computer problems, eh? How did he manage to post...

    Computer problems, eh? How did he manage to post this thread? Copy and paste didn't work? He didn't reel in Tabstop either! No integrity with this poster at all!
  18. Replies
    9
    Views
    4,182

    Take a look on zdnet.com for software that...

    Take a look on zdnet.com for software that adresses memory leaks. You can do a search fo "memory leak" and see what turns up. Be prepared to spend money. I doubt if you will find a very good one for...
  19. Replies
    9
    Views
    2,918

    Why even use float variables. You're using...

    Why even use float variables. You're using pennies to calculate the types of coins. You can't have a fraction of a penny. You'd also be better off not declaring your variables inside of "if" blocks....
  20. Replies
    10
    Views
    12,385

    A couple of things --- first you never increment...

    A couple of things --- first you never increment 'i' at the end of the do-while loop. Also, you never initialize your studentPtr. The statement
    ...
  21. Thread: help

    by kcpilot
    Replies
    3
    Views
    854

    For a beginner in 'C', I think you are biting off...

    For a beginner in 'C', I think you are biting off a whole lot more than you are ready for. Start with simpler stuff for now and work your way up the knowledge ladder.
  22. Replies
    7
    Views
    1,908

    Does this compile on your system? It doesn't...

    Does this compile on your system? It doesn't compile on my VC++ 6.0.
  23. Replies
    5
    Views
    3,205

    First of all, the number of arguments you are...

    First of all, the number of arguments you are trying to read in from the input file do not match what your example shows --- where does 'totalnumdays' come from in the input list??

    I think a...
  24. Replies
    8
    Views
    1,408

    It's bad programming practice to do that, but if...

    It's bad programming practice to do that, but if you really want to do it and suffer any consequences thereof, you can 1) make one include file and use it in your program, or 2) you can list each...
  25. Replies
    9
    Views
    1,608

    So what does your new code look like now? You had...

    So what does your new code look like now? You had no code to change the values of anything in your array. If you enter a '4', you are setting numbers[4] to something close to 10000. since you are...
Results 1 to 25 of 148
Page 1 of 6 1 2 3 4