码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
C++默认参数
c++支持默认参数,但是默认参数应该放在参数的最右端。如float area(float r=6.5);area()即可调用,或者area(7.5)覆盖默认参数一个函数不能既作为重载函数,又作为有默认参数的函数。#include using namespace std;int main( ){ .....
分类:编程语言   时间:2014-06-16 07:43:44    阅读次数:255
SRM 587 DIV1
550结论:同一层的交点共线。很容易猜到,也可以跑几组数据验证。利用结论就可以按层算,再利用对称性简化计算。 1 using namespace std; 2 #define maxn 70100 3 class TriangleXor { 4 public: 5 int theArea(i...
分类:其他好文   时间:2014-06-16 07:18:41    阅读次数:184
deque
#include #include using namespace std;int main(int argc, char *argv[]){ deque A, B; deque ::iterator it; A.push_front(1); B.push_back(1); ...
分类:其他好文   时间:2014-06-16 07:17:15    阅读次数:199
C#运算String型表达式
现在有一个小需求就是对一个xml中的conditionusing System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.JScript;namespace TestX.....
分类:其他好文   时间:2014-06-16 07:12:36    阅读次数:204
验证码,字体旋转。
Code.csusing System;using System.Collections.Generic;using System.Drawing;using System.Drawing.Drawing2D;using System.Drawing.Imaging;using System.IO;...
分类:其他好文   时间:2014-06-16 06:13:29    阅读次数:219
cocos2d-x 利用CCLabelTTF制作文字描边与阴影效果的实现方法
//// myttf.h//// Created by 王天宇 on 14-6-12.////#ifndef ____SLG__myttf__#define ____SLG__myttf__#include #include "cocos2d.h"USING_NS_CC;using namesp.....
分类:其他好文   时间:2014-06-16 00:58:52    阅读次数:253
LeetCode解题报告:Insertion Sort List
Insertion Sort ListSort a linked list using insertion sort. leetcode subject思路:标准的插入排序。考察一下链表的操作。对链表进行插入排序的正确方法是:新建一个头节点,遍历原来的链表,对原链表的每个节点找到新链表中适合插入位置...
分类:其他好文   时间:2014-06-16 00:34:07    阅读次数:364
windows系统调用 调度优先级
1 #include "iostream" 2 #include "windows.h" 3 using namespace std; 4 5 class CWorkerThread{ 6 public: 7 CWorkerThread(LPCTSTR m_szName):m_szNam...
分类:Windows程序   时间:2014-06-13 18:30:42    阅读次数:325
计算几何基本函数
#include #include #include #include #include using namespace std ;const double eps = 1e-8;const double PI = acos(-1.0);int sgn(double x){ if(fabs(x...
分类:其他好文   时间:2014-06-13 18:08:05    阅读次数:307
LeetCode OJ--Permutations II
给的一个数列中,可能存在重复的数,比如 1 1 2 ,求其全排列。记录上一个得出来的排列,看这个排列和上一个是否相同。#include #include #include using namespace std; class Solution{public: vector > permuteU...
分类:其他好文   时间:2014-06-13 17:53:39    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!