码迷,mamicode.com
首页 >  
搜索关键字:floating point    ( 7266个结果
【ThinkingInC++】63、引用计数
/** * 书本:【ThinkingInC++】 * 功能:引用计数,可以知道有多少个对象指向这个对象。 * 时间:2014年10月5日14:28:11 * 作者:cutter_point */ #include "../require.h" //这个文件是为了检验一些错误的,这个可以用#include代替,但是相应的函数也要改 #include #include using namesp...
分类:编程语言   时间:2014-10-05 18:00:48    阅读次数:136
【ThinkingInC++】64、重载new和delete,来模仿内存的分配
/** * 书本:【ThinkingInC++】 * 功能:重载new和delete,来模仿内存的分配 * 时间:2014年10月5日14:30:11 * 作者:cutter_point */ #include //size_t这个类型的使用 #include #include #include using namespace std; ofstream out("Framis.t...
分类:编程语言   时间:2014-10-05 17:43:48    阅读次数:215
【ThinkingInC++】66、pointer Stash的使用
头文件PStash.h /** * 书本:【ThinkingInC++】 * 功能:pointer Stash的头文件 * 时间:2014年10月5日14:33:15 * 作者:cutter_point */ #ifndef PSTASH_H_INCLUDED #define PSTASH_H_INCLUDED class PStash { int quantity; //...
分类:编程语言   时间:2014-10-05 17:43:31    阅读次数:302
【ThinkingInC++】65、使用delete void*可能会出错
/** * 书本:【ThinkingInC++】 * 功能:使用delete void*可能会出错 * 时间:2014年10月5日14:31:43 * 作者:cutter_point */ #include using namespace std; class Object { void* data; //一个void*类型的指针 const int size; c...
分类:编程语言   时间:2014-10-05 16:20:18    阅读次数:308
HDU - 5017 Ellipsoid(模拟退火法)
Problem Description Given a 3-dimension ellipsoid(椭球面) your task is to find the minimal distance between the original point (0,0,0) and points on the ellipsoid. The distance between two points...
分类:其他好文   时间:2014-10-04 18:05:26    阅读次数:242
【ThinkingInC++】61、非成员运算符
非成员运算符   当运算符的左侧是不同的类的时候,就不能吧运算符重载到类里面了。 IostreamOperatorOverloading.cpp /** * 书本:【ThinkingInC++】 * 功能:非成员运算符 * 时间:2014年10月4日14:23:25 * 作者:cutter_point */ //当运算符的左侧是不同的类的时候,就不能吧运算符重载到类里面了...
分类:编程语言   时间:2014-10-04 17:16:06    阅读次数:288
【ThinkingInC++】62、类中指针
类中指针 CopyingWithPointers.cpp   /** * 书本:【ThinkingInC++】 * 功能:类中指针 * 时间:2014年10月4日14:26:19 * 作者:cutter_point */ #include "../require.h" #include #include using namespace std; class Dog { ...
分类:编程语言   时间:2014-10-04 16:42:36    阅读次数:214
Lua面向对象利用metamethod重载运算符
##利用Point作为例子 ``` local math = require("math") local Point = {x = 0, y = 0} Point.__index = Point function Point.new(x, y) local self = setmetatable({}, Point) if (type(x) == "table") then f...
分类:其他好文   时间:2014-10-04 03:34:16    阅读次数:168
please set a system env PAODING_DIC_HOME or Config paoding.dic.home in paoding-dic-home.properties p
在使用paoding分词的时候,出现了错误,please set a system env PAODING_DIC_HOME or Config paoding.dic.home in paoding-dic-home.properties point to the dictionaries! 这是因为在老版本的PaodingMaker.getFile()方法中采用的是老版本的jav...
分类:其他好文   时间:2014-10-03 13:31:34    阅读次数:175
Java类对象数组声明和初始化
Java是纯面向对象语言。类是其重要构成单位。然后,在实际编程中,我们会自定义一些类,如Point public class Point { public Point(){ Lat=0.0; Lng=0.0; } public double GetLat(){ return Lat; } public double GetLng(){ return Lng;...
分类:编程语言   时间:2014-10-02 14:10:33    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!