From 55b0ca305aec4b4c59e1131e5605b13c3b2ae0a3 Mon Sep 17 00:00:00 2001 From: lciav Date: Mon, 26 Nov 2018 18:56:51 -0600 Subject: [PATCH 1/3] made changes to buggy.c --- buggy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/buggy.c b/buggy.c index aae42b1..89bdd79 100644 --- a/buggy.c +++ b/buggy.c @@ -7,6 +7,7 @@ 3. create a new branch on git 4. git push changed buggy.c 5. create pull request with your name and changes you made +6. screenshot what you did and post it in the dropbox */ From 56225fe24ea40cf89fdb106b01cda998d8ecd5b5 Mon Sep 17 00:00:00 2001 From: lciav Date: Mon, 26 Nov 2018 18:59:50 -0600 Subject: [PATCH 2/3] added change in new branch --- buggy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buggy.c b/buggy.c index 89bdd79..c501e47 100644 --- a/buggy.c +++ b/buggy.c @@ -7,7 +7,7 @@ 3. create a new branch on git 4. git push changed buggy.c 5. create pull request with your name and changes you made -6. screenshot what you did and post it in the dropbox +6. Send a screenshot of your pull request and put it in the dropbox */ From 635b745246bee84aea86e7146f51650fd0136183 Mon Sep 17 00:00:00 2001 From: lciav Date: Mon, 26 Nov 2018 19:22:59 -0600 Subject: [PATCH 3/3] added change in new branch --- buggy.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/buggy.c b/buggy.c index c501e47..e4d0950 100644 --- a/buggy.c +++ b/buggy.c @@ -14,25 +14,25 @@ struct dog { int age; - char name = [10]; + char name[10]; // removed = }; void main() { - struct (dog) thing1: + struct dog thing1; //removed () switched : for ; struct dog thing2; - thing1.age = [5]; + thing1.age = 5; //removed [] thing2.age = 13; - puts{"What is your dogs name? "}; - gets(thing1.names); + puts("What is your dogs name? "); // {} changed to () + gets(thing1.name); //names changed to name strcpy(thing2.name, "Buster"); - printf("Name: %i\n",thing1.name ); - printf("Age: %i\n",thing1.age): - printf("Thing2 Name: %s\n,thing2.name); - printf("Thing2 Age %i\n',thing2.age); + printf("Name: %s\n",thing1.name ); //changed %i to %s + printf("Age: %i\n",thing1.age); // : changed to ; + printf("Thing2 Name: %s\n", thing2.name); //missing "" + printf("Thing2 Age: %i\n", thing2.age); //missing " } \ No newline at end of file