-
The role of INC is very simple, it is used for plastic surgery;
inc(i);It's equivalent to i := i + 1; The two are exactly equivalent, so you can use them this way if you want to save trouble.
There is also a dec in contrast to it
dec(i);It's equivalent to i := i + 1;
The difference between them is that when compiling the program in the future, if you turn on some special compilation switches, you can judge whether the operation of i:=i+1 is out of bounds, but you can't judge the inc,dec function;
However, these are still out of our reach for the time being, so we can use them with confidence and boldness.
-
inc(i,n) is the autoincrement function corresponding to i := i+n ; (n refers to the corresponding increment).
dec(i,n) is a self-decreasing function corresponding to i := i-n ; (n refers to the corresponding reduction).
For integers only.
inc(i) means variable i plus 1, and inc(i,5) means variable i plus 5
-
is a function inc is equivalent to +1 e.g. inc(a)=a+1
-
The cumulative example: inc(j) is j:=j+1
For example, inc(j,i) is j:=j+i
-
Free Pascal is a complete Win32 Pascal language compiler developed by an international organization, similar to Delphi, which can write Windows programs.
Previously, the most widely used Pascal compilers were Turbo Pascal & Borland Pascal. However, the space available to them is very limited. Whereas, Free Pascal can theoretically use 4GB of RAM.
Therefore, when using free pascal programming, you can change the original thinking, transfer a lot of time to space, and improve efficiency.
-
A free and open-source compilation environment that conforms to the Pascal specification.
-
A compilation environment.
PS: BT operating environment with strong BS FP! Support for Lazarus
-
1.A prime number is just going from 1 to itself [in fact, it is enough to detect only half of itself.] There are only two factors, 1 and itself. If this condition is met, then this is a prime number.
Procedure: label
1;varn,m,j,i,z:integer;
beginreadln(m,n);
for i:=m to n do
beginfor j:=1 to i do
if (i mod j=0) and (j<>1) and (j<>i) then
goto 1;
z:=z+1;
1:end;
write(z);
readln;
end.The second question was quickly sent, and the general method was to use situational statements.
-
The number of digits before and after the title is the same, let the former number be a, the last number is b, and the unit digit of a is 7, because b = 7 * a, so the unit digit of b is 9, indicating that the highest digit of a is 9, but if 9 times 7 will be carried forward, the number will be one more than the original number, which does not meet the requirements of the question, so such a number does not exist.
-
The second question is related to the ASCII table, using a pair of inverse functions.
-
real is a real (floating-point).
integer is the most common integer, there is no decimal, the maximum +32767 may be the data exceeds +32767, the range of real is larger than integer, it is recommended to use longint (larger) for integers, and extended (more accurate) for solid types
-
real is a real number.
integer is an integer.
There may have been a problem with the division.
Integer can only be used with mod (to take the remainder) and div (to round off the remainder) if used'/'It doesn't matter if the value is an integer or not.
Always use real
-
Run the error checklist.
error1: invalid function number.
error2: File not found.
error3: The path cannot be found.
Error4: Too many files are open.
error5: The file is not allowed to be accessed.
error6: Invalid file handle.
error12: Invalid file access.
error15: Invalid drive letter.
error16: The current directory cannot be deleted.
error17: Cannot be renamed across drives.
error18: There are no more files.
error100: The disk was read incorrectly.
-
with is a procedural thinking error ; I've also appeared;
-
You can run the program by pressing F7 and then Ctrl+F9.
-
You can use the sieve method to make an array of 2 to 10,000 first, and then discharge more than twice the number from 2 to 10,000. The rest is prime. Give a thumbs up. If it doesn't work, I'll make a program.
1) is a system of ternary equations:
When x=-1, y=0;Substituting y=ax +bx+c, we get 0=a(-1) +b(-1)+c, that is, a-b+c=0. >>>More
Beethoven, a world-famous ** artist, finally composed a symphony after going through many tribulations.
Love is disappointed in loneliness, desperate in disappointment, strong in despair, lonely in strong. >>>More
Find damp soil, damp sand in deep digging, and put it in a bottle to evaporate water from sunlight. >>>More
You can compare his pre-debut pixel size ** with his current ** to know if he has plastic surgery! I think he looked better before his debut, he was really good-looking!