小编Jos*_*air的帖子

Format指定类型"int*"但参数的类型为"int"

创建打印出Body Mass Index的代码

printf("What is your height in inches?\n");
scanf("%d", height);

printf("What is your weight in pounds?\n");
scanf("%d", weight);
Run Code Online (Sandbox Code Playgroud)

我有高度和重量初始化为int height,int weight但程序不让我运行它,因为它说格式是int*scanf行上的类型.让这个程序运行我做错了什么?

c

3
推荐指数
1
解决办法
3万
查看次数

标签 统计

c ×1