这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```c #include #include #include char *getlinex(void) { //getchar(); char * x = malloc(sizeof(char) * 1000); char c; int t = 0; while((c = getchar()) != EOF && c…
```c #include #include #include char ctou(char x) { if((x >= 'A' && x <= 'Z') || x == ' ') return x; else return 'A' - 'a' + x; } char * toupper2(char *x) { int…
在讨论《无法使用getchar正常读取输入》回复:
前面还有一个输入,完整版是这样的: ```c char input0[12]; scanf("%s",input0); getchar(); char * input = malloc(sizeof(char)); int end = 0; char x; while((x = getchar()) != '\n')…
```c char * input = malloc(sizeof(char)); int end = 0; char x; while((x = getchar()) != '\n') { input[end] = x; input = realloc(input,sizeof(char) * (end + 3));…
```c #include int main() { int n; scanf("%d",&n); int c = 0; double xn = (double)n; if(n 1) { xn /= 2; c++; } printf("%d\n",c); } ```
```c #include #include struct timeans{ int hour; int minans; }; struct timeans *minute_mi(int src, int tomin) { int k = src - tomin; if(k >= 0) { struct timeans…