Search:

Type: Posts; User: leroyjenkins

Search: Search took 0.00 seconds.

  1. Thread: Arrays

    by leroyjenkins
    Replies
    7
    Views
    997

    IT WORKS! I've been messing around with this for...

    IT WORKS! I've been messing around with this for 5 hours and it finally works.

    Thank you all very much. Here's what the code is supposed to look like:



    // asc array.cpp : Defines the entry...
  2. Thread: Arrays

    by leroyjenkins
    Replies
    7
    Views
    997

    apparently this if (k == 0) break ; ...

    apparently this
    if (k == 0)
    break ; was left over from a bad copy paste.. I took it out and didn't affect anything.
  3. Thread: Arrays

    by leroyjenkins
    Replies
    7
    Views
    997

    I mean it won't sort the numbers at all. It just...

    I mean it won't sort the numbers at all. It just kind of skips around.
    I think all the curly braces are in there, actually.
  4. Thread: Arrays

    by leroyjenkins
    Replies
    7
    Views
    997

    Arrays

    I'm trying to sort an array of numbers input from the keyboard. I've done some searches on here, but nothing can point me in the right direction. Without defining the numbers, I can get the array to...
  5. Replies
    13
    Views
    1,988

    Thanks everyone. Thank you all very much.

    Thanks everyone. Thank you all very much.
  6. Replies
    13
    Views
    1,988

    Well i'll be dang. It works now. It was just that...

    Well i'll be dang. It works now. It was just that last statement.



    printf("The number for the date is %d", number);
  7. Replies
    13
    Views
    1,988

    That's what I read. printf ( "%5d\n", 123 );...

    That's what I read.


    printf ( "%5d\n", 123 ); /* Prints " 123" */


    This is what I have in there now.


    printf ("%5d\n, The date number is %5d");
  8. Replies
    13
    Views
    1,988

    I tried this printf ("%5d\n", The date...

    I tried this



    printf ("%5d\n", The date number is %5d);


    and nothing but a thousand errors.
  9. Replies
    13
    Views
    1,988

    printf("The number for the date is %c", &number);...

    printf("The number for the date is %c", &number);



    like so?


    Edit:
  10. Replies
    13
    Views
    1,988

    Can you show me how to fix it? I honesly have...

    Can you show me how to fix it?

    I honesly have no idea.
  11. Replies
    13
    Views
    1,988

    Ok. I changed x and y to ints, but still getting...

    Ok. I changed x and y to ints, but still getting 0. :confused:
  12. Replies
    13
    Views
    1,988

    If statements not working

    Hi all.. I've got a problem with some code I'm writing and I don't know how to make it do what I want. Every time I debug it, it gives me a 0 value. The goal is to write a program that given the date...
Results 1 to 12 of 12