Skip to content

PGE383-HPC-Students/assignment5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment 5

The aim of this assignment is to use the vi/vim editor to edit a small C program, as well as use git and Github to create a new branch on the repository and open a Pull Request. I've recorded a YouTube video that describes the expectations for completion:

https://youtu.be/62R--5BRgmo

Instructions

  1. The repository contains a file hello.c which is a "Hello, World!" program written in the C programming language. However, the file has a few syntax mistakes that is preventing it from compiling. The correct code/syntax should be

    #include <stdio.h>
    int main()
    {
       printf("Hello, World!");
       return 0;
    }

    Create a new branch of the repository called bugfix and make the necessary edits to the file to get it to compile correctly in this branch.

    You might need to revisit the Git and Github video lesson for a reminder on how to create a branch.

  2. Commit changes to the bugfix branch and push those changes back to Github (do not merge with master locally).

  3. In Github, create a pull request to merge the bugfix branch into master. I will act as a collaborator and merge your pull requests. If the tests do not pass on master, I will use the Github interface to request additional changes to the code.

Testing

If you would like to check to see if your edits to hello.c are correct run the following command at the Terminal command prompt

python test.py

A status message of OK indicates you have the correct answer.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published