码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
Win32 进程操作
创建线程 #include<iostream> #include<windows.h> using namespace std; DWORD WINAPI PROCESST1(LPVOID param); DWORD WINAPI PROCESST2(LPVOID param); DWORD WIN ...
分类:Windows程序   时间:2021-04-20 15:05:36    阅读次数:0
c++面向对象实验五
定义一个学生类,包含学号、姓名、成绩等属性。(1)使用重载函数定义多个构造函数。(2)使用默认参数定义构造函数。 #include<iostream> #include<string> using namespace std; class Student { public: Student(){ n ...
分类:编程语言   时间:2021-04-20 14:48:10    阅读次数:0
(第二课)c++语句
#include <iostream> //预处理器编译指令#include int main(void) //函数头 { //函数体开始{ using namespace std; //编译指令 int apple; //声明整数变量 apple = 25; //赋值变量 cout << "我有" ...
分类:编程语言   时间:2021-04-20 14:29:02    阅读次数:0
2017省赛A第4题
参考文章 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int X[] = {0, -1, 1, 0, 0}; 5 int Y[] = {0, 0, 0, -1, 1}; 6 7 bool vis[10][10]; 8 int res = ...
分类:其他好文   时间:2021-04-20 14:10:10    阅读次数:0
十大经典排序之堆排序(C++实现)
#堆排序 通过将无序表转化为堆,可以直接找到表中最大值或者最小值,然后将其提取出来,令剩余的记录再重建一个堆, 取出次大值或者次小值,如此反复执行就可以得到一个有序序列,此过程为堆排序。 思路: 1.创建一个堆 H[0……n-1]; 2.把堆首(最大值)和堆尾互换; 3.把堆的尺寸缩小 1,并调用 ...
分类:编程语言   时间:2021-04-20 14:08:43    阅读次数:0
「图论」第2章 最小生成树课堂过关
「图论」第2章 最小生成树课堂过关 A. 【例题1】繁忙都市 题目 代码 prim #include <iostream> #include <cstdio> #include <cstring> using namespace std; #define N 310 #define M 200010 ...
分类:其他好文   时间:2021-04-19 16:02:22    阅读次数:0
vector容器 单端数组、动态数组
1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 using namespace std; 6 7 void test01() 8 { 9 vector<int> v; 10 for( ...
分类:编程语言   时间:2021-04-19 15:55:39    阅读次数:0
DP-最大上升序列
进入题目 思路(代码主体) sum[i]=max(sum[i],sum[j]+m[i]) 代码 #include <iostream> #include <cstdio> #include <vector> using namespace std; int main() { int n,Max=0; ...
分类:其他好文   时间:2021-04-19 15:26:22    阅读次数:0
最省路径(异或优化建图)
#####此题我要讲一种异或优化建图 题意:某国有N座城市,编号从1到N。 (N<=1e5 , M<=5e5) 该国的交通工具主要有飞机和高铁两种对于任意的两座城市 i 和 j ,人们可以花费( i xor j ) * C 块钱从城市 i 坐飞机到城市 j ,这里 C 为该国规定的费用常数。该国有 ...
分类:其他好文   时间:2021-04-19 15:01:49    阅读次数:0
C语言:赋值
#include <stdio.h> //赋值号=,具有方向性,只能将赋值号右边的表达式的值给左边的变量 //赋值语句具有计算功能,赋值号右边可以是常量,变量或表达式都可以 //赋值就是将表达式的值存入一段连续的具有若干个存储单元的存储空间,存储空间的名称就是变量名 //没有赋值的变量,其值是不确定 ...
分类:编程语言   时间:2021-04-16 11:48:01    阅读次数:0
41627条   上一页 1 ... 18 19 20 21 22 ... 4163 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!