PC
C语言
直接给大家代码吧:#include
for(i=n-1;i
题目要调用这个函数:viod substr(char *source,int start,intlength,char *dest);// cscs.cpp : Defines the entry point for the console application.// #include 'stdafx.h'#include
char a[20],b[20],*p; int n,x,i; printf('how long:'); scanf('%d',&n); printf('where:'); scanf('%d',&x); getchar(); printf('input words:'); gets(a); p = a; substr(p,x,n,b); return 0;}
void substr(char *source,int start,int length,char *dest){ int k; int i; int j=0; char *p; k=strlen(source); p = source; for(i=start-1;i
网络虽好,但要注意劳逸结合哦!
如果是青少年,小编在这里提示大家千万不能沉迷网络!