multi directory's

June 28, 2009 at 17:28:56
Specs: Windows XP
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??


See More: multi directorys

Report •


#1
June 29, 2009 at 06:30:02
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.


Report •

#2
June 29, 2009 at 10:21:16
that was a erro the last time i tried.

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


Report •

#3
June 29, 2009 at 12:45:05

that was a erro the last time i tried.

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

Um...what?


Report •

Related Solutions

#4
June 29, 2009 at 14:57:10
tonysathre: Um...what?
You know, I'd be happy to help him with the source if he could form a coherent sentence.

Report •


Ask Question