Sample 4.5:instr3.cpp

转载 2013年12月02日 21:59:34
#include<iostream>
int main()
{
    using namespace std;
    const int ArSize = 20;
    char name[ArSize];
    char dessert[ArSize];

    cout << "Enter your name:\n";
    cin.get(name, ArSize).get();
    cout << "Enter your favorite dessert:\n";
    cin.get(dessert, ArSize).get();
    cout << "I have some delicious " << dessert;
    cout << " for you, " << name << ".\n";
    return 0;
}

相关文章推荐

OpenCV/source/sample/cpp的学习

昨天看完了opencv_cheatsheet.pdf、opencv_tutorials.pdf、opencv_user.pdf这三个opencv自带的pdf文档 发现如果看完了浅墨大神写的《OpenC...

VS2010编译好的avcodec_sample.cpp

  • 2011年11月15日 16:38
  • 6.32MB
  • 下载

avcodec_sample.cpp

  • 2013年03月28日 16:04
  • 6KB
  • 下载

<Ejb3InAction> Sample05 for Weblogic - Interceptors and Timers

1. Customize code in chapter5 $ cd $HOME/student/ejbAction $ cd chapter5 $ for i in `find * -name ...
  • sun_xo
  • sun_xo
  • 2017年03月19日 15:38
  • 149

<Ejb3InAction> Sample02 for Glassfish - Simple example of Stateless, Stateful, MDB and JPA Enity

0. Prerequisite 1) JDBC resources We use default JDBC resources, which is based on database sun-ap...
  • sun_xo
  • sun_xo
  • 2017年04月02日 16:36
  • 140

<Ejb3InAction> Sample06 for Weblogic - Transactions and Security

0. Prerequisite It is pity that this chapter has no sample, I add one by myself, just for security...
  • sun_xo
  • sun_xo
  • 2017年03月21日 10:45
  • 138

<Ejb3InAction> Sample02 for Weblogic - Simple example of Stateless, Stateful, MDB and JPA Enity

0. Prerequisite Actually this sample is postponed, please reference to prerequisites of sample03 a...
  • sun_xo
  • sun_xo
  • 2017年03月22日 15:12
  • 89

<Ejb3InAction> Sample03 for Weblogic - Session beans with lifecycle callbacks and @Resource inject

0. Prerequisite We take advantage of Weblogic attached sample db here, the data source has been co...
  • sun_xo
  • sun_xo
  • 2017年03月07日 10:33
  • 140

DirectX9 SDK Samples(20) HDRDemo Sample(3)

HDR需要对源场景进行处理,因此在渲染初始源场景的时候,也要创建一个纹理,并且将场景渲染到这个纹理上,然后进行HDR处理。这个例子中,上述工作由HDRScene完成。关于渲染到纹理,这篇博文讲得很清楚...

<Ejb3InAction> Sample03 for Glassfish - Session beans with lifecycle callbacks and @Resource inject

0. Prerequisite As sample01. 1. Customize general configuration As sample01 2. Customize...
  • sun_xo
  • sun_xo
  • 2017年04月01日 09:48
  • 168
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Sample 4.5:instr3.cpp
举报原因:
原因补充:

(最多只允许输入30个字)