|
@@ -163,15 +163,15 @@ In this laboratory experience, you are provided a `GPOI` class with the followin
|
163
|
163
|
####Instructions
|
164
|
164
|
|
165
|
165
|
|
166
|
|
-1. Load the `prMap` project onto Qt by double clicking on the `prMap.pro` filein the directory `Documents/eip/Arrays-PRMap` of your computer. You may also go to `http://bitbucket.org/eip-uprrp/objectsarrays-prmap` to download the `ObjectsArrays-PRMap` folder to your computer.
|
|
166
|
+1. Load the project `prMap` into `QtCreator`. There are two ways to do this:
|
167
|
167
|
|
|
168
|
+ * Using the virtual machine: Double click the file `prMap.pro` located in the folder `/home/eip/labs/arrays-prmap` of your virtual machine.
|
|
169
|
+ * Downloading the project’s folder from `Bitbucket`: Use a terminal and write the command `git clone http:/bitbucket.org/eip-uprrp/arrays-prmap` to download the folder `arrays-prmap` from `Bitbucket`. Double click the file `prMap.pro` located in the folder that you downloaded to your computer.
|
168
|
170
|
|
169
|
|
-2. Build and run the program. In its current state, the program simply displays a map of Puerto Rico. This map is provided so that you can visualize the results of your program. You may see some warnings which are due to the fact that some of the functions are incomplete. You will complete them throughout this laboratory experience.
|
170
|
|
-
|
|
171
|
+2. Compile and run the program. In its current state, the program simply displays a map of Puerto Rico. This map is provided so that you can visualize the results of your program. You may see some warnings which are due to the fact that some of the functions are incomplete. You will complete them throughout this laboratory experience.
|
171
|
172
|
|
172
|
173
|
3. Open the `main.cpp` file. This is the file where you will be writing your code. This file contains the following functions:
|
173
|
174
|
|
174
|
|
-
|
175
|
175
|
1. `void printArrayOfCities(GISPOI A[], int size)`: Given `A`, an array of `GISPOI` objects and its size, prints all the cities in the array. You may use this function as part of your debugging process.
|
176
|
176
|
|
177
|
177
|
2. `int countLinesInFile(ifstream &file)`: Given a reference to the object that represents a file, this function counts and returns the number of lines in the file.
|