Browse Source

week7 acknowledge the use of the works of other people

master
RinRi 1 year ago
parent
commit
e1e17b3202
3 changed files with 5 additions and 0 deletions
  1. +2
    -0
      week07/ex3.c
  2. +1
    -0
      week07/ex4.c
  3. +2
    -0
      week07/ex5.c

+ 2
- 0
week07/ex3.c View File

@@ -1,3 +1,5 @@
// Copied and fixed the code from goo.gl/EMpzYz

#include <stdlib.h>
#include <stdio.h>
#include <time.h>


+ 1
- 0
week07/ex4.c View File

@@ -18,6 +18,7 @@ void* myrealloc(void* ptr, size_t prev_size, size_t new_size) {
return res;
}

// Copied and fixed the code from goo.gl/EMpzYz
// test myrealloc using ex3
int main() {
//Allows you to generate random number


+ 2
- 0
week07/ex5.c View File

@@ -1,3 +1,5 @@
// Copied and fixed the code from the slides

#include <stdio.h>

int main() {


Loading…
Cancel
Save