As you can see from the code below, AIOUEaioue are all converted to #.
Is it possable so that 'a' will be converted to foo while 'i' is converted to fooffooo ?
as you can see my if looops are missing something...
any suggestions?
Code:
// hardcoder.cpp : Defines the entry point for the console application.
//
#include "stdio.h"
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int input
getchar();
do{
input = getchar();
if(input != 'a' && input != 'i' && input != 'o' && input != 'u' && input != 'e' && input != 'A' && input != 'I' && input != 'O' && input != 'U' && input != 'E')
fputc(input,stdout);
else if (input = 'a')
fputc('#', stdout);
else if (input = 'i')
fputc('@', stdout);
else if (input = 'o')
fputc('#', stdout);
else if (input = 'u')
fputc('$', stdout);
else if (input = 'e')
fputc('%', stdout);
else if (input = 'A')
fputc('^', stdout);
else if (input = 'I')
fputc('@#', stdout);
else if (input = 'O')
fputc('@#', stdout);
else if (input = 'U')
fputc('^%^', stdout);
else if (input = 'E')
fputc('%$@', stdout);
}
while(input != '0');
return 0;
}