#include <iostream>#include <fstream>using namespace std;ifstream f("text.in");int lit_mare,lit_mica,cif,caract_spec;int main(){ char s; while(f>>s && s!='#') { if(isdigit(s)) cif++; else if(isupper(s)) lit_mare++; else if(islower(s)) lit_mica++; else if(!isalpha(s)&&!isdigit(s)) caract_spec++; } cout<<"Litere mari: "<<lit_mare<<'\n'; cout<<"Litere mici: "<<lit_mica<<'\n'; cout<<"Cifre: "<<cif<<'\n'; cout<<"Caractere speciale: "<<caract_spec<<'\n'; return 0;}