Time:06-03
CodePudding user response:
your code? A line didn't write the
# include & lt; Stdio. H> #include Typedef unsigned long size_t; Void pick (char * s, char * sub, int beg, int the end, int step) {Int I, j=0; For (=I beg; I & lt; end; I +=step) {Sub [j++] [I]=s; } While (sub) [j] {Sub [j]='\ 0'; j++; } } Size_t len (char * s) {Int I=0, n=0; For (; S [I]; I++) {n++; } Return n. } Int main () {Char * s="Stringhandling"; Char * t=(char *) malloc (sizeof (char) * len (s)); Pick (s, t, 2, 8, 2); Printf (" % s \ n ", t); Free (t); return 0; }
Page link:https//www.codepudding.com/Backend/112584.html