This Compiles fine without any errors. Not to sure where to go in this program thought. I need to get the first loop working like it should, then know how to get and print each character one by one.
Code:
/*
Name: Connor Moore
Date: 1/30/13
File: ex8-6
Purpose: This program converts a message the
user enters into a B1FF style message.
*/
#include <stdio.h>
#include <ctype.h>
#define charMax = 80;
int main(void) {
int c, i; /* int */
int count;
char message[80];
c = getchar();
count = 0;
printf("Enter message: ");
while ((count < 80) && (c != EOF)) { /* don't go over the array size! */
message[count] = toupper(c);
++count;
c = getchar(); /* get *another* character */
}
for(i = 0; i < 80; i++) {
printf("%c", message[i]);
}
return 0;
}