string str="123456";string nullstr="";nullstr=str.substring(str.length-3,3);
如果是固定长度的,可参考:#includeint main(){int i,a[6];for(i=0;i<6;i++)scanf("%d",&a[i]);printf("%d %d %d",a[3],a[4],a[5]);return 0;}