Tag:original text

  • C practical exercises 48

    Time:2020-8-11

    Title:Macro define command exercise 3. Program analysis:None. example: #define LAG > #define SMA < #define EQ == #include int main() { int i,j; Printf (“please enter two numbers:; scanf(“%d %d”,&i,&j); if(i LAG j) Printf (“% d is greater than% D, I, J)”; else if(i EQ j) Printf (“% d equals% D, I, J)”; else if(i […]

  • After successfully installing mysql, why can’t the MySQL service name be found in the service manager

    Time:2020-8-9

    Solution: (refer to the following command)1. Open CMD and switch to the bin directory of MySQL. 2 mysqld.exe -install Service successfully installed. 3、 D:\Program Files\MySQL5.1\bin>net start mysqlMySQL service has been started successfully.Open the service list and see the MySQL service cmd.exe Must be running as an administrator. Link to the original text: https://blog.csdn.net/lalalalalala_ /article/details/70207962

  • Basic knowledge of graph theory (3)

    Time:2020-8-5

    This article is published in the official account of the self. The original is written by Lee, and has been authorized by the original author. This issue brings you the last part of the summary of the basic knowledge of graph theory. Most of the materials for the production of slides come from the Internet, […]

  • C practical exercise topic 49

    Time:2020-8-4

    Title:#The comprehensive application of if ifdef and ifndef. Program analysis:None. example: #include #define MAX #define MAXIMUM(x,y)(x>y)?x:y #define MINIMUM(x,y) (x>y)?y:x int main() { int a=10,b=20; #ifdef MAX Printf (“the larger number is% D / N”, maximum (a, b)); #else Printf (“the smaller number is% D / N”, minimum (a, b)); #endif #ifndef MIN Printf (“the smaller […]

  • Resolve bcrypt installation failure

    Time:2020-8-3

    When I wrote the project registration module today, I had to install bcrypt to encrypt the password and save it to the database. But I always reported that the installation was not successful. I tried a lot of methods on the InternetThen I see this bcryptjsBcryptjs is a third-party password encryption library, which is the […]

  • C practical exercises topic 51

    Time:2020-8-2

    Title:Learn to use bitwise AND. Program analysis:0&0=0; 0&1=0; 1&0=0; 1&1=1 。 Program source code: #include int main() { int a,b; a=077; b=a&3; Printf (“A & B (decimal) is% D / N”, b); b&=7; Printf (“A & B (decimal) is% D / N”, b); return 0; } The output results of the above examples are as […]

  • Flag generates secret_ A simple method of key

    Time:2020-8-1

    SECRET_KEYIs an important configuration value in flag. This paper introduces a simple generationSECRET_KEYMethods. Session, cookies and some third-party extensions are usedSECRET_KEYValue, which is an important configuration value, should be set to a value that is hard to guess as much as possible, and random value is better. The problem with randomness is that it’s hard […]

  • C practical exercises topic 52

    Time:2020-8-1

    Title:Learn to use bitwise or|. Program analysis:0|0=0; 0|1=1; 1|0=1; 1|1=1 。 Program source code: #include int main() { int a,b; a=077; b=a|3; Printf (“the value of B is% D / N”, b); b|=7; Printf (“the value of B is% D / N”, b); return 0; } The output results of the above examples are as […]

  • C practical exercises 53

    Time:2020-7-31

    Title:Learn to use bitwise XOR ^. Program analysis:0^0=0; 0^1=1; 1^0=1; 1^1=0 。 Program source code: #include int main() { int a,b; a=077; b=a^3; Printf (“the value of B is% D / N”, b); b^=7; Printf (“the value of B is% D / N”, b); return 0; } The output results of the above examples are […]

  • C practical exercises topic 54

    Time:2020-7-30

    Title:Take 4-7 bits from the right end of an integer a. Program analysis:Consider this: (1) First, shift a to the right by 4 bits. (2) Set a number with all the lower 4 bits as 1 and all the others as 0. Use ~ (~ 0 < < 4) (3) Perform the & operation on […]

  • C practical exercises topic 55

    Time:2020-7-29

    Title:Learn to use bitwise negation ~. Program analysis:~0=1; ~1=0; Program source code: #include int main() { int a,b; a=234; b=~a; Printf (“the bitwise inverse value of a is (decimal)% D / N”, b); a=~a; Printf (“the bitwise inverse value of a is (hexadecimal)% X / N”, a); return 0; } The output results of the […]

  • C actual combat exercise topic 56

    Time:2020-7-28

    Title:Draw pictures and learn to draw circles with circle. Program analysis:None. example: #Include // VC6.0 cannot run, but in turbo2.0 / 3.0 int main() { int driver,mode,i; float j=1,k=1; driver=VGA; mode=VGAHI; initgraph(&driver,&mode,””); setbkcolor(YELLOW); for(i=0;i<=25;i++) { setcolor(8); circle(310,250,k); k=k+j; j=j+0.3; } return 0; } Thank you for your reading, please feel with your heart! Hope to […]