相关分类: Java技术 C/C++ VB delphi
  • 智能指针 auto_ptr、scoped_ptr、shared_ptr、weak_pt

    什么是RAII? RAII是Resource Acquisition Is Initialization的简称,是C++语言的一种管理资源、避免泄漏的惯用法。 RAII又叫做资源分配即初始化,即:定义一个类来封装资源的分配和释放,在构造函数完成资源的分配和初始化,在析构函数完成资源的清理,可以保证资源的...

    2018-06-17 23:57:56 C++语言

  • MFC界面皮肤库

    用于MFC的皮肤库,内有近50种皮肤 链接:http://pan.baidu.com/s/1nvGUmQP...

    2018-06-17 23:57:57

  • c++矩阵运算库Eigen

    Eigen 的简介和下载安装 最近因为要写机械臂的运动学控制程序,因此难免就要在C++中进行矩阵运算。然而C++本身不支持矩阵运算,Qt库中的矩阵运算能力也相当有限,因此考虑寻求矩阵运算库Eigen的帮助。 Eigen是一个 C++线性运算的模板库:他可以用来完成矩阵,向量,数...

    2018-06-17 23:57:34

  • 377. Combination Sum IV

    问题 Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. Example: nums = [1, 2, 3] target = 4 The possible combination ways are: (1, 1, 1, 1) (1, 1, 2...

    2018-06-17 23:57:07

  • 快速幂取模_C++

    一、题目背景 已知底数a,指数b,取模值mo 求ans = a b % mo 二、朴素算法(已知可跳过) ans = 1,循环从 i 到 b ,每次将 ans = ans * a % mo 时间复杂度O(b) 1 void power( int a, int b, int mo) 2 { 3 int i; 4 ans= 1 ; 5 for (i= 1 ;i=b;i++ ) 6 { 7 ans*= a; 8...

    2018-06-17 23:57:03

  • TCP通信三次握手的过程

    过程 编辑 第一次 第一次握手:建立连接时,客户端发送syn包(syn=j)到服务器,并进入SYN_SENT状态,等待服务器确认;SYN:同步序列编号( Synchronize Sequence Numbers )。 第二次 第二次握手:服务器收到syn包,必须确认客户的SYN(ack=j+1),同时自己也发送一个...

    2018-06-17 23:57:01

  • POJ 1572 Automatic Editing 字符串替换,replace就够

    题意不难理解,但是一开始还是没有看清楚题目。Replace the first occurrence of the find string within the text by the replace-by string, then try to perform the same replacement again on the new text. Continue until the find string no longer occurs wit...

    2018-06-17 23:56:54

  • C++大型实验——机动车违章处罚管理系统

    1 #include iostream 2 #include iomanip 3 #include fstream 4 #include string 5 #include list 6 using namespace std; 7 8 class Violation{ 9 public : 10 Violation(){points=fine= 0 ; 11 number=carNumber=tel=location= isSpot 12 =police=camera=type=isTrea...

    2018-06-17 23:56:41

  • Win32消息循环机制等【转载】http://blog.csdn.net/u0

    Dos的过程驱动与Windows的事件驱动 在讲本程序的消息循环之前,我想先谈一下Dos与Windows驱动机制的区别: DOS程序主要使用顺序的,过程驱动的程序设计方法。顺序的,过程驱动的程序有一个明显的开始,明显的过程及一个明显的结束,因此程序能直接控制程序事件或过程的...

    2018-06-17 23:56:45 语言编程c语言编程

  • 【志银】NYOJ《题目524》A-B Problem

    题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=860 My思路: 先用两个字符串储存这两个实数,然后再用另外两个字符串储存去掉符号和前后多余的0后的新"实数",最后只需要比较两个化简后的新字符就ok了。 My代码实现: 1 #includeiostream 2 using names...

    2018-06-17 23:56:40

2