5SD802 C++编程指南技巧

1.Instructions

Assignment 1Programming with C/C++ 1: Introduction - 5SD802PLEASE READ ALL THE INSTRUCTIONS BEFORE YOU START

  1. Download and use Galba V2.0 from the course page (Modules-> Course Materials).
  2. Unzip Galba V2.0.zip in a folder that you specifically created for this assignment.
  3. Delete the content of main.cpp and manually rewrite the code in the image at the end of this
  4. document in main.cpp, all of it.

2. Questions

For each of the below concepts, write a comment in main.cpp after your name explaining each concept:
• Data Type
• Variable Assignment
• Variable Initialization
• Operator
• Boolean Expression

2.1 Part 1

• Modify the content of the function render_circle_square_image() sothat it recreates the image in Figure 1 using the functions:
• draw_rectangle(), draw_circle()
• You can find the documentation for these functions in the file“galba.h” under the section “Rendering”.
• The colors don’t need to be exactly the same.

2.2 Part 2

• Write inside the body of the (empty) functionrender_portrait() code to draw a self-portrait with: upperbody, arms, neck, head and facial features. As in Figure.
• Use the same functions as in Part 1, and more if you want, you can find every function in “galba.h”.

你可能感兴趣的:(算法)