#include <stdio.h>
#include <stdlib.h>
#include <cstring>
int odstranmale(char *str) {
int dlzka;
gets(str);
dlzka=strlen(str);
for (int i=1;i<=dlzka;i++)
if(str>='a' && str<= 'z')
str= str[i-1];
printf("Novy retazec %s",str);
return 0;
*************************************************************************************
Can someone tell me where is the mistake? I should get a string and remove small letters which appear in string and them print new string without these letters.
#include <stdlib.h>
#include <cstring>
int odstranmale(char *str) {
int dlzka;
gets(str);
dlzka=strlen(str);
for (int i=1;i<=dlzka;i++)
if(str>='a' && str<= 'z')
str= str[i-1];
printf("Novy retazec %s",str);
return 0;
*************************************************************************************
Can someone tell me where is the mistake? I should get a string and remove small letters which appear in string and them print new string without these letters.