// wsk2.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "stdio.h" #include "stdlib.h" int _tmain(int argc, _TCHAR* argv[]) { char tab[] = "to jest napis bez napisu :)"; char *napis = tab; char *start = tab; for( ; *napis != '\0'; ++napis) { switch(*napis) { case 'a': *napis = '*'; break; case 'e': *napis = '!'; break; case 'i': *napis = '%'; break; case 'o': *napis = '%'; break; case 'u': *napis = '%'; break; case ' ': *napis = '_'; } } napis = start; printf("%s\n", napis); system("pause"); }