2019-7-27 learning record

 

/

If real, the real output (i.e., does not ignore decimals)

If only integer input, the output integer (tail-out method)

EG   5/2 = 2 

    5.0/2=2.5


%

'Mold', actually taking a remainder operation mark on two posts and modulo modulo

And taking the difference modulo remainder of

Mathematical Programming and - a remainder, the modulo operation and their properties


 

Export

Expressions plus "" output expression (expression only !!!!)

Giga empty spaces quotes output

1 #include <iostream>
2 using namespace std;
3 int main()
4 {
5     cout<<9/8<<" "<<4%3<<" "<<9.0/8<<endl;
6     cout<<"9/8"<<" "<<"4%3"<<" "<<"9.0/8"<<endl;
7     << COUT " . 9 /. 8 = " << . 9 / . 8 << "  " << " . 4. 3% = " << . 4 % . 3 << "  " << " 9.0 / =. 8 " << 9.0 / . 8 << endl; // Note that only the output content within quotation marks, not directly output
 . 8      return  0 ;
 . 9 }

Sincerely,

Guess you like

Origin www.cnblogs.com/FirwoodLin/p/11256770.html