Hay i am a absolute beginner in C. so i was trying to make a program which will make a folder with system hidden attributes.
the program i use to create a folder is like this....
1 2 3 4 5 6 7 8 9 10 11 12
#include<iostream.h>
#include<dir.h>
int main()
{
char foldern[256];
cout<<"enter the name of folder\n";
cin.getline (foldern,256);
mkdir(foldern);
return 0;
}
this is just a part of long code.
so how can i make a folder that contents hidden+system attributes. (please don't suggest system() )
please help with example i am a noob.