Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ch8_17.cpp
Package: C.zip [view]
Upload User: gzy2011
Upload Date: 2021-02-09
Package Size: 20k
Code Size: 0k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- //file ch8_17.cpp
- #include"iostream.h"
- void main(void)
- {
- char buffer[10]="ABC";
- char* pc;
- pc="hello";
- cout<<pc<<endl; //输出字符指针就是输出字符串:"hello",而非地址,除非如下:
- cout<<hex<<(int)pc<<endl;//输出地址
- pc++; //pc指向'e'
- cout<<pc<<endl; //"ello"
- cout<<*pc<<endl; //'e'
- pc=buffer; //pc指向"ABC"
- cout<<pc<<endl; //"ABC"
- }