473,513 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to crete a directory in C++ (DEv Cpp)

1 New Member
I'ld be glad to any1 who help me to create a directory oin C++
Jul 31 '06 #1
4 4341
Banfa
9,065 Recognized Expert Moderator Expert
I think using

int system( const char *command );

is the portable way so

system( "mkdir YourDirectory" );
Jul 31 '06 #2
pkp_budha
8 New Member
I'ld be glad to any1 who help me to create a directory oin C++


Hi
u can write the c++ code like this

=============================
main()
{
system(mkdir dirname);
}

=================================
it will create a directory by name dirname.
==================================
Jul 31 '06 #3
pkp_budha
8 New Member
Hi
u can write the c++ code like this

=============================
main()
{
[b]system("mkdir dirname");
}
Jul 31 '06 #4
pkp_budha
8 New Member
Hi
u can write the c++ code like this

=============================
main()
{
system("mkdir dirname");
Jul 31 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
7693
by: Josep | last post by:
Hi, I've got the library libmysqld.lib which links under MS VC++ without problem. But when I try to compile the same files + lib with Dev-C++ I get the Linker Error below... What am I doing...
4
2722
by: Harald Mossige | last post by:
Dev-Cpp "dont se" MinGW. (Win2K) I have downloaded and run: devlup4991nomingw_setup.exe and MinGW-3.1.0-1.exe in those dirrectory:
4
3162
by: Jakub \Quetz\ Lambrych | last post by:
I would like to know if anybody tried to install Mingw 3.4.2 on Dev-Cpp 4.9.9.0? The problem is that after installing official Dev-packs (from sf.net) compilator doesn't want to work (i...
2
7461
by: pretear_yuki | last post by:
I'm a 14 year old student in Singapore. I am doing a programming for my Research Studies in school, I got the source codes of my programme from my mentor in the National University of Singapore...
5
3278
by: KraftDiner | last post by:
Hi I need help writing a python script that traverses (recursivly) a directory and its sub directories and processes all files in the directory. So at each directory if there are files in it I...
3
6881
by: pauldepstein | last post by:
Just installed dev cpp on Windows XP. When I try to compile programs, however simple, I always get the message Linker error undefined reference to cpu_features_init. Could someone please help me...
4
2976
by: waltbrad | last post by:
What can I do to get Dev-Cpp to compile C code? Whenever I try compiling C code the compiler complains about the headers. For instance the code:(I do name the code with extension.c) #include...
1
1406
by: param | last post by:
Hi guys, The following code is not being compiled. I am getting this error message: C:\Dev-Cpp\tmp2Params.cpp In function `T1 maxx(const T1&, const T2&) ': 12 C:\Dev-Cpp\tmp2Params.cpp ...
2
2130
by: SamuelXiao | last post by:
Here is the error, and the program run no problem in VC++; Compiler: Default compiler Building Makefile: "H:\CS2332\Summer\STL001\Makefile.win" Executing make... make.exe -f...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.