kevin55

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 4 5 6 7 8 9 10 下一页

2013年10月13日

摘要: 1 using System; 2 using System.Threading; 3 using System.Text; 4 using System.Threading.Tasks; 5 6 //多线程调试: 2013.10.08 7 //转自 http://www.cnblogs.com/yank/p/3227324.html 8 namespace ThreadExample 9 { 10 class SpinLockSample 11 { 12 public static void Test() 13 { 14 ... 阅读全文
posted @ 2013-10-13 23:21 kernel_main 阅读(505) 评论(0) 推荐(0) 编辑

2013年10月8日

摘要: 1 using System; 2 using System.Threading; 3 4 //多线程调试: 2013.10.08 5 namespace ThreadExample 6 { 7 class App 8 { 9 public struct Data10 {11 public string Message; 12 }13 14 //将消息写入控制台15 static void ThreadMainWithParameter(object o)16 ... 阅读全文
posted @ 2013-10-08 21:52 kernel_main 阅读(457) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class MathOperations { public static double MultiplyByTwo(double value) { return value * 2; } public static double Square(double value) ... 阅读全文
posted @ 2013-10-08 15:43 kernel_main 阅读(1177) 评论(0) 推荐(0) 编辑

2013年10月3日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Collections;namespace ConsoleApplication1{ //这是用来保存信息的数据结构,将作为参数被传递 public class SomeState { public int Cookie; public SomeState(int iCookie) { ... 阅读全文
posted @ 2013-10-03 16:29 kernel_main 阅读(258) 评论(0) 推荐(0) 编辑

2013年10月1日

摘要: 1 import ConfigParser 2 3 config = ConfigParser.RawConfigParser() 4 5 # When adding sections or items, add them in the reverse order of 6 # how you want them to be displayed in the actual file. 7 # In addition, please note that using RawConfigParser's and the raw 8 # mode of ConfigParser's r 阅读全文
posted @ 2013-10-01 18:03 kernel_main 阅读(728) 评论(0) 推荐(0) 编辑

2013年9月27日

摘要: 1 #include 2 3 /* 4 给出一字符串指针,计算出字符串指针中单词数, 5 单词不包括'.',',',';','?','_','"',由0-9数字或26个字母组成 6 by zww @ 2013.09.26 7 vc 6.0编译通过 8 */ 9 10 unsigned int get_string_word_cnt(const char* pStr)11 {12 unsigned int iCnt= 0;13 unsigned int iCharCnt = 0;14 con 阅读全文
posted @ 2013-09-27 00:22 kernel_main 阅读(334) 评论(0) 推荐(0) 编辑

2013年9月25日

摘要: 1 //--------------------------------------------------------------------------- 2 3 #include 4 #pragma hdrstop 5 6 #include "Unit4.h" 7 #include 8 #include 9 using namespace std;10 //---------------------------------------------------------------------------11 #pragma package(smart_init)12 阅读全文
posted @ 2013-09-25 00:21 kernel_main 阅读(446) 评论(0) 推荐(0) 编辑

2013年9月12日

摘要: //---------------------------------------------------------------------------#include #pragma hdrstop#include "ProcessBar.h"#include // For FILE, fopen, fstat, fileno, fread and fclose#include // For fstat and the stat struct#include // For Min#include //For STL auto_ptr class//---... 阅读全文
posted @ 2013-09-12 23:08 kernel_main 阅读(2171) 评论(0) 推荐(0) 编辑

摘要: 转载请注明原文网址:http://www.cnblogs.com/xianyunhe/archive/2011/09/25/2190485.html通过VC实现对Excel表格的操作的方法有多种,如:通过ODBC数据库实现,通过解析Excel表格文件,通过OLE/COM的实现。本文主要研究通过OLE/COM实现对Excel表格的操作。 本文源码的应用环境说明:Windows XP SP3Microsoft Visual Studio 2010Microsoft Office Excel 2007 1、添加OLE/COM支持。首先,应用程序必须添加对OLE/COM的支持,才能导入OLE/COM组 阅读全文
posted @ 2013-09-12 23:07 kernel_main 阅读(14317) 评论(0) 推荐(0) 编辑

2013年9月11日

摘要: c++ builder 操作Excel方法,下面是从网上找到的一些不错的方法,学习一下: 1 用OLE操作Excel(目前最全的资料)(04.2.19更新) 2 3 本文档部分资料来自互联网,大部分是ccrun(老妖)在Excel中通过录制宏-->察看宏代码-->转为CB代码而来.本文档不断更新中.欢迎大家关注. 4 5 要在应用程序中控制Excel的运行,首先必须在编制自动化客户程序时包含Comobj.hpp 6 7 #include "Comobj.hpp" 8 9 C++ Builder把Excel自动化对象的功能包装在下面的四个Ole Object Cl 阅读全文
posted @ 2013-09-11 23:04 kernel_main 阅读(14348) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 下一页