473,671 Members | 2,475 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 4357
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
7699
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 wrong??? Thanks, Josep
4
2750
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
3190
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 discovered that they didn't put ming-utils pack). So I tried to download "raw" meterial from www.mingw.org: gcc-core binutils gcc-g++
2
7470
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 Infocomm Research department. However, when I tried to compile the codes, I get the error message that says: "no matching function for call to `Englingo::addEnglingo(std::vector<int, std::allocator<int> >)' " The error is in the Englingo.cpp: #include...
5
3285
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 must build a list of those files and process them by exectuing a system command (exec?) Can some one tell me what methods to use to: a) Walk the directory tree b) execute a system command with parameters.
3
6890
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 rectify this problem. I apologise if this is slightly O.T. because it refers to a specific compiler. However, it's important to me to get an answer fairly quickly. A newsgroup on the specific topic of the bloodshed dev compiler would be...
4
2983
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 <stdio.h> #include <string.h> int main(int argc, char **argv) {
1
1413
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 instantiated from here 7 C:\Dev-Cpp\tmp2Params.cpp converting to `int' from `double'
2
2138
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 "H:\CS2332\Summer\STL001\Makefile.win" all g++.exe -c R03_stackDriver.cpp -o R03_stackDriver.o -I"C:/Dev-Cpp/lib/ gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/ 3.4.2" ...
0
8400
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8602
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8672
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6234
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5702
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4412
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2817
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 we have to send another system
2
2058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.