题解 | #复制部分字符串#
复制部分字符串
https://www.nowcoder.com/practice/8f5b923683b94e549880e3c8370e3e55
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
char a[33] ;
int n;
scanf("%s %d", a, &n);
char *p = a;
p+=n-1;
while(*p!='\0')
{
printf("%c",*p) ;
p++;
}
return 0;
}
