编程小鹏
编程小鹏
全部文章
分类
题解(72)
归档
标签
去牛客网
登录
/
注册
编程小鹏的博客
TA的专栏
5篇文章
0人订阅
算法刷题笔记Java
5篇文章
291人学习
全部文章
(共115篇)
题解 | #友元类#
#include<bits/stdc++.h> using namespace std; class phone{ // write your code here...... friend class myphone;//声明为友元类 private: int price; ...
C++
2022-04-06
0
206
题解 | #确定哪些订单购买了 prod_id 为 BR01 的产品(一)#
select cust_id,order_date from Orders where order_num in( select order_num from OrderItems where prod_id='BR01' ) order by order_date asc;
Mysql
2022-04-03
0
238
题解 | #数组类的拷贝构造函数#
#include<bits/stdc++.h> using namespace std; class Array{ private: int n;//数组大小 int *a;//数组 public: Array(){ cin>>n; a=new...
C++
2022-04-02
3
306
题解 | #浅拷贝和深拷贝#
#include <iostream> #include <cstring> #pragma warning(disable : 4996) using namespace std; class Person { public: char* nam...
C++
2022-04-02
0
186
题解 | #数组类的构造函数#
#include<bits/stdc++.h> using namespace std; class Array{ private: int n;//数组大小 int *a;//数组 public: // write your code here...... ...
C++
2022-04-02
11
260
题解 | #构造函数#
#include <iostream> #include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 i...
C++
2022-04-02
0
239
题解 | #计算总和#
select order_num,sum(item_price*quantity) as total_price from OrderItems /* where条件语句后面不能加聚合函数(分组函数) having 不能单独使用,必须和group by 联合使用 */ group by order...
Mysql
2022-04-02
0
205
题解 | #长方形的关系#
this指针的使用 #include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ lengt...
C++
2022-04-02
0
287
题解 | #比较长方形的面积大小#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; wi...
C++
2022-04-02
1
234
题解 | #点和圆的关系#
#include <iostream> using namespace std; #include<cmath> // 点类 class Pointer { private: int x; // x 坐标 int y; // y ...
C++
2022-04-02
0
234
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页