This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blog:spring2016:aslater1:journal [2016/05/03 02:40] – [April 19, 2016] aslater1 | blog:spring2016:aslater1:journal [2016/05/05 00:39] (current) – [May 4, 2016] aslater1 | ||
---|---|---|---|
Line 175: | Line 175: | ||
} | } | ||
</ | </ | ||
- | Where the "case #" is referring to the condition you're checking for. Don't forget the '':'' | + | Where the "case #" is referring to the condition you're checking for. Don't forget the '':'' |
+ | ====May 4, 2016==== | ||
+ | Oh man, I just had all of the breakthroughs. | ||
+ | \\ \\ Turns out, if you're compiling multiple c files, and you simply use | ||
+ | < | ||
+ | gcc file1.c file2.c file3.c -o combinedfiles | ||
+ | </ | ||
+ | Your functions won't be able to " | ||
+ | \\ \\ | ||
+ | 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! | ||
+ | <code c 1> | ||
+ | #ifndef HEADERFILE_H_ | ||
+ | #define HEADERFILE_H_ | ||
+ | |||
+ | int stuff(char this, char that); | ||
+ | |||
+ | #endif | ||
+ | </ | ||
======UNIX/ | ======UNIX/ | ||
====January 25, 2016==== | ====January 25, 2016==== |