码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
实验三——张翼飞
实验任务一: // 生成N个0~99之间的随机整数,并打印输出 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int x, n; srand(time(0)); // 以当前系统时间 ...
分类:其他好文   时间:2021-04-14 12:11:43    阅读次数:0
vue数据劫持
var Book = {} var name = ''; Object.defineProperty(Book, 'name', { set: function (value) { name = value; console.log('你取了一个书名叫做' + value); }, get: fun ...
分类:其他好文   时间:2021-04-14 11:55:37    阅读次数:0
实验三
// 生成N个0~99之间的随机整数,并打印输出 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int x, n; srand(time(0)); // 以当前系统时间作为随机种子 ...
分类:其他好文   时间:2021-04-13 12:30:05    阅读次数:0
Codeforces Round #713 (Div. 3) 题解
本场链接:Codeforces Round #713 (Div. 3) A. Spy Detected! #include <bits/stdc++.h> using namespace std; typedef long long ll; #define forn(i,x,n) for(int i ...
分类:其他好文   时间:2021-04-12 12:42:16    阅读次数:0
用c语言,制作一个心形彩色告白图案(附源码)
今天我们来一个好玩的,用c语言,制作一个心形彩色告白图案。 送给c语言初学者 心形彩色代码代码: #include<stdio.h> #include<math.h> #include<windows.h> #include<time.h> #define u 0.1 #define v 0.053 ...
分类:编程语言   时间:2021-04-10 13:07:14    阅读次数:0
C语言实现“三子棋”游戏
我们在game.h文件里进行函数声明: #define ROW 3 #define COL 3 #include <stdio.h> #include <stdlib.h> #include <time.h> //函数声明 void InitBoard(char board[ROW][COL], i ...
分类:编程语言   时间:2021-04-08 13:09:38    阅读次数:0
职工管理系统---写文件
需要在.h文件中增加save()函数 //保存文件 void save(); 注意上面要写头文件 #include<fstream> #define FILENAME "empfile.txt" 在.cpp文件中编写该函数 void workManager::save() { ofstream of ...
分类:其他好文   时间:2021-04-07 11:45:58    阅读次数:0
C++线程池实现-代码分析
废话不多说,请见注释 1 #ifndef THREAD_POOL_H 2 #define THREAD_POOL_H 3 4 #include <vector> 5 #include <queue> 6 #include <memory> 7 #include <thread> 8 #include ...
分类:编程语言   时间:2021-04-07 11:11:41    阅读次数:0
#SG函数#HDU 1848 Fibonacci again and again
题目 分析 可取状态只能是斐波那契数,求出SG函数 然后判断三个数sg函数异或和不为0先手必胜 代码 #include <cstdio> #include <cctype> #define rr register using namespace std; const int p[15]={1,2,3 ...
分类:其他好文   时间:2021-04-07 10:55:22    阅读次数:0
Codeforces Round #712 (Div. 2)(A~C)
A. Déjà Vu 本题的思路是找一个位置使得新添加的a所对应的字符不是a即可。 AC代码如下(可能写复杂了): #include<bits/stdc++.h> #define MAXN 300005 using namespace std; typedef long long ll; int t ...
分类:其他好文   时间:2021-04-06 14:48:59    阅读次数:0
25272条   上一页 1 ... 13 14 15 16 17 ... 2528 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!