Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ cleanwin:
# 'all' needs 'story.o'. What does story need?
# And how do we make it?
# -----------------------------------------------
story: story.o bpbkt7.o bebz4t.o zwsx9f.o dmmdnr.o jmchpd.o qpty9t.o amz28.o rbhmm5.o esdnk7.o jee9pv.o rjkncd.o nrmb9r.o hgc8zc.o rkg7gg.o cejnfp.o cytbm.o kjkvfw.o edmqgc.o rdcr2n.o mnygp.o
story: story.o bpbkt7.o bebz4t.o zwsx9f.o dmmdnr.o jmchpd.o qpty9t.o amz28.o rbhmm5.o esdnk7.o jee9pv.o rjkncd.o nrmb9r.o hgc8zc.o rkg7gg.o cejnfp.o cytbm.o kjkvfw.o edmqgc.o rdcr2n.o mnygp.o bjwhpq.o
$(CC) $^ -o story

##
Expand Down Expand Up @@ -119,6 +119,10 @@ rdcr2n.o: sentences/rdcr2n.c

mnygp.o: sentences/mnygp.c
$(CC) -c $<

bjwhpq.o: sentences/bjwhpq.c
$(CC) -c $<

#story.o: story.c


4 changes: 3 additions & 1 deletion sentences/_HEADERS.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ int edmqgcSentence2();
int rdcr2nSentence1();
int rdcr2nSentence2();
int mnygpSentence1();
int mnygpSentence2();
int mnygpSentence2();
int bjwhpqSentence1();
int bjwhpqSentence2();
17 changes: 17 additions & 0 deletions sentences/bjwhpq.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//bjwhpq sentences

# include <stdio.h>

int bjwhpqSentence1()
{
printf("So they all made hot chocolate and s'mores.");
return 1;
}

int bjwhpqSentence2()
{
printf("It strikes the dragon on the head with surprising force for such a small object.\n");
return 1;
}


2 changes: 2 additions & 0 deletions story.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ int main( void )
dmmdnrSentence1();
zwsx9fSentence1();
amz28Sentence1();
bjwhpqSentence1(); // "So they all made hot chocolate."
bebz4tSentence2();
zwsx9fSentence2();
jmchpdSentence2();
Expand Down Expand Up @@ -73,6 +74,7 @@ int main( void )
kjkvfwSentence1();
kjkvfwSentence2();
rdcr2nSentence1();
bjwhpqSentence2(); //"It strikes the dragon on the head with surprising force for such a small object."
rdcr2nSentence2();
// Ben's sentence should be last.

Expand Down