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
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 : "<
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started