2009年4月7日

《C++PRIMER》笔记20090407

摘要: 1. endl是一个manipulator ,包括在输出流中插入换行符和刷新输出缓冲区两个操作。setw()操纵符限制读取的字符个数为其参数减1,可以用于保证数据不溢出(需要#include)。2. 几个英文翻译:address-of operator (取地址操作符 &); dereference operator(解引用操作符 *) addressable可寻址的 uninitiali... 阅读全文

posted @ 2009-04-07 08:48 TobyLin的学习之路 阅读(216) 评论(0) 推荐(0) 编辑

对C风格字符串结束符的测试 & 直接用ASCII码输出字符

摘要: // szString.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include #include using namespace std; int _tmain(int argc, _TCHAR* argv[]){ char const* pstr="10 45"; //为了测试空格的作用中间的3换成了空格 char const* pstr2=ps... 阅读全文

posted @ 2009-04-07 06:52 TobyLin的学习之路 阅读(1502) 评论(0) 推荐(0) 编辑

导航