/************************************************* * * Matthew Page * 10/30/2014 * CSCS 1320 * Fall 2014 * * knowledgeassessment.c - write a program that * that doesn;t write anythign for a prompt * but waits for user input, then when a user * enters say "ABC" it outputs "65 66 67" or * say "ABC DE0" would output "65 66 67 32 68 * 48 10" * * **********************************************/ #include int main() { //variable declarations and initializations //char input[256]; //an array to house user input //int i=0; //iteration count/index of array int askey=0; //ASCII value //prompt user for input, sort of //while(input[i]!="\n") while(askey!=EOF) { askey=fgetc(stdin); //scanf("%c", &input[i]); //askey=atoi(input[i]); printf("%d ", askey); //i++; } printf("\n"); return (0); }