Sfoglia il codice sorgente

Correccion ingles y comentarios de codigo

SaraB 7 anni fa
parent
commit
6dd963b947
2 ha cambiato i file con 10 aggiunte e 3 eliminazioni
  1. 1
    1
      README-en.md
  2. 9
    2
      frog.cpp

+ 1
- 1
README-en.md Vedi File

180
 
180
 
181
 1. Use "Deliverable 1'  in Moodle to submit the file `QuadraticFormula.cpp` containing the code with the functions `QuadraticPlus` and `QuadraticMinus`. Remember to use good programming practices, include the names of the programmers, and document your program.
181
 1. Use "Deliverable 1'  in Moodle to submit the file `QuadraticFormula.cpp` containing the code with the functions `QuadraticPlus` and `QuadraticMinus`. Remember to use good programming practices, include the names of the programmers, and document your program.
182
 
182
 
183
-2. Use "Deliverable 2"  to submit the file `main.cpp` with the code to compute the grade point average. Remember to follow the instructions regarding the names and types of the variables, to include the names of the programmers, to document your program and to use good programming practices.
183
+2. Use "Deliverable 2"  to submit the file `main.cpp` with the code to compute the grade point average. Remember to follow the instructions regarding the names and types of the variables, to include the names of the programmers, to document your program and to use good programming practices.

+ 9
- 2
frog.cpp Vedi File

7
 #include "mainwindow.h"
7
 #include "mainwindow.h"
8
 #include "ui_mainwindow.h"
8
 #include "ui_mainwindow.h"
9
 
9
 
10
-//
10
+// ~English/
11
 // Constructor for the frog class
11
 // Constructor for the frog class
12
-//
12
+// ~Spanish
13
+// Constructor de la clase sapo
13
 
14
 
14
 frog::frog(QWidget *parent) : QWidget(parent) {
15
 frog::frog(QWidget *parent) : QWidget(parent) {
15
 
16
 
19
     myTimer= new QTimer(this);
20
     myTimer= new QTimer(this);
20
     flag = xFlag = false;
21
     flag = xFlag = false;
21
 
22
 
23
+    // ~English
22
     // These are the x positions of the background?
24
     // These are the x positions of the background?
25
+   
23
     temp = 580;
26
     temp = 580;
24
     temp2 = 0;
27
     temp2 = 0;
25
 
28
 
170
     float xEnd = 0;
173
     float xEnd = 0;
171
 
174
 
172
 
175
 
176
+    // ~English
173
     // use the functions implemented by the programmer to
177
     // use the functions implemented by the programmer to
174
     // compute the x-intercept.
178
     // compute the x-intercept.
179
+    // ~Spanish
180
+    // use las funciones implementadas por el programador para
181
+    // computar el valor que intercepta la x
175
 
182
 
176
     interX1 = QuadraticMinus(A,B,C);
183
     interX1 = QuadraticMinus(A,B,C);
177
     interX2 = QuadraticPlus(A,B,C);
184
     interX2 = QuadraticPlus(A,B,C);