题解 2922:合影效果(看我看我,易懂) ```c#include#include#includetypedefstructpeople{charsex[7];floatheight;}stu;intmain(){stu*x;//开辟一段空间intn,flag1=0,flag2=0;//flag1代表男生计数, 题解列表 2023年12月16日 0 点赞 0 评论 529 浏览 评分:9.9
合影效果(分两个数组来做) 摘要:解题思路:分两个数组,一个数组存男生,一个数组存女生,用strcmp判断男女注意事项:参考代码:#include<stdio.h> #include<string.h> int main() {…… 题解列表 2023年10月12日 0 点赞 0 评论 551 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct people{ char sex[7]; …… 题解列表 2023年06月16日 0 点赞 0 评论 476 浏览 评分:9.9
编写题解 2922: 合影效果 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct xs { char sex[20]; float h;};struct xs x[100];struct xs male[…… 题解列表 2023年06月03日 0 点赞 0 评论 625 浏览 评分:0.0
2922: 合影效果 ```cpp#include#include#includeusingnamespacestd;typedefstructM{strings;floath;}S;boolcmp(Sa,Sb){if(a.s!=b.s)returna.s>b.s;elseif(a.s==b.s&&a.s=="male") 题解列表 2022年12月02日 0 点赞 0 评论 582 浏览 评分:9.9
编写题解 2922: 合影效果,写的太差了,望指正 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>typedef struct{ char xb[8]; float high;}stu;…… 题解列表 2022年11月24日 0 点赞 0 评论 673 浏览 评分:9.9
结构体sort排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct M{ string s; float …… 题解列表 2022年11月03日 0 点赞 0 评论 608 浏览 评分:0.0