level 12
#include <stdio.h>
#include <string.h>
char c[2][16];
void zfc(char a[30],char b)
{
int a_len = strlen(a);
int w_c = 0;
int b_pos;
while (w_c < a_len) {
if (a[w_c] != b) {
c[0][w_c] = a[w_c];
} else {
b_pos = w_c;
}
w_c = w_c + 1;
}
b_pos = b_pos+1;
w_c = 0;
while (b_pos < a_len) {
c[1][w_c] = a[b_pos];
w_c = w_c + 1;
b_pos = b_pos + 1;
}
}
int main(void)
{
zfc("abcdefghi", 'e');
printf("Front Part of the fucking c: %s\n", c[0]);
printf("Rear Part of the fucking c: %s\n", c[1]);
return 0;
}
2016年04月24日 05点04分
11
谢谢
2016年04月24日 06点04分
level 12
dev null 是一个设备文件,使用fopen之类的来打开它。比如:
debug = fopen("/dev/null", "w");
然后你就想干嘛干嘛吧。
2016年04月24日 15点04分
15