码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
C - The C Answer (2nd Edition) - Exercise 1-5
/* Modify the temperature conversion program to print the table in reverse order, that is, from 300 degrees to 0. */ #include /* print Fahrenheit-Celsius table in reverse order */ main() { int...
分类:其他好文   时间:2015-07-11 20:16:44    阅读次数:164
用C++实现最小公倍数和最大公约数
#include using namespace std; int main(void) { int x, y, num1, num2, temp; printf("请输入两个正整数:\n"); scanf("%d %d", &num1, &num2); if(num1 < num2)//交换 { num1^=num2;...
分类:编程语言   时间:2015-07-11 20:16:33    阅读次数:140
第几年 习题
/*题目:输入某年某月某日,判断这一天是这一年的第几天?*/ /*把这几个月份加起来再加上这个天数*/ #include<stdio.h> #define ER(a) ((a)%4==0&&(a)%100!=0||(a)%400==0) #define N 12 int main(void) { stru...
分类:其他好文   时间:2015-07-11 20:16:19    阅读次数:118
C - The C Answer (2nd Edition) - Exercise 1-4
/* Write a program to print the corresponding Celsius to Fahrenheit table. */ #include /* print Celsius-Fahrenheit table for celsius = 0, 20, ..., 300; floating-point version */ main() { float...
分类:其他好文   时间:2015-07-11 20:14:23    阅读次数:176
【SHOI 2008】【BZOJ 1018】堵塞的交通traffic
发现很多有关区间联通问题的题线段树都可以做,不论是1列还是2列。这题的易错点在于两个端点x,yx,y之间的可行路径不一定在区间[x,y][x,y]之间,有可能是从其他区间绕过来的,想明白这一点,区间的更新又与1列的情况基本类似,这题就很好做了。 code:#include #include #include #include<algorithm...
分类:其他好文   时间:2015-07-11 18:36:28    阅读次数:165
Eclipse + CDT引入OpenCV失败的解决办法
Android JNI开发中用到了OpenCV,因为想通过JNI实现,就没有去用Android层的Lib引用。但是操作中发现在.cpp文件里include的时候发现“#include ”(opencv.hpp在opencv2下面)报了个警告说“fatal error: opencv.hpp: No such file or directory”,说没有找到文件,我就纳闷了,我明明在包含关系中设置了...
分类:系统相关   时间:2015-07-11 18:32:24    阅读次数:373
C - The C Answer (2nd Edition) - Exercise 1-1
/* Run the "hello, world" program on your system. Experiment with leaving out parts of the program to see what error messages you get. */ #include main() { printf("hello world\n"); }...
分类:其他好文   时间:2015-07-11 18:31:13    阅读次数:107
C - The C Answer (2nd Edition) - Exercise 1-2
/* Experiment to find out what happens when printf's argument string contains \c, where c is some character not listed above. */ #include main() { printf("hello world\y"); printf("hello wor...
分类:其他好文   时间:2015-07-11 18:27:26    阅读次数:137
C - The C Answer (2nd Edition) - Exercise 1-3
/* Modify the temperature conversion program to print a heading above the table. */ #include /* print fahrenheit-Celsius table for fahr = 0, 20, ..., 300; floating-point version */ main() { fl...
分类:其他好文   时间:2015-07-11 18:26:47    阅读次数:147
C++控制台贪吃蛇代码
游戏截图:以下是3个代码文件:Snake_Class.h文件:1 #ifndef SNAKE 2 #define SNAKE 3 4 #include 5 #include 6 #include 7 8 //标记界面和菜单项的ID 9 enum ID_ { ID_1=1, ID_2, ID_3,.....
分类:编程语言   时间:2015-07-11 18:16:56    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!