Home > Back-end >  The three little pigs than the weight of the couple will not do
The three little pigs than the weight of the couple will not do

Time:12-27

This is the code I wrote, want to have what problem?
#include
using namespace std;
Int main ()
{
Int a=0;
Int b=0;
int c=0;
cin> a;
cin> b;
cin> c;
cout <"Pig a quality is" & lt; cout <"Pig b quality is" & lt; cout <"Pig c quality is" & lt; The switch ()
{
Case1:
A. & gt; B and a & gt; c;
cout <"The fattest pig is a" & lt; Case2:
A. & gt; B and a & gt; c;
cout <"The fattest pig is a" & lt; Case3:
A. & gt; B and a & gt; c;
cout <"The fattest pig is a" & lt; Case4:
A==b & gt; c;
cout <"The fattest pig is a and b" & lt; Case5:
A==c & gt; b;
cout <"The fat pig" is both a and c & lt; Case6:
B==c & gt; a;
cout <"The fattest pig is b and c" & lt; Case7:
A==b==c;
cout <"The three little pigs as fat" & lt; }
system("pause");
return 0;
}
Ask about what switch brackets should write
This topic should share the switch structure to do?

CodePudding user response:

Case3:
A. & gt; B and a & gt; c; Without this
Only by constant characters
Case 'a'
For if the else

CodePudding user response:

Good thank god
  • Related