ok i am trying to do some simple thing, but it doesnt work.
what i wanna make is just simple program that prints the specified thing.
problem is that it does not print what i choose...it prints out everything when i use the ''if'' command.
ill give an example:
Code:
printf( "\nEnter letter from name ''Sethioz'' to be shown below: \n" );
char S, e, t, h, i, o, z;
scanf( "%s", &S, e, t, h, i, o, z );
if ( S == S, e, t, h, i, o, z )
printf( "S test" );
if ( e == S, e, t, h, i, o, z )
printf( "e test" );
printf( "\nentered %s" );
getchar();
i know that its wrong, but how can i make it print only ONE of them ? right now it prints both. Its just a part of it ... ill add ''else'' if you enter something else than those letters...etc. I know im missing something easy .. but what ? worked fine with numbers and when i used ==, !=, < or >.