資源簡介
使用while讀取不定量的輸入數據方式,介紹了輸入文件或者標準輸入中的文件結束符 標準輸入中使用ctrl+z
代碼片段和文件信息
#include
using?namespace?std;
int?main()
{
int?sum=0value=0;
cout<<“請輸入加數值輸入非整數結束“< whi
評論
共有 條評論
#include
using?namespace?std;
int?main()
{
int?sum=0value=0;
cout<<“請輸入加數值輸入非整數結束“< whi
共有 條評論