Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions