#include<iostream> const int ArSize = 20; int main() { using namespace std; char name[ArSize]; cout << "Your first name,please:"; cin >> name; cout << "Here is your name, verticalized and ASCIIized: \n"; int i = 0; while(name[i] != '\0'){ cout << name[i] << ": " << int(name[i]) << endl; i++ } return 0; }
Sample 5.13:while.cpp
最新推荐文章于 2023-05-25 09:22:59 发布