Parcourir la source

README-en.md edited online with Bitbucket

Rafael Arce Nazario il y a 8 ans
Parent
révision
25b00b8890
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      README-en.md

+ 2
- 2
README-en.md Voir le fichier

142
 
142
 
143
 3. The file `main.cpp` (in Sources) contains the function `main()` where you will be adding code. Open this file and study the code.
143
 3. The file `main.cpp` (in Sources) contains the function `main()` where you will be adding code. Open this file and study the code.
144
     
144
     
145
-```cpp   
145
+    ```   
146
 
146
 
147
     QApplication a(argc, argv);
147
     QApplication a(argc, argv);
148
     XYPlotWindow wLine;
148
     XYPlotWindow wLine;
166
         // After all the points have been added, plot and show the graph
166
         // After all the points have been added, plot and show the graph
167
         wLine.Plot();
167
         wLine.Plot();
168
         wLine.show();
168
         wLine.show();
169
-```
169
+    ```
170
     
170
     
171
     The line  `XYPlotWindow wLine;` creates the object `wLine`, that is the window that will show the plot of a graph, in this case the graph of a segment. Look at the `for` loop. In this cycle several values for $$t$$ are generated and a value for $$x$$ and $$y$$ is computed for each $$t$$. Each ordered pair $$(x,y)$$ is added to the graph of the segment by the method `AddPointToGraph(x,y)`.  After the cycle, there is a call to the  method  `Plot()`, to "draw" the points on the graph, and to the method `show()`, to show the plot. The *methods* are functions that allow us to work with the data of an object. Note that each of the methods is written after `wLine`, and followed by a period. In a future laboratory experience you will learn more about objects and practice how to create them and invoke their methods.
171
     The line  `XYPlotWindow wLine;` creates the object `wLine`, that is the window that will show the plot of a graph, in this case the graph of a segment. Look at the `for` loop. In this cycle several values for $$t$$ are generated and a value for $$x$$ and $$y$$ is computed for each $$t$$. Each ordered pair $$(x,y)$$ is added to the graph of the segment by the method `AddPointToGraph(x,y)`.  After the cycle, there is a call to the  method  `Plot()`, to "draw" the points on the graph, and to the method `show()`, to show the plot. The *methods* are functions that allow us to work with the data of an object. Note that each of the methods is written after `wLine`, and followed by a period. In a future laboratory experience you will learn more about objects and practice how to create them and invoke their methods.
172
 
172