题解 1477: 字符串输入输出函数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

字符串的输出(C++)语言

摘要:解题思路:其实在int main(){}下写两个函数会更简单,不用单独再写两个函数注意事项:参考代码:#include<iostream>#include<string>using namespace……

字符串输入输出函数-题解

defGetReal(inpn):print(inpn)defGetString(inps):print(inps)defmain():inpn=input('pleaseinputanumber:\n')inps=input('pleaseinputastring:\n')GetReal(inpn)