double类型使用scanf
时间: 2023-09-21 08:03:50 浏览: 209
double类型可以使用scanf函数来读取输入值。在使用scanf函数时,需要使用"%lf"来表示读取一个double类型的值。例如,scanf("%lf", &A)可以读取一个double类型的值并存储到变量A中。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [double类型的变量通过scanf函数赋值时需注意的问题](https://blog.csdn.net/wkddd/article/details/52503359)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [C/C++中使用可变参数](https://download.csdn.net/download/weixin_38748875/13756403)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文