Computing.Net > Forums > Programming > multi directory's

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

multi directory's

Reply to Message Icon

Name: papa_dj
Date: June 28, 2009 at 17:28:56 Pacific
OS: Windows XP
Subcategory: C/C++
Comment:

i am traing to make a prog that makes multi directory's ex: "1-3" "4-6" "7-9" but i can't put the "createdirectory" in a loop that works.
(i am using borland c++)

#include <stdio.h>
#include <direct.h>
#include <iostream>
#include <windows.h>
#include <string>

int fn;
int en;
int sn;
int n;

main(void)
{
printf(" first number : ");
scanf("%d",&fn);
printf("spread value: ");
scanf("%d",&sn);
printf("ending numbere: ");
scanf("%d",&en);

while (fn<en)
{
createdirectory("%d-%d",&fn,&nfn+sn);
fn=fn+sn;
return 0;
}
}

can sam1 help??



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: June 29, 2009 at 06:30:02 Pacific
Reply:

createdirectory("%d-%d",&fn,&nfn+sn);
You seem to think CreateDirectory() works like sprintf(). It does not. Also, you use a variable called nfn, which you never declare.

can sam1 help??
Finally, learn to spell.


0

Response Number 2
Name: papa_dj
Date: June 29, 2009 at 10:21:16 Pacific
Reply:

that was a erro the last time i tried.

but haw can i do wath i am traing to do??


0

Response Number 3
Name: tonysathre
Date: June 29, 2009 at 12:45:05 Pacific
Reply:


that was a erro the last time i tried.

but haw can i do wath i am traing to do??

Um...what?


0

Response Number 4
Name: Razor2.3
Date: June 29, 2009 at 14:57:10 Pacific
Reply:

tonysathre: Um...what?
You know, I'd be happy to help him with the source if he could form a coherent sentence.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: multi directory's

find directory contents in windows www.computing.net/answers/programming/find-directory-contents-in-windows/7073.html

read an unknown directories name + copy to it www.computing.net/answers/programming/read-an-unknown-directories-name-copy-to-it/19795.html

regsvr32 failure in XP (but okay in 98) www.computing.net/answers/programming/regsvr32-failure-in-xp-but-okay-in-98/2814.html