/*
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
#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
/*
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
发现很多有关区间联通问题的题线段树都可以做,不论是1列还是2列。这题的易错点在于两个端点x,yx,y之间的可行路径不一定在区间[x,y][x,y]之间,有可能是从其他区间绕过来的,想明白这一点,区间的更新又与1列的情况基本类似,这题就很好做了。
code:#include
#include
#include
#include<algorithm...
分类:
其他好文 时间:
2015-07-11 18:36:28
阅读次数:
165
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
/*
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
/*
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
/*
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
游戏截图:以下是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