ends.cpp
来自「《C/C++程序员实用大全》配套代码,适用初学C++的人员。」· C++ 代码 · 共 22 行
CPP
22 行
#include <iostream.h>
#include <strstrea.h>
void main(void)
{
char title[64], publisher[64], author[64];
ostrstream title_str(title, sizeof(title));
ostrstream pub_str(publisher, sizeof(publisher));
ostrstream author_str(author, sizeof(author));
title_str << "Jamsa's C/C++ Programmer's Bible" << ends;
pub_str << "Jamsa Press" << ends;
author_str << "Jamsa and Klander" << ends;
cout << "Book: " << title << " Publisher: " << publisher << " Author: " <<
author << endl;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?