//指向字符型数据的指针变量
测试代码:
#include
using namespace std;
int main()
{
char **p;
char *name[ ]={"basic","fortran","c++","pascal","cobol"};
p=name+2;
cout<<*p<<endl;
cout<<**p<<endl;
return 0;
}
运行...
分类:
其他好文 时间:
2015-08-07 19:46:52
阅读次数:
113
Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or minus...
分类:
其他好文 时间:
2015-08-07 19:12:20
阅读次数:
206
Basic Calculator1题目内容:实现一个带有加减以及括号功能的小计算器,其中输入的没用负数,而且输入的内容也全部是合法表达式。个人分析:1.利用stack解题,将得出的临时结果放入stack中2.遇到括号的时候将result放入stack中心得:1. 对于加减可以直接利用符号进行操作,专...
分类:
其他好文 时间:
2015-08-07 01:34:46
阅读次数:
113
与Visual Studio类似,Visual Basic也将从版本12直接跳到14。虽然新版本中的许多特性对于C#来说也是首次引进,但仍然有大量的功能增强是特别针对VB的,旨在简化VB的使用。本文列举了一些最令我们感兴趣的特性。对Null的支持新版本的一个特性是对null值的支持,该特性使用?.操...
分类:
其他好文 时间:
2015-08-06 18:11:01
阅读次数:
108
导出时是:__imp_?Utf82Unicode@@YA?AV?$basic_string@GU
导入时是:__imp_?Utf82Unicode@@YA?AV?$basic_string@_WU
G和_W的区别,为了研究各字母的含义。做了如下实验:
void fun()=>
?fun@@YAXXZ
void fun(int)=>
?fun@@YAXH@Z
void fu...
分类:
其他好文 时间:
2015-08-06 16:47:46
阅读次数:
92
nginx.conf#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid ...
分类:
移动开发 时间:
2015-08-06 12:42:14
阅读次数:
205
使用twisted编写的chatroom,使用windows自带的telenet作为客户端。
from twisted.internet.protocol import Factory
from twisted.internet import reactor
from twisted.protocols.basic import LineReceiver
from twisted.interne...
分类:
其他好文 时间:
2015-08-05 18:26:13
阅读次数:
92
与零值的比较:
1.布尔变量与零值比较
规则1.不可将布尔变量直接与TRUE、FALSE 或者 1、0 进行比较。
根据布尔类型的语义,零值为“假” (记为 FALSE) ,任何非零值都是“真” (记为TRUE) 。TRUE 的值究竟是什么并没有统一的标准。例如 Visual C++ 将 TRUE 定义为1,而 Visual Basic 则将 TRUE 定义为-1。
假设布尔变...
分类:
其他好文 时间:
2015-08-04 23:00:22
阅读次数:
134
在c中const这个关键字,维基给出这样一句话
When applied in an object declaration,[b] it indicates that the object is a constant: its value does not change, unlike a variable. This basic use – to declare constants – has...
分类:
其他好文 时间:
2015-08-04 15:52:44
阅读次数:
124