题解列表
多余的string函数
摘要:解题思路:#include<stdio.h>
#include<string.h>
int main(void)
{
char a[100];
gets(a);
i……
自定义函数之字符串连接
摘要:#include<stdio.h>
int main(void)
{
char a[100];
char b[100];
char temp[100];
i……
坐标排序(构建对象去处理坐标数据)
摘要:解题思路:
- 既然用的C++,那就不用结构体去处理了,构建一个对象去处理,顺便使用构造函数去处理输入
- 将对象存入vector容器,再去排序,排序用的就是sort,想看手写快排的话,那放在这下……
选择排序的大材小用(不要学我)
摘要:#include<stdio.h>
#include<string.h>
int main(void)
{
char a[3][100], temp[100];
int fl……
从后面移动,并保存消失的后面
摘要:解题思路:#include<stdio.h>
int main(void)
{
int i, j, n, a[100], move;
scanf("%d", &n);
……