Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - I am a beginner of c++. I input three integers va, vb and vc from the keyboard, and output the maximum value of three numbers through a pointer iptr pointing to shaping.
I am a beginner of c++. I input three integers va, vb and vc from the keyboard, and output the maximum value of three numbers through a pointer iptr pointing to shaping.
# include & ltiostream.h & gt

void main()

{

int va,vb,VC;

int * p;

Cout & lt& lt "Type three integers:";

CIN & gt; & gtva & gt& gtvb & gt& gtVC;

p = & ampva;

if(* p & lt; vb)

p = & ampVB;

if(* p & lt; vc)

p = & ampVC;

The maximum quantity of cout & lt& lt is: "<& lt* p<& ltendl"

}