题解列表

筛选

字符串输入输出函数-题解(C 语言代码)

```c#includevoidGetReal(double*a);//输入变量并改变变量的值voidGetString(char*arr);//输入字符数组并改变字符数组的值intmain(){doublea;//定义双精度变量chararr[100];//定义字符数组GetReal(&a);Get

字符串组的使用

摘要:解题思路:注意事项:参考代码:# include <stdio.h># include <string.h>int main (){    int n;    scanf ("%d",&n);    ……

简单利润计算

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or ……

1093: 字符逆序 python

摘要:解题思路:注意事项:参考代码:l = list(input)for i in l[::-1]:print(i,end=&#39;&#39;)……

一个getline实现(字符串输入流构造分割函数)C++实现

解题思路:分开两组进行输入,使用字符串输入流istringstream构造输入流对字符进行分割,做一个相当于Java和python里面的split函数一样的函数对字符进行分割。注意事项:注意每个数据之间还有空行,我一开始就是前两行只输出了一个换行,