码迷,mamicode.com
首页 >  
搜索关键字:real    ( 2619个结果
实验二
1.编写重载函数add(),实现对int型,double型,Complex型数据的加法。在main()函数中定义不同类型 数据,调用测试。 #include <iostream> using namespace std; struct complex{ double real; double ima ...
分类:其他好文   时间:2019-03-24 23:27:41    阅读次数:177
实验二
重载函数 #include <iostream> using namespace std; struct complex { double real; double imaginary; }; int add(int x1, int y1) { return x1 + y1; } double ad ...
分类:其他好文   时间:2019-03-24 21:36:53    阅读次数:128
Linux下实现定时器Timer的几种方法
使用sleep()和usleep() 其中sleep精度是1秒,usleep精度是1微妙,具体代码就不写了。使用这种方法缺点比较明显,在Linux系统中,sleep类函数不能保证精度,尤其在系统负载比较大时,sleep一般都会有超时现象。 使用信号量SIGALRM + alarm() 这种方式的精度 ...
分类:系统相关   时间:2019-03-24 11:08:54    阅读次数:226
TKmath Package gp数据类型
点,向量,方向 二维:gp_Pnt2d, gp_Vec2d, gp_Dir2d;它们的内部都存储 gp_XY 三维:gp_Pnt, gp_Vec, gp_Dir;它们的内部都存储 gp_XYZ 轴向与坐标系统 gp_Ax2d 二维空间的轴向,内部存储为 gp_Pnt2d, gp_Dir2d。 gp_ ...
分类:其他好文   时间:2019-03-23 13:24:12    阅读次数:152
实验二
编写重载函数add(),实现对int型,double型,Complex型数据的加法。在main()函数中定义不同类型 数据,调用测试。 【运行截图】 编写实现快速排序函数模板,并在main()函数中,定义不同类型数据,调用测试。 【运行截图】 类的定义、实现和使用编程练习 设计并实现一个用户类Use ...
分类:其他好文   时间:2019-03-22 22:52:58    阅读次数:168
LVS实现负载均衡安装配置详解
实践LVS/NAT模式 1、实验环境 三台服务器,一台作为 director,两台作为 real server,director 有一个外网网卡(172.16.254.200) 和一个内网ip(192.168.0.8),两个 real server 上只有内网 ip (192.168.0.18) 和 ...
分类:其他好文   时间:2019-03-22 16:59:40    阅读次数:169
1013. Pairs of Songs With Total Durations Divisible by 60
time =1 and = 2 and sum 500) continue; if (counter[target] != 0) ret += counter[target]; } counter[time[i]] += 1; } return ret; } } java public int nu ...
分类:其他好文   时间:2019-03-21 00:51:00    阅读次数:248
c++实验二
1、函数重载编程练习 #include<iostream>using namespace std;struct Complex {double real;double imaginary;};int add(int, int);double add(double,double);Complex ad ...
分类:编程语言   时间:2019-03-19 01:15:45    阅读次数:153
HDU 3292 【佩尔方程求解 && 矩阵快速幂】
任意门:http://acm.hdu.edu.cn/showproblem.php?pid=3292 No more tricks, Mr Nanguo Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/ ...
分类:其他好文   时间:2019-03-17 23:48:07    阅读次数:229
L291
If you are currently in the midst of planning a wedding, then I don't need to tell you how stressful it can be. Honestly, I thought about eloping prob ...
分类:其他好文   时间:2019-03-16 09:22:15    阅读次数:140
2619条   上一页 1 ... 61 62 63 64 65 ... 262 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!