#include #include using namespace std; void nhapXau(char s[100]) { do { cout<<"Nhap vao xau s: "; fflush(stdin); gets(s); } while (!strcmp(s, "")); } void demKyTu(char s[100]) { int chuhoa, chuthuong, chuso, i; chuhoa = chuthuong = chuso = i = 0; while (s[i] != '\0') { if (isupper(s[i])) chuhoa++; if (islower(s[i])) chuthuong++; if (isdigit(s[i])) chuso++; i++; } cout<<"Co "< k ; i--) s[i] = s[i-1]; s[k] = x; } void xoaKyTu_A(char s[100]) { for (int i = 0; i < strlen(s); i++) if (s[i] == 'a') xoaKyTu(s, i); cout<<"\nChuoi sau khi xoa ky tu a: "<>menu; switch (menu) { case 2: demKyTu(s); break; case 3: xoaKyTu_A(s); break; case 4: demSoTu(s); break; case 5: daoNguoc(s); break; case 6: inTheoDong(s); break; default: cout<<"Lua chon sai"; } return 0; }