唐境
唐境
全部文章
分类
归档
标签
去牛客网
登录
/
注册
唐境的博客
全部文章
(共18篇)
题解 | #牛牛的链表添加节点#
#include<stdio.h> #include<stdlib.h> #include<assert.h> typedef struct node { int nval; struct node* next; }node; node* creat(int ...
2022-12-31
0
288
题解 | #牛牛的链表删除#
#include<stdio.h> #include<stdlib.h> #include<assert.h> typedef struct node { int nval; struct node* next; }node; node* creat(int ...
2022-12-31
0
320
题解 | #重载小于号#
#include <iostream> using namespace std; class Time { private: int hours; int minutes; public: Time(int x,int y):hours(x),minutes(y...
2022-12-30
0
280
题解 | #重载小于号#
#include <iostream> using namespace std; class Time { private: int hours; int minutes; public: Time(int x,int y):hours(x),minutes(y...
2022-12-30
0
253
题解 | #长方形的关系#
#include <iostream> using namespace std; class cube { private: int h; int w; public: cube(int x,int y):h(x),w(y){} void compare...
2022-12-30
0
242
题解 | #浅拷贝和深拷贝#
#include <iostream> #include <string> using namespace std; class Person { private: string name; int age; public: Person(strin...
2022-12-29
0
274
题解 | #构造函数#
#include <iostream> #include <string> using namespace std; class Person { private: string name; int age; public: Person(strin...
2022-12-29
0
218
题解 | #编写函数实现两数交换(指针方式)#
#include <iostream> using namespace std; void change(int* p1,int*p2) { int temp=*p1; *p1=*p2; *p2=temp; } int main() { int a,b; ...
2022-12-28
0
268
题解 | #比较字符串大小#
#include <iostream> using namespace std; int mystrcmp(const char * src, const char * dst) { const char* p1=src; const char* p2=dst; ...
2022-12-28
1
317
题解 | #数组元素处理#
#include <iostream> using namespace std; void func(int* p, int n) { int count = 0; for (int i = 0; i < 6; i++) { if (*(p + i)...
2022-12-28
0
254
首页
上一页
1
2
下一页
末页