src |
autoTarget(); $lazyLinking=1; |
//#exe #include "hellowriter.h" int main(int argc, char **args){ HelloWriter writer; writer.write(); return 0; } |
#ifndef MOD_HELLO_WRITER_H #define MOD_HELLO_WRITER_H class HelloWriter { public: HelloWriter(); void write(); }; #endif |
#include "hellowriter.h" #include <iostream> using namespace std; HelloWriter::HelloWriter() { } void HelloWriter::write() { cout << "Hello there." << endl; } |