错误warning C4761:integral size mismatch in argument; conversion supplied;怎么修改?错误程序:#includeusing namespace std;class SimpleCircle{public:\x05SimpleCircle(int *a)\x05{\x05\x05itsRadius=a;\x05}\x05float area(){\x05\x05return (3.1

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/29 17:45:15
错误warning C4761:integral size mismatch in argument; conversion supplied;怎么修改?错误程序:#includeusing namespace std;class SimpleCircle{public:\x05SimpleCircle(int *a)\x05{\x05\x05itsRadius=a;\x05}\x05float area(){\x05\x05return (3.1
x哽N0_J:P -HMZ,s-GAD`*2W ԤP11r~}~޾FXr{S߫5)Г!EETEXD9²g"C$})#'r8 ׇnrLFe7qR:J# * DQ<>nN:`7'>!Q-e 3]cN qI Hݭ__ҷ D~"In?ol1wV0zũXw)p%x&N`zI!ikZ?6/+Er-[!RfPFU)Hv

错误warning C4761:integral size mismatch in argument; conversion supplied;怎么修改?错误程序:#includeusing namespace std;class SimpleCircle{public:\x05SimpleCircle(int *a)\x05{\x05\x05itsRadius=a;\x05}\x05float area(){\x05\x05return (3.1
错误warning C4761:integral size mismatch in argument; conversion supplied;怎么修改?
错误程序:
#include
using namespace std;
class SimpleCircle
{
public:
\x05SimpleCircle(int *a)
\x05{
\x05\x05itsRadius=a;
\x05}
\x05float area(){
\x05\x05return (3.14*(*itsRadius)*(*itsRadius));
\x05}
\x05float circumference(){
\x05\x05return (3.14*2*(*itsRadius));
\x05}
private:
\x05int *itsRadius;
};
int main()
{
\x05int b=5;
\x05SimpleCircle s(&b);
\x05cout

错误warning C4761:integral size mismatch in argument; conversion supplied;怎么修改?错误程序:#includeusing namespace std;class SimpleCircle{public:\x05SimpleCircle(int *a)\x05{\x05\x05itsRadius=a;\x05}\x05float area(){\x05\x05return (3.1
cout