diff --git a/cp-homework/main.cpp b/cp-homework/main.cpp new file mode 100644 index 0000000..06efe7e --- /dev/null +++ b/cp-homework/main.cpp @@ -0,0 +1,35 @@ +#ifdef __linux__ +#include // read, write +#include // ENOENT +#include // O_RDONLY and O_WRONLY +#else +// assume any other platform is Windows +#include +#endif + +class FileWrapper +{ +#ifdef __linux__ +private: +// ... Linux FileWrapper code goes here +#else +private: +// ... Windows FileWrapper here +#endif +} + +void cp(const char * src, const char * dest) +{ + char buffer[20]; +#ifdef __linux__ + // Linux code goes here +#else + // Windows code goes here +#endif +} + +int main() +{ + // Don't ask user for file + cp("test.txt", "test2.txt"); +} \ No newline at end of file