User Tools

Site Tools


blog:spring2016:aslater1:journal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
blog:spring2016:aslater1:journal [2016/05/05 00:32] – [May 2, 2016] aslater1blog:spring2016:aslater1:journal [2016/05/05 00:39] (current) – [May 4, 2016] aslater1
Line 184: Line 184:
 Your functions won't be able to "talk" to each other. That is, you can run the program as many times as you want, but the function will never return anything (at least it wouldn't for me). How do you get around this? Header files! Which, by the way, are where the function prototypes go. Don't put the entire function in there. Your functions won't be able to "talk" to each other. That is, you can run the program as many times as you want, but the function will never return anything (at least it wouldn't for me). How do you get around this? Header files! Which, by the way, are where the function prototypes go. Don't put the entire function in there.
 \\ \\  \\ \\ 
-So, when using multiple files you can just throw the above into a header file (making sure to include it in main) and compile it. +So, when using multiple files you can just throw the above into a header file (making sure to include it in main). When you compile the c files functions work!
-Like+
 <code c 1> <code c 1>
 #ifndef HEADERFILE_H_ #ifndef HEADERFILE_H_
blog/spring2016/aslater1/journal.1462408347.txt.gz · Last modified: 2016/05/05 00:32 by aslater1