c++ 九九乘法表,倒计时,成语接龙等游戏源代码 – 亦涛教育工作室 c++ 九九乘法表,倒计时,成语接龙等游戏源代码 - 亦涛教育工作室
school
亦涛教育工作室
login 账号登录 how_to_reg 立即加入
home 首页 menu_book 知识
add
shopping_cart 商城 login 登录

c++ 九九乘法表,倒计时,成语接龙等游戏源代码

calendar_today 2026年 4月 23日
visibility 3 Views

#include

#include

using namespace std;

int main(){

int i,j;

for(i=1;i<=9;i++) { for(j=1;j<i;j++) cout<<j<<“*”<<i<<“=”<<setw(2)<<i*j<<” “;=”” cout<<endl;=”” }=”” <a=”” href=”https://www.aiersheng.cc/wp-content/uploads/2024/01/20240110175143366.png”></i;j++)>

解释:九九乘法表, 定义两个数字,使用内循环for(j=I;j<=I;j++) #include

#include

using namespace std;

int main(){

int i=10;

do

{

cout<<i<<“天”<<endl; i–;=”” }while(i=””>=1);</i<<“天”<<endl;>

}

成语接龙

#include

#include

using namespace std;

int main(){

string cy[4],str1;

cout<<“请输入四个字词语:”; cin>>cy[0];

for(int i=1;i<4;i++) { cout<<“接上一个成语,再输入一个成语:”; cin>>cy[i];

}

cout<<“—成语接龙完成—-“<<endl; for(int=”” i=”0;i<4;i++)” str1+=”cy[i];” cout<<str1<<endl;=”” return=”” 0;=”” }=”” <a=”” href=”https://www.aiersheng.cc/wp-content/uploads/2024/01/20240110175303757.png”></endl;>