码迷,mamicode.com
首页 >  
搜索关键字:amp    ( 86777个结果
曾经写的一个程序
#include #include #define N 2 double mianji(double x1,double y1,double x2,double y2,double x3,double y3);//计算三角形面积 double getLength(double a1,double b1,double a2,double b2);//计算两点之间的距离 double getShor...
分类:其他好文   时间:2014-08-01 19:49:42    阅读次数:284
优美的方框
#include void diaoyong(int q) { int o,i,p; p=q; i=0; while(i<p) { printf("* "); i++; } printf("\n"); for(i=0;i<p-2;i++) { printf("*"); for(o=0;o<2*p-3;o++) printf(" "); ...
分类:其他好文   时间:2014-08-01 19:47:52    阅读次数:230
蛇形数 【第二种类型】
#include #include #define N 100 int a[N][N]; int main() {  int i,j,k,t,m,n;  memset(a,0,sizeof(a));  while(~scanf("%d",&n)){   t=1;   k=1;   for(i=1;i   {    for(j=1;j    {     if(t==1)...
分类:其他好文   时间:2014-08-01 19:46:32    阅读次数:174
复习--F - Earth Hour(最短路,连接1 2 3个点)
F - Earth Hour Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description Earth Hour is an annual international event created by the WWF (Wo...
分类:其他好文   时间:2014-08-01 19:40:32    阅读次数:344
16进制转化为2进制 【位运算】
#include int  main() {    int i,a;      while (~scanf("%x", &a)){            for(i=15;i>=0;i--)                 printf("%1d", a&1            printf("\n");      }return 0; }...
分类:其他好文   时间:2014-08-01 19:40:22    阅读次数:182
server 2008 64位安装Rational错误
Administrator has detected that this is a terminal server session.Administrator does not support running in this environment. Click OK to exit.解决办法htt...
分类:其他好文   时间:2014-08-01 19:37:22    阅读次数:181
jQuery 中get 和post 方法传值注意事项
用 jQuery 的都知道,jQuery 的 get 和 post 方法有三个参数:地址,数据 和回调函数,但我们知道地址也可以跟随数据的(形如:get_data.php?v1=1&v2=2),而且第二个参数可以省略,即第二个参数可 以直接写回调函数,那么数据写在地址后面和写在 data 参数里有什...
分类:Web程序   时间:2014-08-01 19:30:52    阅读次数:237
gcc/g++基本命令简介
原文地址gcc & g++现在是gnu中最主要和最流行的c & c++编译器 。g++是c++的命令,以.cpp为主,对于c语言后缀名一般为.c。这时候命令换做gcc即可。其实是无关紧要的。其实编译器是根据gcc还是g++来确定是按照C标准还是C++标准编译链接。下面以Test.cpp为例:命令: ...
分类:其他好文   时间:2014-08-01 19:23:42    阅读次数:150
MFC下对串口的操作以及定时器的调用
最近研究了一下MFC下对串口的操作,测试了一下对设备的读写。1.打开串口 1 GetDlgItem(IDC_BUTTON_OPEN)->EnableWindow(FALSE); 2 m_hComm = CreateFile("COM1", 3 GENERIC_READ...
分类:其他好文   时间:2014-08-01 19:17:42    阅读次数:263
*母牛的故事
Problem Description有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?Input输入数据由多个测试实例组成,每个测试实例占一行,包括一个整数n(0int main(){ int n,s[100],...
分类:其他好文   时间:2014-08-01 19:16:32    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!