编程小鹏
编程小鹏
全部文章
分类
题解(72)
归档
标签
去牛客网
登录
/
注册
编程小鹏的博客
TA的专栏
5篇文章
0人订阅
算法刷题笔记Java
5篇文章
291人学习
全部文章
(共115篇)
题解 | #设计立方体类#
#include <iostream> using namespace std; class Cube { // write your code here...... private://成员变量一般不允许外界直接访问 int length; int widt...
C++
2022-04-02
0
197
题解 | #编写函数实现字符串翻转(引用方式)#
#include<bits/stdc++.h> using namespace std; // write your code here...... void reverse_string(string & s) { int len=s.length(); for...
C++
2022-04-02
5
278
题解 | #编写函数实现两数交换(引用方式)#
#include <iostream> using namespace std; // write your code here...... void swap_int(int &a,int &b) { int temp=a; a=b; b=te...
C++
2022-04-02
0
173
题解 | #返回订单数量总和不小于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...
Mysql
2022-04-01
0
161
题解 | #使用字符函数统计字符串中各类型字符的个数#
#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str);//getline(cin,str)输入字符串效率...
C++
2022-04-01
0
227
题解 | #统计字符串中子串出现的次数#
#include <iostream> #include <cstring> using namespace std; #include<algorithm> int main() { char str[100] = { 0 }; char su...
C++
2022-04-01
0
337
题解 | #编写函数实现两数交换(指针方式)#
#include <iostream> using namespace std; // write your code here...... void swap_int(int *p,int *q) { int temp=*p; *p=*q; *q=temp; ...
C++
2022-04-01
0
164
题解 | #比较字符串大小#
#include <iostream> using namespace std; #include<cstring> int mystrcmp(const char* src, const char* dst); int main() { char s1[100]...
C++
2022-04-01
0
231
题解 | #数组元素处理#
#include <iostream> using namespace std; void func(int* p, int n); int main() { int arr[6] = { 0 }; for (int i = 0; i < 6; i++) { ...
C++
2022-04-01
0
194
题解 | #盒模型 - content-box#
{"css":"","js":"","html":"\n\n \n \n <style type="text/css">\n * {\n margin: 0;\n padd...
HTML/CSS/JavaScript
2022-03-31
0
321
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页