Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question#include <stdio.h> int main() { int Tab[50]; int cpt = 0; char *c = "aaaaaa123bbbbb456ccccc789"; while(*c) { if((*c >= 48) && (*c <= 57)) { Tab[cpt] = atoi(c); cpt++; } c++; } return 0; }
#include <stdio.h> int main() { char a[5]; int z = 99; sprintf(a,"%s%i","a",z); printf("%s\n",a); return 0; }
if((*c >= 48) && (*c <= 57))
if (isdigit(*c))