⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fifth.cpp

📁 C++实践源码
💻 CPP
字号:

////////////////////////////////////////////////////////////
//  Module  : fifth.cpp
//
//  Purpose : Demonstration of standard input/output using 
//            cin and cout
////////////////////////////////////////////////////////////

#include <iostream.h>

void main()
{
   // Ask the user a question
   cout << "Hello, what's your name?\n>";
   
   // Create a place to store up to 25 characters for a name
   char fname[25];
   char lname[25];

   // Get the user's name
   cin >> fname >> lname;

   // Use the name, writing it to the screen
   cout << "Welcome to the world of C++, " 
      << fname << " " << lname << "!";
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -