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...
Type: Posts; User: big_brother
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...
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
okay thanks for the tips, i'll give it a whirl
correct just the character form of the int. checksum.
well, the loop would end when only a '.' (period) is read as input.
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...
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...
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 ' '
...
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...