码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
c++代码赏析之类对象传参
#include using namespace std;class A { private: int x;public: A():x(0) { x = 0; cout << "construct" << endl; } A(const A &a) { x = a.x; cout << "construct copy" << endl; } ~A(...
分类:编程语言   时间:2016-03-26 07:56:49    阅读次数:126
C++中回车换行(\n\r)和换行(\r)的区别
windows下的点一下回车,效果是:回车换行,就是\r\n unix系统下的回车一下就是一个\n 给出如下代码: [cpp] view plain copy  print? #include    using namespace std;      int main()   {       cout "this is the f...
分类:编程语言   时间:2016-03-26 07:52:16    阅读次数:270
C++中回车换行(\n\r)和换行(\r)的区别
windows下的点一下回车,效果是:回车换行,就是\r\n unix系统下的回车一下就是一个\n 给出如下代码: [cpp] view plain copy  print? #include    using namespace std;      int main()   {       cout "this is the f...
分类:编程语言   时间:2016-03-26 07:50:37    阅读次数:286
重载函数编译后的新名字
我们都知道很多语言都支持函数重载,那么编译器是怎么处理编译后它们的命名冲突的呢?1、先给出几个正确的重载函数:#include using namespace std;int Add(int a, int b) { return a + b; }double Add(double a, double b) { return a + b; } double Add...
分类:其他好文   时间:2016-03-26 07:17:12    阅读次数:224
C++返回值为对象时复制构造函数不执行怎么破
先说点背景知识,调用复制构造函数的三种情况:  1.当用类一个对象去初始化另一个对象时。  2.如果函数形参是类对象。  3.如果函数返回值是类对象,函数执行完成返回调用时。  在辅导学生上机时,有同学第3点提出异议。有教材上的例题为证:#include using namespace std; class Point //Point 类的定义 { public: Point(i...
分类:编程语言   时间:2016-03-26 06:51:43    阅读次数:168
touch: cannot touch '/usr/local/tomcat/logs/catalina.out': Permission denied解决方法
logs目录没有创建修改权限 ./startup.sh Using CATALINA_BASE: /usr/local/tomcat702 Using CATALINA_HOME: /usr/local/tomcat702 Using CATALINA_TMPDIR: /usr/local/tomc ...
分类:其他好文   时间:2016-03-24 18:18:53    阅读次数:446
EF6与mvc5系列(1)
本系列教程是微软asp.net网站上的教程翻译,原文地址:http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model ...
分类:Web程序   时间:2016-03-24 16:05:17    阅读次数:200
cocos2dx 的一些宏的作用
NS_CC_BEGIN cocos2d命名空间开始 NS_CC_END cocos2d命名空间结束 USING_NS_CC 声明cocos2d命名空间 CC_SYNTHESIZE_READONLY(varType, varName, funName) 声明一个成员变量以及get##funName函数 ...
分类:其他好文   时间:2016-03-24 08:50:25    阅读次数:173
C#-使用json
第一个方法:使用System.Web.Script.Serialization命名空间1234567891011121314151617181920212223242526272829303132333435363738using System;using System.Collections.Ge... ...
分类:Windows程序   时间:2016-03-24 01:15:06    阅读次数:253
Android sdk更新失败解决办法
Android SDK Manager - Settings窗口在HTTP Proxy Server和HTTP Proxy Port输入mirrors.neusoft.edu.cn和80, 并且选中Force https://... sources to be fetched using http:
分类:移动开发   时间:2016-03-23 19:59:57    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!