-
#include
void main()
int a,b,c,d,e,f,j,h;
cout<<"Please enter the data (a, b, c, d, e, f, j, h)."<>a>>b>>c>>d>>e>>f>>j>>h;
cout<<"a×b×c×d×e×f+j+h=""If you write like this, add it below.""using namespace std;"。If you write include, you won't add it. Personally, I don't think it's necessary to add "return 0" to the main function at the end, the effect is the same.
If you want to calculate a decimal number, change the "int" in it to "float", the former is an integer, and the latter is a floating-point type. And double is a double, with a larger range. Come on, the landlord, if you can't, slowly learn knowledge by accumulation, and no one will be born with it.
-
Just kidding, it won't be.
-
This can be calculated directly with the greedy method
Set up a station at 500 km to store 500 liters of oil... And then just go straight -
You don't think you should have explained this topic clearly.
-
There is no oil in the desert, so the title expresses that the car has to transport its own oil and store it. So you have to run back to carry oil often.
-
++ In front of the self-addition and then calculation.
In the last first calculation and then self-adding.
For example: int i=5, j=6;
int ret = 0;
ret = i++;// ret = 5; i=5;
ret = i; // ret =6; i=6;
ret = ++j; // ret = 7; j=7;
ret = j; //ret = 7; j=7;
-
For example, j++ is to use the value of j first, and then add one to it, and ++j is to add one and then apply its value...
-
Here's how to memorize it.
i;+ in the front, it is written as i first self-adding, that is, i = i + 1 first, and then i is assigned to other variables i++;
After that, it is written as i and then self-adding, that is, i is assigned to other variables first, and then i=i+1
If only time could be turned back.
Can't forget that autumn twilight. >>>More
1. First of all, define a number of reed structure student, which contains the information of the student. >>>More
Summary. Here's a simple clock written in C** that prints out the current time (in hours, minutes, and seconds): include include int main() return 0; This ** uses the time function and the localtime function in the header file, as well as the printf function and the fflush function in the header file. >>>More
Science fiction stories are stories that people write based on some scientific knowledge, mostly taking place in the future. Science fiction stories are mostly fictional and require people to use their imagination. Science fiction doesn't have to add too many scientific principles, as long as it can justify itself and for a reason. >>>More
Some of the character storylines in League of Legends are made up, and many are copied, such as Monkey King