Search:

Type: Posts; User: big_brother

Search: Search took 0.01 seconds.

  1. Replies
    19
    Views
    12,068

    okay, so i understand that my ...

    okay, so i understand that my



    while(scanf(" %c", &letter) != '.')


    won't ever work out... i suppose my confusion comes from trying to write the loop without using the getchar() command...
  2. Replies
    19
    Views
    12,068

    okay so this is what i've got //...

    okay so this is what i've got






    // this program will read in a string of char's ending in a period, and then calculate
    // the checksum, and print it out in both the char and int formats
  3. Replies
    19
    Views
    12,068

    okay thanks for the tips, i'll give it a whirl

    okay thanks for the tips, i'll give it a whirl
  4. Replies
    19
    Views
    12,068

    correct just the character form of the int....

    correct just the character form of the int. checksum.

    well, the loop would end when only a '.' (period) is read as input.
  5. Replies
    19
    Views
    12,068

    Alright. The program's function is to compile the...

    Alright. The program's function is to compile the checksum of a given string of characters that ends in a . , print the checksum in both character and integer form, and then my problem comes in that...
  6. Replies
    19
    Views
    12,068

    haha, yes the program does compile, and it prints...

    haha, yes the program does compile, and it prints out the correct results. i apologize if it is hard to follow, i'm relatively new to the C language (as i'm sure you can probably tell) so any tips on...
  7. Replies
    19
    Views
    12,068

    within my code i showed i call it and set it...

    within my code i showed i call it and set it equal to variable "checksum" the source for check_sum is in another file that simply states




    #include<stdio.h>

    #define SPACE_CHAR ' '

    ...
  8. Replies
    19
    Views
    12,068

    nested loop, simple but i'm missing it

    first off i'm new to the board, would like to say hello to all, look forward to working with everyone.

    that being said here's my problem, I have a rather simple piece of code with a for loop, and...
Results 1 to 8 of 8