i have been trying to compile for a while now worked fine until i added a symbolic constant then i get all kinds of syntax errors please help thanks
heres source code:
#include <stdio.h>
#include <stdlib.h>
//GIGO.c- Coded by Ross Camarillo aka Bubonic_88
// on 12/02/2009
//Created by Randy Gibson
#define SYMB '*' // character to show in the letters
void letter_G (char SM);
void letter_I (char SM);
void letter_O (Char SM);
void displayline (void);
int main (void)
{
letter_G(SYMB);
displayline();
letter_I(SYMB);
displayline();
letter_G(SYMB);
displayline();
letter_O(SYMB);
getchar(); // to cause system pause
return(0);
}
// child functions
void displayline (void) // display the line break in the main function
{
printf("-----\n");
}
void letter_G (char SM)
//display ther letter g
{
printf(" %c%c%c \n",SM,SM,SM);
printf("%c \n"),SM;
printf("%c %c%c%c\n",SM,SM,SM,SM);
printf("%c %c\n"),SM,SM;
printf(" %c%c%c \n"),SM,SM,SM);
}
void letter_I (char SM)
// display the letter i
{
printf("%c%c%c%c%c\n"),SM,SM,SM,SM,SM);
printf(" %c \n"),SM);
printf(" %c \n",SM);
printf(" %c \n",SM);
printf("%c%c%c%c%c\n",SM,SM,SM,SM,SM);
}
void letter_O(char SM)
{
printf(" %c%c%c \n",SM,SM,SM);
printf("%c %c\n",SM,SM);
printf("%c %c\n",SM,SM);
printf("%C %c\n",SM,SM);
printf(" %c%c%c \n"),SM,SM,SM;
}