码迷,mamicode.com
首页 >  
搜索关键字:dynamic program    ( 12758个结果
显式转换
dynamic_cast支持运行时识别指针或引用所指向的对象。从基类指针获得派生类行为最好的办法是通过虚函数。但是在某些情况下,无法使用虚函数,就需要手动显示转换。如果转换指针失败,则置0;如果转换引用失败,则抛出bad_cast异常。 1 if(Extend *ptr = dynamic_cast...
分类:其他好文   时间:2014-07-22 23:17:36    阅读次数:383
Android NDK
http://my.oschina.net/lifj/blog/177087javah -classpathsrc -d jni com.example.hellojni.MainAcitivity C:\Program Files\Java\jdk1.7.0_21\bin\javah.exe${p...
分类:移动开发   时间:2014-07-22 23:15:36    阅读次数:375
同时使用ADO与Excel类库冲突的问题
客户需要一个Demo程序实现Access数据库表导出到Excel表格,并将表中存储的照片(OLE对象)以其中一个字段(编号)命名存储到本地。程序中引入了ADO操作Access数据库("C:\Program Files\Common Files\System\ado\msado15.dll" no.....
分类:其他好文   时间:2014-07-22 23:08:15    阅读次数:310
VC 获取指定文件夹路径的方法小结
VC获取指定文件夹路径flyfish 2010-3-5一 使用Shell函数1 获取应用程序的安装路径TCHAR buf[_MAX_PATH];SHGetSpecialFolderPath(NULL,buf,CSIDL_PROGRAM_FILES,NULL);AfxMessageBox(buf);2...
分类:其他好文   时间:2014-05-01 10:42:38    阅读次数:357
static_cast、dynamic_cast、reinterpret_cast、和const_c
首先回顾一下C++类型转换:C++类型转换分为:隐式类型转换和显式类型转换第1部分.隐式类型转换又称为“标准转换”,包括以下几种情况:1) 算术转换(Arithmetic conversion) : 在混合类型的算术表达式中, 最宽的数据类型成为目标转换类型。intival=3;doubledval...
分类:其他好文   时间:2014-05-01 05:18:59    阅读次数:321
Windows JDK环境变量的配置
下载JDK:http://www.oracle.com/technetwork/java/javase/downloads/index.html安装计算机-->属性-->高级系统设置-->高级-->环境变量-->用户变量:新建 JAVA_HOMED:\Program Files\Java\jdk1....
分类:Windows程序   时间:2014-05-01 00:35:42    阅读次数:518
Linq练习
首先在Program.cs的Main()方法下添加如下代码:string[] names = { "heh", "haha", "huahua", "kuku" };1、取得以h开头的名称:(查询语法) var queryResult = from n in names ...
分类:其他好文   时间:2014-04-30 23:02:21    阅读次数:509
Linq To Entity 多表联合查询
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinqToEntity { class Program { static void Main(string[] args) { //...
分类:其他好文   时间:2014-04-29 13:16:21    阅读次数:574
C#-访问轰炸机,新建进程,结束进程...(ConsoleApp)---ShinePans
program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Tst { class Program { static void Main(string[] arg...
分类:移动开发   时间:2014-04-27 21:35:59    阅读次数:467
java Annotation原理
Annotations are one of the fundamental language changes introduced in Java SE5. They provide information that you need to fully describe your program, but that cannot be expressed in Java. Thus, anno...
分类:编程语言   时间:2014-04-27 21:14:59    阅读次数:431
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!