CHAPTER3-2.cpp
上传用户:fjc899
上传日期:2007-07-03
资源大小:187k
文件大小:0k
源码类别:

STL

开发平台:

C/C++

  1. //文件名:CHAPTER3-2.cpp
  2. #include <string>
  3. #include <iostream>
  4. void printstring(const std::string& str) {    std::cout << str << std::endl;}
  5. int main(){    std::string str("Hello World");    printstring(str);}