Search:

Type: Posts; User: Mace

Search: Search took 0.01 seconds.

  1. Thread: help ASAP

    by Mace
    Replies
    2
    Views
    831

    This is a program my teacher wrote for us as an...

    This is a program my teacher wrote for us as an example. You would have to modify it to work the way you want it to, but as it stands it sorts in ascending order. You must change it to descending and...
  2. Replies
    4
    Views
    950

    I figured out what I was doing wrong, and that's...

    I figured out what I was doing wrong, and that's very similar to the code I used to do it. Thanks for the help though.:cool:
  3. Replies
    4
    Views
    950

    ok, thanks

    ok, thanks
  4. Replies
    1
    Views
    1,226

    I would create a global integer and set the value...

    I would create a global integer and set the value to zero. If you then deposit money, change the value to 1. Then use an if statement to do withdrawl. If a=0 then return else withdrawl. I don't use...
  5. Replies
    4
    Views
    950

    Removing '\n' From a String

    Simple question, I feel real dumb asking this:

    How do you remove the "\n" from the end of a string to prevent the printf to go to the next line?

    Example:


    char a[]="testing\n";
    char...
  6. Replies
    3
    Views
    1,632

    I'm sorry, I'm not familiar with "atoi()" How...

    I'm sorry, I'm not familiar with "atoi()" How would you use that to convert the string "zz" to integer "yy"?


    int yy;
    char zz[10];

    strcpy(zz,"5280");

    printf("%.2i",yy);
  7. Replies
    3
    Views
    1,632

    File Access with Strings and Numbers

    I'm just trying to learn C and I've come accross something that stumps me. How do you read in a file that has both words and numbers as both strings and doubles? Say a .txt file has a name, name,...
Results 1 to 7 of 7