1094: 字符串的输入输出处理 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; getchar…… 题解列表 2021年12月27日 0 点赞 0 评论 119 浏览 评分:0.0
ac代码 欢迎赐教 JAVA 摘要:由于输入n之后会在存入一个回车 所以输出是要从i==1时开始。 import java.util.Arrays; import java.util.Scanner; public c…… 题解列表 2021年11月27日 0 点赞 0 评论 278 浏览 评分:0.0
如何避免使用gets来解决本问题 摘要:解题思路:用fgets和puts函数开搞定前n行的原样输出。用scanf来搞定n行后的输出注意事项:参考代码:#include <stdio.h>#define SIZE 1000int main()…… 题解列表 2021年11月08日 0 点赞 1 评论 492 浏览 评分:8.0
想的太复杂了 摘要:解题思路:看了题解才知道我是多么的蠢,加油加油,学起来.写的时候大家一定要注意输出格式不要出错了就行!参考代码:#include<iostream>using namespace std;#inclu…… 题解列表 2021年11月04日 0 点赞 0 评论 271 浏览 评分:0.0
字符串的处理方法 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string.h>using namespace std;int main() { int n; scanf("…… 题解列表 2021年10月26日 0 点赞 0 评论 157 浏览 评分:0.0
一个getline实现(字符串输入流构造分割函数)C++实现 摘要:解题思路:分开两组进行输入,使用字符串输入流istringstream构造输入流对字符进行分割,做一个相当于Java和python里面的split函数一样的函数对字符进行分割。注意事项:注意每个数据之…… 题解列表 2021年10月18日 0 点赞 0 评论 1040 浏览 评分:9.9
字符串的输入输出处理 摘要:解题思路:while (gets(str) != NULL)用来进行判断是否输入结束注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){…… 题解列表 2021年10月14日 0 点赞 0 评论 161 浏览 评分:0.0
编写题解 1094: 字符串的输入输出处理 摘要:解题思路:注意事项: getchar(); //缓存输入的回车 while(scanf("%s",b)!=EOF)//终端输入时,Ctrl+Z时为死循环参…… 题解列表 2021年09月19日 0 点赞 3 评论 381 浏览 评分:6.0
题解 1094: 字符串的输入输出处理 摘要:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[1001]; int n; scanf("%d",&n); …… 题解列表 2021年07月23日 0 点赞 0 评论 222 浏览 评分:0.0
一次性输出-字符串的输入输出处理-题解(C语言代码) 摘要:解题思路://getchar()用来读取输入整数后缓存区中的回车 //带空格输入用gets(),输出用puts()注意事项:参考代码:#include<stdio.h> int main(){ …… 题解列表 2021年04月08日 0 点赞 0 评论 669 浏览 评分:8.4