弱弱的问~考二级急等#include<iostream.h>#define N 2.0main(){ int i=2; cout<<N+i;}结果为什么是4,不是4.0呢?[解决办法]默认的不显示末尾的0
cout.setf(ios_base::showpoint); cout << N + i;