码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
利用define对结构体成员赋值
可以使用宏定义方式对结构体成员进行赋值。 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct{ struct { int n1; int n2; } data; int n3; }n_t; #define ...
分类:其他好文   时间:2020-11-25 12:35:44    阅读次数:4
如何直接跳出多重循环
珠心算p2141灵感: #include<bits/stdc++.h> using namespace std; int s[101]; int x=0; int main(){ int t=0; int n; cin>>n; for(int i=0;i<n;i++){ cin>>s[i]; } f ...
分类:其他好文   时间:2020-11-25 12:25:50    阅读次数:4
test
C++ 内联函数 #include <iostream> using namespace std; inline int Max(int a, int b) { if (a > b) return a; else return b; } int main() { cout << Max(23, 5) ...
分类:其他好文   时间:2020-11-25 12:08:44    阅读次数:2
lex和yacc学习
main.h文件 #ifndef MAIN_HPP #define MAIN_HPP #include <iostream>//使用C++库 #include <string> #include <stdio.h>//printf和FILE要用的 using namespace std; /* * ...
分类:其他好文   时间:2020-11-24 13:01:44    阅读次数:22
rsa_gmp
#include <string.h> #include <stdlib.h> #include <stdio.h> #include "gmp.h" #define MILLER_RABIN_TEST_NUM 5 #define PRIME_BIT 512 #define CLOCKS_PER_S ...
分类:其他好文   时间:2020-11-24 12:38:56    阅读次数:6
改变图片大小与格式,adb
#include<stdio.h> #include<windows.h> #include<graphics.h> #include<atlimage.h> int main() { //system("adb pull /sdcard/screen.png"); //system("adb sh ...
分类:数据库   时间:2020-11-24 12:38:06    阅读次数:10
板子-__int128
__int128 是比 long long 还要大的数据类型(\(max = 2^{128}-1\)) 其输入和输出不能用常规方法,用 read() 和 write() 函数代替 #include<bits/stdc++.h> using namespace std; __int128 read(i ...
分类:其他好文   时间:2020-11-24 12:37:39    阅读次数:6
memmove库函数模拟实现
//第一次尝试:#include<stdio.h> #include<stdlib.h> void* myMemmove(void* destin, const void* source,size_t num) { if (destin == NULL || source == NULL) { re ...
分类:其他好文   时间:2020-11-24 12:25:30    阅读次数:7
实验三
#include<math.h> #include<stdio.h> int main(){ float a,b,c,x1,x2; float delta,real,imag; printf("Enter a,b,c:"); while(scanf("%f%f%f",&a,&b,&c)!=EOF){ ...
分类:其他好文   时间:2020-11-24 12:17:23    阅读次数:9
2020计算机C语言
8 1 #include<stdio.h> 2 int num[100]; 3 int main() 4 { 5 int x; 6 int cnt = 0; 7 scanf("%d", &x); 8 while(x) { 9 num[++cnt] = x % 10; 10 x = x / 10; 1 ...
分类:编程语言   时间:2020-11-24 12:15:10    阅读次数:9
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!