Website Design United States, Website Design California, Website Designing United States, Website Designing California

Print the current working directory - C++

The simple one-liner to print the current directory you are working in. I'll leave it to you to think of ways you could use this.
#include <cstdlib>
using namespace std;

int main() {
/* for windows... */
system("cd");
/* for linux... */
system("pwd");
return 0;
}


WEB DESIGN INDIA
42 B Malviya Nagar , New Delhi-110017

Skype: manmeetsi
Email: support.webdesignindia@gmail.com
Tel: 91-011-40502005, 9810067295

 















 


© 2008-2009 dotnet4all.com