tailieunhanh - Lecture Notes in Computer Science- P41
Lecture Notes in Computer Science- P41:This year, we received about 170 submissions to ICWL 2008. There were a total of 52 full papers, representing an acceptance rate of about 30%, plus one invited paper accepted for inclusion in this LNCS proceedings. The authors of these accepted papers | Design and Implementation of an Internet-Based Platform for C Language Learning 189 Fig. 1. The architecture of the system Client Server Fig. 2. The system module Users can learn C language knowledge and doing program in Turbo C programming environment. If they meet compile errors which are difficult to solve users can get hints and extra help form the compile error-check module and then rectify the grammatical mistakes. After the program ran successfully users can send the source code to the server to do logic error-check. The server will return the results of the program quickly and display it in the massage frame. According the feedback logic errors in the source code can be corrected. 3 Design and Implementation of Compile Error-Check Compile Error-check module is responsible for supporting users more accurate and comprehensive compile error messages. Its work process is shown in Figure 3. It obtains error messages in two ways. One way is to analyze the TC errors by interacting with the Turbo C . The other way is to infer the errors from the source code through kinds of algorithms provided by the system. 190 J. Wang L. Chen and W. Zhou Fig. 3. The flow sheet of compile error-check The first way is mainly to capture the error messages of Turbo C compiler and to analyze the possible reasons. The communication between the system and the compiler is implemented by redirect technology under DOS. Meanwhile the system saves these errors to a text file then it positions each error correctly according to the analytical database. This way is responsible for deleting the relative errors and positioning the mistakes correctly. The main code is shown in the following private string RunCmd string command Process p new Process c command false true true true .
đang nạp các trang xem trước