// First look at multi-file projects

// Marc Chee (cs1511@cse.unsw.edu.au)
// October 2020

// This demo shows how we include a header file so that we can use its
// functionality in our main here

#include "person.h"

int main(void) {
    Person batman = create_person("Batman");
    give_power("Ninjitsu", batman);
    give_power("Tech gadgets", batman);
    give_power("Brooding", batman);
    give_power("Gravelly Christian Bale Voice", batman);
    // Free our memory now that we're not going to use it

Resource created Wednesday 27 January 2021, 01:16:14 PM, last modified Wednesday 31 March 2021, 08:02:05 PM.

file: main.c

Back to top

COMP1511 21T1 (Programming Fundamentals) is powered by WebCMS3
CRICOS Provider No. 00098G