Question: PROVIDE SCREENSHOT OF THE FOLLOWING CODE WORKING IN LINUX SHELL make the following code work on LINUX: include #include #include #include #include #include #include using

PROVIDE SCREENSHOT OF THE FOLLOWING CODE WORKING IN LINUX SHELL

make the following code work on LINUX:

include #include #include #include #include #include #include using namespace std;

std::string current_working_directory() { char working_directory[MAX_PATH+1] ; GetCurrentDirectoryA( sizeof(working_directory), working_directory ) ; return working_directory ; } int main(void) { int i,j; for(i=1;i<=2;i++) { if (mkdir("working_directory\diri",0777)==-1); { cerr<<"Error : "<> j;

ofstream write ("working_directory\diri\filej.txt"); if (write.is_open()) { write << "This is a new file."<

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!