The overall program is suppose to take a user inputted sentence / message, and print it out using B1FF style.
i.e. Input: Hey dude, C is rilly cool
Output: H3Y DUD3, C 15 R1LLY C00L!!!!!!!!!!
Program is suppose to convert the message to upper-case letters, substitute digits for certain letters, and then print out 10 or so ! marks. The Hint: Store the original message in an array of characters, then go back through the array, translating and printing characters one by one.
I don't know how to go about going through each char in the array and printing them one by one. I plan to use if statements before print characters to determine whether to set that char = something else if it needs to be ( e = 3 ).
Heres my current code:
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; /* 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 */
}
while ((count > 80) && (c !- EOF)) {
printf()
return 0;
}