Please Help: Can't compile in terminal

Please help me, I've been banging my head against the wall trying to get this to work.

I have the following files:
main.cpp
Sally.cpp
Sally.h

I made them in textEdit and I am trying to run them in terminal. I just want to run main which will simply print something out but I HAVE NO IDEA HOW! I've tried typing:

g++ -o elasticity.exe *.cpp

which compiles fine but I have no idea how to actually run my dang program. Please oh please help.


$ ./elasticity.exe
Thank you so much ne555
Topic archived. No new replies allowed.