bcxp
bcxp
全部文章
题解
归档
标签
去牛客网
登录
/
注册
bcxp的博客
全部文章
/ 题解
(共72篇)
题解 | #返回订单数量总和不小于100的所有订单的订单号#
select order_num from OrderItems -- 顺序:where group by order by /* where quantity>=100 group by order_num order by order_num; */ group by order_num...
2022-04-01
0
262
题解 | #使用字符函数统计字符串中各类型字符的个数#
#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str);//getline(cin,str)输入字符串效率...
2022-04-01
0
301
题解 | #统计字符串中子串出现的次数#
#include <iostream> #include <cstring> using namespace std; #include<algorithm> int main() { char str[100] = { 0 }; char su...
2022-04-01
0
435
题解 | #编写函数实现两数交换(指针方式)#
#include <iostream> using namespace std; // write your code here...... void swap_int(int *p,int *q) { int temp=*p; *p=*q; *q=temp; ...
2022-04-01
0
247
题解 | #比较字符串大小#
#include <iostream> using namespace std; #include<cstring> int mystrcmp(const char* src, const char* dst); int main() { char s1[100]...
2022-04-01
0
314
题解 | #数组元素处理#
#include <iostream> using namespace std; void func(int* p, int n); int main() { int arr[6] = { 0 }; for (int i = 0; i < 6; i++) { ...
2022-04-01
0
269
题解 | #盒模型 - content-box#
{"css":"","js":"","html":"\n\n \n \n <style type="text/css">\n * {\n margin: 0;\n padd...
2022-03-31
0
392
题解 | #复制部分字符串#
#include <iostream> using namespace std; int main() { char str[30] = { 0 }; cin.getline(str, sizeof(str)); int m; cin >>...
2022-03-31
0
238
题解 | #获取字符串长度#
#include <iostream> using namespace std; int main() { char str[100] = { 0 }; cin.getline(str, sizeof(str)); //cin.getline(str,sizeof(s...
2022-03-31
0
262
题解 | #移除数组中的元素#
{"css":"","js":"function remove(arr, item) {\n var arr1=[];\n for(var i=0;i<arr.length;i++)\n {\n if(arr[i]!=item)\n ...
2022-03-31
0
276
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页