20182301 2019-2020-1 "Object-oriented programming and data structures" Experiment report

20182301 2019-2020-1 "Object-oriented programming and data structures" Experiment report

Course: "Programming and Data Structures"
Class: 1823
Name: Zhao Pei Ning
Student ID: 20182301
experiments Teacher: Johnny
experiment Date: September 9, 2019
Compulsory / Elective: Compulsory

1. Experimental content

2. Experimental procedure and results

  • Preliminary master Linux command in particular man, find, locate, grep, which, whereis, cheat and other core command; process: were reciting some time; result: operation and therefore more skilled. man, find, locate, grep, which, whereis, cheat introduce usage
  • Master the use of Java development tools, you can write simple Java program will edit, compile and run a simple program; the process: the task easier, pre-write, compile, better operating environment. Result: The program has been able to independently carry out simple.
  • Master debugging methods under appropriate conditions. Process: The process is more arduous; result: finally be able to upload code.
  • Graphic:


3. Experimental problems encountered in the process and settlement process

  • Question 1: the emergence of the word "can not find or can not load the main Class"
  • Problem 1 Solution:
    • Reason: 1 may be compile time with the suffix .class: remove the suffix;
      2. may be because your java file package with the package, but you still run the java directory files are located: the return package before a directory run;
    • Solution: 1 in the java file to delete or comment out the package: recompile; then enter the name of the java file in the current directory, so you do not find the package directly to find the main class. 2. Do not delete files in the package java line; compiled directly; return to the previous package files directory package
  • Question 2: When entering "print i" in debugging, i is empty.
  • Problem 2 Solution: The problem is not yet running into this line, so i do not exist. You can enter "step", then.
  • Question three: git push frequently can not upload
  • Question three solutions: You can enter "$ git push -u origin master -f" to force uploading. (In fact, there is a problem before the computer remote control, the sister school to fix it!)

Other (perception, thinking, etc.)

In the initial stage, we must learn step by step, down to earth and fire, or is likely to have to keep you from getting the wrong idea.

Reference material

Guess you like

Origin www.cnblogs.com/zhaopeining/p/11494587.html