Chinaunix首页 | 论坛 | 博客
  • 博客访问: 387490
  • 博文数量: 99
  • 博客积分: 5134
  • 博客等级: 大校
  • 技术积分: 1607
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 09:31
文章分类

全部博文(99)

文章存档

2011年(48)

2010年(40)

2009年(10)

2008年(1)

分类:

2010-12-02 17:05:41

eg1:
#include 
#include 

void printstring(const std::string& str) {
    std::cout << str << std::endl;
}

int main()
{
    std::string str("Hello World");
    printstring(str);
}
 
eg2:
#include 
#include
#include
using   namespace   std;

/* main: generate some simple output */
int main(void)
{
        string ins;
        cout<<"enter the string:";
        cin>>ins;
        cout<<"Hello:"<        return 0;
}
阅读(775) | 评论(0) | 转发(0) |
0

上一篇:The Python Debugger

下一篇:apache ssl

给主人留下些什么吧!~~