|
@ -1,8 +1,18 @@ |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
|
|
|
#include <fstream> |
|
|
|
|
|
#include <string> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main (int argc, char *argv[]) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
std::string path(argv[1]); |
|
|
|
|
|
std::fstream file; |
|
|
|
|
|
file.open(path,std::ios::trunc | std::ios::out); |
|
|
|
|
|
file<<"hello world\n"; |
|
|
|
|
|
file.close(); |
|
|
|
|
|
|
|
|
|
|
|
printf ("Hello, world!\n"); |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
int |
|
|
|
|
|
main (void) |
|
|
|
|
|
{ |
|
|
|
|
|
printf ("Hello, world!\n"); |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|