Last active
January 4, 2018 19:14
-
-
Save gchavez2/1f7f4cdc898cb2657bfe8688f9e8e4d8 to your computer and use it in GitHub Desktop.
See output of preprocessing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++ -E helloworld.cpp > helloworld.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
#include "preprocessorFun.h" | |
int main() { | |
cout << "Hello from main()\n"; | |
OutsideMethod(); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OutsideMethod(){ | |
cout << "Hello from OutsideMethod()\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment