后海大鲨鱼啊
后海大鲨鱼啊
全部文章
未归档
java (3)
信息管理系统(1)
函数模版(1)
剑指offer试题(2)
快速排序(1)
读书笔记(1)
过滤算法(1)
题解(4)
归档
标签
去牛客网
登录
/
注册
奥利给
全部文章
/ 未归档
(共48篇)
编写 一个程序, 输入N个学生数据,包括学号,姓名,成绩,要求输出这些学生数据并计算平均分
#include<bits/stdc++.h> using namespace std; class Student { private: int no; char name[10]; int deg; static i...
2019-03-20
0
741
c++定义结构体对学生成绩排序
#include <iostream> #include<bits/stdc++.h> #include<cstdlib> using namespace std; struct Student { char name[20]; int numbe...
2019-03-19
0
540
c++编写函数实现字符串中指定字符位置插入字符串
#include <iostream> #include<bits/stdc++.h> using namespace std; //定义一个void函数,有三个参数,分别是s1,s2,ch,要在s1里面找到ch,插入s2; void insert(char s1[],cha...
2019-03-14
0
366
c++利用指针求回文字符
#include <iostream> #include<bits/stdc++.h> using namespace std; int main() { //定义一个字符串,两个字符指针,然后输入字符串,给指针赋初值 char str[128], *p1, *p2...
2019-03-14
0
267
用函数指针编写函数求两个数的最大最小值
#include<bits/stdc++.h> using namespace std; int max(int a,int b) { return a>b?a:b; } int min(int a,int b) { return a<b?a:b; } int...
2019-03-14
0
288
c++数组矩阵 矩阵元素根据主次对角线进行交换
#include<bits/stdc++.h> using namespace std; int main() { int i,j,t; int p[100][100]; for(i=0;i<3;i++) { for(j=0;j<...
2019-03-14
0
741
c++通过指针来实现数组的关系最大值,最小值,平均值
#include<iostream> #include<string> #include<bits/stdc++.h> using namespace std; int main() { int a[1000]; int *p; p=a; ...
2019-03-14
0
354
动态分配内存与释放内存c++
#include<iostream> #include<string> #include<bits/stdc++.h> using namespace std; int main() { int *p= new int;//动态创建一个变量 cin...
2019-03-12
0
307
c++通过三种方法(字符数组,字符串指针,移动指针)变换大小写
#include<iostream> #include<string> #include<bits/stdc++.h> using namespace std; int main() { cout<<"使用字符数组:"<...
2019-03-12
0
357
c++用指针将一个一维数组进行元素反转
#include<iostream> #include<string> using namespace std; int main() { int array[10]={3,7,4,1,2,6,5,8,9,10}; for(int i=0;i<10;i++)...
2019-03-12
0
399
首页
上一页
1
2
3
4
5
下一页
末页