
C/C++/Asm
文章平均质量分 62
EricYeung
这个作者很懒,什么都没留下…
展开
-
多项式相加(链表的汇编语言实现)
; Masm 5.0, Win98;输入两个多项式,然后将多项式相加结果显示出来.(用了static array 技术)Poly.asm MAXLEN = 16 ELEM STRUC INDEX DW 0 BASE DW 0 NEXT DW 0 ELEM ENDS DSEG SEGMENT PARA PUBLIC DATA MSG1原创 2005-02-08 01:37:00 · 2415 阅读 · 0 评论 -
Concurrent list with condition variable
Concurrent list with condition variable原创 2011-04-29 12:07:00 · 878 阅读 · 0 评论 -
VC2010 lambda sample
VC2010 lambda sample原创 2011-04-27 16:23:00 · 889 阅读 · 0 评论 -
ptrmap (std::map extension to store pinter)
ptrmap (std::map extension to store pinter)原创 2011-04-21 16:49:00 · 708 阅读 · 0 评论 -
popular container with stringstream
popular container with stringstream原创 2011-01-09 16:20:00 · 463 阅读 · 0 评论 -
Install boost on Windows for Visual C++
Install boost on Windows for Visual C++原创 2011-01-06 00:46:00 · 738 阅读 · 0 评论 -
Effective C++ v3 summaries
Effective C++ v3 summaries原创 2010-12-18 14:30:00 · 886 阅读 · 0 评论 -
Technical questions
Technical questions原创 2010-12-18 14:36:00 · 655 阅读 · 0 评论 -
Effective STL & C++ STL tutorial summaries
Effective STL & C++ STL tutorial summaries原创 2010-12-18 14:33:00 · 815 阅读 · 0 评论 -
string replace C version
string replace C version原创 2010-09-15 19:44:00 · 577 阅读 · 0 评论 -
TRACE()-like log function
#pragma once// inspire by MFC TRACE() marcoclass CXLog{public: CXLog(const char *pszFileName, int nLineNo, const char *pszFunction) : m_pszFileName(pszFileName), m_nLineNo(nL原创 2009-06-26 19:25:00 · 620 阅读 · 0 评论 -
A function returns function
class CMemFunc{public: CMemFunc(); virtual ~CMemFunc(){}; typedef void (CMemFunc::*PesudoAction)(); typedef CMemFunc::PesudoAction PACTION; typedef PACTION (CMemFunc::*Action)(); typ原创 2009-04-05 14:21:00 · 1159 阅读 · 0 评论 -
effective usage of strtok
char szLine[] = "Hello ladies and gentlemen."; for (char *p = szLine; (p = strtok(p, " /t/n")) != NULL; p = NULL) printf("%s/n", p);原创 2008-06-11 18:25:00 · 591 阅读 · 0 评论 -
split string in C
char *my_strtok(char *str, char sep){ static char *next_token = NULL; char *start = str ? str : next_token; if(!start) return 0; char *p = strchr(start, seq);原创 2008-06-06 10:25:00 · 821 阅读 · 0 评论 -
Use MemoryMapFile to read large file
// FileMapTest.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "FileMapTest.h"#ifdef _DEBUG#define new DEBUG_NEW#endif#include "MtVerify.h"// The one and only原创 2008-07-16 11:43:00 · 1594 阅读 · 0 评论 -
重新再学习C++的练习
#include #include #include #include #include #include #define DEBUGVAR(x) cout using namespace std;struct Record{ string name; string addr; string phone; Record(string n, string a, string原创 2005-12-30 23:39:00 · 1645 阅读 · 1 评论 -
Frequently used code snippet
/////////////////////////////////////////////// define c++ class properties/////////////////////////////////////////////#define CLAS原创 2011-09-26 14:24:40 · 523 阅读 · 0 评论