c - 是否可以在c的消息框中添加变量?
问题描述
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
char a[20], c[10], d[10];
int b;
printf("What is your name: ");
scanf("%s",&a);
printf("How old are you: ");
scanf("%d",&b);
printf("Where are you from: ");
scanf("%s",&d);
printf("What is your Profession: ");
scanf("%s",&c);
MessageBox(0, "My name is" " I am %s years old. I am from %s. I am a %s. "
, "Message",1);
return 0;
}
所以我正在尝试制作一个程序,让用户提出问题并在消息框中打印句子。甚至可能......?
解决方案
推荐阅读
- random - 有人在“RayTracing in one Weekend”中遇到过这个剥离神器吗?
- javascript - map 不是在三元运算符中返回 div 的函数
- python - 无法在 docker 容器中安装 h2o
- url - 带有 2 个域的域重定向
- vue.js - 标题按钮的Vue全日历本地化
- sql - 逐行计算查询运行总计
- python - 如果替代已在 scs.ttest_ind() 中编码为上 1 尾测试,我是否需要将 p 值除以 2?
- reactjs - 如何在 formik 中使用反应数字格式
- php - 一次登录就禁用多个登录codeigniter
- sql - 比较表中的 2 列值并在新列中显示匹配值。列值以逗号分隔