把一串字符串转换为整型

// first method sscanf ANSI C #include <iostream> #include <cstdlib> using namespace std;int main() { char * buffer = "4711"; int number; int ret; ret = sscanf(buffer, "%d", &amp;number); if (ret) // success { printf("%d\n", number); } system("pause"); return 0; } #include <iostream> #inc...
programming | 2006-07-31 10:47 | 阅读 3516 次 | 评论 1 条

All about windows programming

Hello all, I have written something about windows programming in C/C++ and winapi(No MFC). When you want learn it, take a look here: http://www.bc-cn.net/bbs/dispbbs.asp?boardid=56&amp;replyid=57703&amp;id=4546&amp;page=1&amp;skin=0&amp;Star=1
programming | 2006-07-30 09:40 | 阅读 1490 次 | 评论 0 条

How to construct a system

在我看来, 一个系统是一个组建群的组合, 也就是说一个系统包含了一个或多个 Component. 在我的系统中, 各个Component 可以是彼此认识的, 也可以是彼此不认识的, 在这个系统中有一个非常重要的组件, 那就是 SystemController(SC), 这个 SC 认识系统中所有的 Components, 由于 SC 认识系统中所有的 Components, 所以 components 彼此间的联系是通过 SC 的信息交互来实现的。 这样的话, 如果要实现添加一个Component 到一个 System 中去, 或 删除一个 Component, 将会变得非常简单, 对...
programming | 2006-07-30 09:35 | 阅读 1245 次 | 评论 0 条

The&nbsp;search&nbsp;technique&nbsp;what&nbsp;I&nbsp;thought

Here I want introduce my search technique, I don't know whether this technique is already used by some search enginee. At all, I have never heard or never seen. Now come to the subject. I think, everyone here has the experience by searching. For example search your shoe, or search your pencil, or...
programming | 2006-07-30 09:25 | 阅读 1476 次 | 评论 1 条

Calculator(console&nbsp;application)

UploadFiles/2006-7/731720792.rar #include <iostream>#include <string>#include <sstream>using namespace std; class Expression{private: string exp; string left; string right; char op; string rest;public: Expression(){} Expression(string expStr) { ereaseSpace(expStr); exp = expStr; if(beginW...
programming | 2006-07-30 09:16 | 阅读 1733 次 | 评论 1 条

kai
浏览94828次