Writing/debugging your own practice programs When you're writing your own practice programs from scratch, you won't have the 'make whatever' option available. You can still follow the edit/compile/execute cycle, but by using a g++ command for the compile part. Suppose you decide you want to create a C++ file named practice.cpp and a corresponding executable named practicex. The edit/compile/execute cycle would look like: pico practice.cpp (or pluma practice.cpp &) g++ -Wall -Wextra practice.cpp -o practicex ./practicex Note that pico/pluma will create a new empty file for practice.cpp if you don't already have one. That g++ command is the style of command that make ordinarily runs for you in our lab exercises. |