C language expert help me revise the !!! Thank you!!

Updated on technology 2024-03-19
9 answers
  1. Anonymous users2024-02-07

    You can use the mkdir() function to create a new folder and modify it on the basis of the original program as follows:

    #include

    #include

    #include

    void main()

    int i;

    file *fs;

    char filename[20],dir[40];

    i=1;mkdir("d:\\123");*If d: 123 does not exist, it establishes, and if it exists, it returns 0*

    mkdir("d:\\123\\456");*If d: 123 456 does not exist, it is established, and if it exists, it returns 0*

    strcpy(dir,"d:\\123\\456\\");

    printf("Please enter the name of the file you want to save:");

    scanf("%s",filename);

    strcat(filename,".txt");

    fs=fopen(strcat(dir,filename),"w");

    while(i<=10)

    printf("%d",i);

    fprintf(fs,"%d",i);

    i=i+1;

    fclose(fs);

    system("pause");

  2. Anonymous users2024-02-06

    The square of the radius is equal to 12 and the area is 12*

  3. Anonymous users2024-02-05

    It is not judged mathematically.

    Rather, judge first.

    c>b is true, and this part has a value of 1

    And then judge. 1> aa is 1, so the judgment is not valid The result is 0

    So choose A

  4. Anonymous users2024-02-04

    Dude,That **program is obviously a wrong way to write,There is no output data at all,And you have made it clear when defining the parameters,So the result of data output without any additional definition of values is bound to be 0,I hope you re-check the content of the description of the numerical definition and parameter output part of the book,This can not only strengthen your memory,You can also understand what you are wrong!

  5. Anonymous users2024-02-03

    Too complicated to judge. What do you not understand. But the problem is, of course, if the following judgment and t t = 1, u = 12, = 13, = 20, x = 13, y = 23 and z = 2

    T = 1, U = 12, v = 14, w = 20, x = 13, y = 22, z = 1

    t = 1,u = 12,v = 14,w = 20,x = 13,y = 23,z = 2

    t = 1, u = 12, v = 14, = 21, x = 13, y = 20, z = 1.

    T = 1, u = 12, = 14, w = 21, x = 13, y = 21, z = 2

    When t = 1, u = 12, v = 14, w = 21, x = 13, y = 22, z = 3

    t = 1, u = 12, v = 14, w = 21, x = 13, y = 23 and z = 4

    t = 1, u = 12, = 14, = 21, x = 14, y = 24, z = 1.

    T = 1, U = 12, v = 15, = 20, x = 13, y = 22, z = 1.

    T = 1, U = 12, V = 15, = 20, X = 13, Y = 23, Z = 2

    When t = 1, u = 12, v = 15, w = 21, x = 13, y = 20, z = 1

    T = 1, U = 12, v = 15, = 21, x = 13, Y = 21 and Z = 2

    At t = 1, U = 12, v = 15, = 21, x = 13, y = 22 and z =

    At t = 1, you = 12, v = 15, w = 21, x = 13, y = 23, z = 4

    T = 1, U = 12, V = 15, W = 21, = 14, Y = 24, Z = 1.

    T = 1, u = 12, = 15, w = 22, x = 14, y = 22, z = 1

    T = 1, U = 12, = 15, Watt = 22, x = 14, Y = 23 and Z = 2

    t = 1, u = 12, = 15, w = 22, x = 14, y = 24, z = 3.

    Change the result after tuvxy = 1 2 3 4 5, no one satisfies tons

  6. Anonymous users2024-02-02

    It is used by the system by default, which represents a certain meaning or operation, and you can no longer use it for other purposes, such as if(i==1); This if means to perform the judgment operation, whether the expression i==1 is valid.

  7. Anonymous users2024-02-01

    1 All 6 are prime numbers, and 15 is not a very large number, you can start with a prime number, prime numbers: 2, 3, 5, 7, 11, 13 can get the answer.

    If the product is 18, then there are 2 9, 3 6, 6 3, 9 2. A single digit is a multiple of a ten-digit digit to get the answer.

    7.Spatial imagination.

  8. Anonymous users2024-01-31

    This one is too screwed.,There's a lot of questions on it.,I don't know which one needs help.。

  9. Anonymous users2024-01-30

    According to the two important limits of the pinch criterion:

    lim((sinx) x) = 1 (x->0)+ 1 n) n = e(n->positive infinity).

    It can be seen that the lim((sinwx) x) (x->0) variant is lim((sinwx) wx) *w) = w

Related questions
5 answers2024-03-19

Question 1: Something is missing here:

if(aelse k=b%a; >>>More

16 answers2024-03-19

Definition of a for loop.

for(the initial value of the variable; termination of operating conditions; The initial value of the first cycle i is 0, and it runs until i=3 stops i=2, and the condition is still satisfied, and the loop body is still executed, and the step size is 1+1 each time >>>More

9 answers2024-03-19

Hey! This is a very simple function to write, Your Excellency is estimated to have just learned data structures, now learn sorting, lookup, it's easy to give me a reward of two hundred points, I'll help you write it right away. >>>More

7 answers2024-03-19

It's called the [batch] program, in fact, don't think that the program you mentioned above to deal with garbage is really powerful, it's amazing, when you have learned DOS, that program can be said to be a very simple thing; >>>More

8 answers2024-03-19

system("command");The role is to open the "Command Prompt", and later you can manually enter DOS commands. >>>More