Skip to content
Permalink
Browse files
Updated picture paths
  • Loading branch information
ab8809 committed Dec 13, 2019
1 parent 93e65a1 commit c0b96fdb81e34f9c1103f55f77b291f036c2d10e
Showing 1 changed file with 16 additions and 16 deletions.
@@ -35,7 +35,7 @@ Once you have logged into the server, go to the 217CR organization in 1 of 3 way
* On the main screen, clicking your profile picture in the top right, then _"Your Profile"_, then selecting 217CR-1920JANMAY via the icon on the left side.
* Using the direct link - https://github.coventry.ac.uk/217CR-1920JANMAY

![Organizations picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Organizations.png)
![Organizations picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Organizations.png)

Once there, create a new repository via the green _"New button"_.

@@ -45,13 +45,13 @@ Once you have logged into the server, go to the 217CR organization in 1 of 3 way

By doing all of this, it means that the markers will be able to see it, that other students cannot and that you can clone it straight away to your PC.

![Create a repository picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Create%20Repository.png)
![Create a repository picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Create%20Repository.png)

Finally, add the module staff to your repository so they have access to it. (Our information can be found on the 217CR moodle page under _Module Essentials_.)

Go into your repository from the website, click "Settings", then "Collaborators", and then search for, and add, both members of module staff (Ian and Will) to the page.

![Add collaborators picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Add%20Collabs.png)
![Add collaborators picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Add%20Collabs.png)

## Cloning the repository

@@ -63,7 +63,7 @@ The next step is to clone this repository to your PC so you have a local copy to
To clone a respository you will need the URL of it. Copy this from the address bar of your browser or use the green _"Clone or download"_ button and copy the URL from the pop up box.

![Cloning a repository picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Clone%20or%20Download.PNG)
![Cloning a repository picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Clone%20or%20Download.PNG)

Open command line by typing cmd into Windows search.

@@ -80,7 +80,7 @@ dir | Print out what is in the directory.
mkdir "name for directory" | Create that directory / folder.
git clone "url" | Clones the repository into the current directory you are at.

![cmd steps picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/cmd%20steps.PNG)
![cmd steps picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/cmd%20steps.PNG)

> _These are the steps I took to get to my Documents folder for example._
@@ -92,7 +92,7 @@ When you have submitted them, the repository (and it's files) should now be on y

At the moment, it should only be the README file.

![cloned picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Cloned.PNG)
![cloned picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Cloned.PNG)

It is here that we will create a C++ project so it is in the GitHub repository, meaning we can push and pull changes to it.

@@ -117,17 +117,17 @@ It is here that we will create a C++ project so it is in the GitHub repository,

Once this has been done, click _"Create"_.

![empty project picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Empty%20Project.PNG)
![empty project picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Empty%20Project.PNG)

![empty project picture 2](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Creating%20Project.PNG)
![empty project picture 2](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Creating%20Project.PNG)

We need to create the _.cpp_ file that will hold the _main()_ function. Remember, every C++ program needs a _main()_ function to run.

This can be done by right clicking "Source Files" on the right hand side (in the Solution Explorer) and clicking _"Add"_ -> _"New Item..."_.

Make sure C++ File (_.cpp_) is highlighted and either change the name (I always use _main.cpp_) or keep it as _Source.cpp_ and click _"Add"_ in the bottom right.

![add file picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Add%20file.PNG)
![add file picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Add%20file.PNG)


Type in the following code to get us started and make sure it all works. Once you have typed it in, click _"Local Windows Debugger"_ (or hit _"F5"_) at the top middle of the screen to compile and run the code.
@@ -166,7 +166,7 @@ These libraries are created for a certain build of project which can be a mix of

We can change these in Visual Studio via the two dropdowns next to _"Local Windows Debugger"_. Make sure your project shows _"Debug"_ and _"x64"_.

![project build picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Debug%20x64.PNG)
![project build picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Debug%20x64.PNG)

We now need to place these library files in a place where Visual Studio (and your code) can see and use them. Download (and extract) the files with the link above now if you have not already.

@@ -188,11 +188,11 @@ For moving the library files, we shall place them where the project files are. T

> Don't know where your project files are? Right click the project name in "Solution Explorer" and select _"Open Folder in File Explorer"_.
![open folder picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/open%20folder.PNG)
![open folder picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/open%20folder.PNG)

Your project files should now look something like this. (Of course, your project name will be different to mine!)

![project files picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Added%20library%20files.PNG)
![project files picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Added%20library%20files.PNG)

Moving the files is not enough. We now need to tell Visual Studio where these files are by 'linking' them.

@@ -207,7 +207,7 @@ When the "Property Page" window has opened, make sure it says "Active(Debug)" an
* Select "C/C++" and type include into the _"Additional Include Directories"_ textbox.
* Select "Linker" and type include into the _"Additional Library Directories"_ textbox.

![linking picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Linking.png)
![linking picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Linking.png)

## Base Code

@@ -217,7 +217,7 @@ Copy all the code from the _"BaseCode.cpp"_ which is on the Week 1 GitHub page a

Run the code to get the following scene.

![scene picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Basic%20Scene.PNG)
![scene picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Basic%20Scene.PNG)

> If you do not get the following scene, something is wrong. Look over the above tutorial again and see if you missed anything. The error messages shown in Visual Studio should give you a loose guide. If you get stuck, ask for help from the module staff.
@@ -237,13 +237,13 @@ Go into command line and navigate to where your repository is saved. (Make sure

Once there, use the three above commands to push your changes to GitHub. You can check the website version to make sure the push has happened.

![push command picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Push.png)
![push command picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Push.png)

> Did something stop you using _git add ._? Either way, read the next section about _.gitignore_!
## The power of the .gitignore file

![add issue picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Week%201/Readme%20Pictures/Add%20issue.PNG)
![add issue picture](https://github.coventry.ac.uk/217CR-1920JANMAY/Teaching-Material/blob/master/Session%201/Readme%20Pictures/Add%20issue.PNG)

Some of you might of got the above error when you tried to use _git add._. This is because your project (and Visual Studio) was still open at the time of the add command and both Visual Studio and Git were trying to access a project file at the same time.

0 comments on commit c0b96fd

Please sign in to comment.