Software development tools - Self October 2018 program fill in the blank

48. Completion of a procedure, known X, Y, Z points 0-9 indicate different numbers, so that expression is obtained.

XXXX + YYYY + ZZZZ = the value of X, Y, Z YXXXZ when established, and print the required formula. Using the Eclipse CDT C implement the program, the completion of the new project, source folder, and finally write the code compile and run this series of steps, please add the key points of these steps.

(1) New Project: Open Eclipse integrated environment, click on the "①" menu on the menu bar, select ② option under the new sub-menu, select the pop-up wizard window. Open C / C ++ folder, select "C Project" click "Next" to enter the next step in the dialog box. Enter the Project Name column "myTest", and open the "Executable" in the project folder type "Project type" tab, select "Empty Project", click "Finish" button to finish.

(2) New Source folder: Right-click Explorer in the new myTest project, the pop-up menu, select "New" sub-menu of the source folder "Source Folder" option. In the pop-up window to enter the folder name, position the cursor to the file name (Folder nam) input source folder name "③", then click Done "Finish" button.

(3) New Class C file: step before referring a new source folder in Explorer, right-click the src folder, the pop-up menu, select ④ ⑤ sub-menu of options, create a new class file.

(4) preparation of C code: class file open in step 3 is completed, the code in the editor to write the following key steps supplementary code.

#include“stdio.h”

#include“stdlib.h”

int main(void)

{

  int x,y,z;

  int k;

  for(x=0;⑥;x++)

      {

    for(y=0;y<10;y++)

    {

      if(y==x)

        continue;

      for(z=0:z<10;z++)

      {

        if(z=x; ⑦; z==y)

          continue;

        k=sum(x,y,⑧);

        if(k=⑨+1110*x+z)

        {

          printf ( "x = * d, y =% d, z =% d \ n", x, y, z);

          printf ( "% d +% d +% d =% d \ n", x 1111 *, 1111 * y, 1111 * z, k);

        }

      }

    }

  }

  return 1;

}

Int sum(int a,int b,int c)

{

  return 1111*a+1111*b+1111*c;

}

(5) to run the program: In the default setting of Eclipse, the shortcut key to run the program is ⑩.

 

answer:

① file (or: File) (2 points)

② Project (or: Project) (2 points

③se (2 minutes)

④ new (or: New) (2 minutes)

⑤Class (or: the like) (2 minutes)

⑥x <10 (or: x <= 9) (2 minutes)

⑦││ (2 minutes)

⑧z (2 minutes)

⑨1000 * y (or: y * 1000) (2 minutes)

⑩Ctrl + F11 (2 minutes)

 

Guess you like

Origin www.cnblogs.com/duanqibo/p/11139951.html