莉露编写题解 2849: 石头剪子布
摘要:解题思路:一看就知道注意事项:用scanf最方便判断时只看首字母即可。参考代码:#include<stdio.h>#include<string.h>#define MAX 1……
2849:石头剪刀布
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); char player1[……
2025/8/11刷题记录
摘要:解题思路:strcmp比较两个字符串是否相等 相等输出0 s==“”这种写法不存在注意事项:参考代码:#include <stdio.h>#include <……
c语言string解法
摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){ int N; char S1[50],S2[……
c代码记录之石头剪子布
摘要: #include
#include
int cq(char str1[],char str2[]){
if((str1[0]=='R'&&st……
石头剪刀布 简单易懂(来个五星兄弟们)!!!!
摘要:解题思路:石头剪刀布的长度不同 所以用strlen 区分注意事项:简单易懂兄弟们 不懂可以私信我参考代码:#include<stdio.h>#include<string.h>int main(voi……
石头剪子布(不难,就是麻烦)
摘要:解题关键:
strcmp() 字符串比较函数
头文件为#include
strcmp(s1,s2)
若s1==s2,则返回0
若s1>s2,则返回大于0的值
若s1……
2849: 石头剪子布(C语言)
摘要: #include
#include//主函数中使用了strcmp函数
int main()
{
int N;
scanf("%d",&N);
for(int i=0;i……