I use linux, but what header files do I need? I just found relatively poor information about findfirst/findnext. It seems to be exactly what I need! Could someone give me an example how to use those...
Type: Posts; User: N8760
I use linux, but what header files do I need? I just found relatively poor information about findfirst/findnext. It seems to be exactly what I need! Could someone give me an example how to use those...
say I have a directory /user with 3 subdirectories /user/code, /user/docs, /user/pics.
my program is in /user, how do I do it find out 1. how many subdirectories there are and 2. get their names...
well
you can do
user[x] += 2 to add 2 but that is no very strong encryption, I suggest you use a key and 'mix up' the bits (^=) like samGwilliam already said.
thanks, that was exactly what I was searching for!
Well, I wanted to know how I can run a program from a program, eg:
int main()
{
char *prog;
cout<<"Run: "; // --> g++ -o file1.cpp file2
cin>>prog;
[code to run prog with arguments]
}
Thank you all very much!
itoa didn't work, but that's because I'm using unix, so I found an unix-itoa on the web, when someone is interested, I'll post it.
I have a file IO where I read from file A.txt which contains an integer (int Bla).
Later in the program, I want to save into a file, named after the integer in file A.txt, I
write:
...
That's not what I wanted to know! ;-)
My question wasn't good. I mean, I write a program like this:
int main()
{
int x, y;
cout<<"Program you want to run:";
cin>>x;
cout<<"Arguments:";...
I'd need a function or code to run linux programs with arguments from my C++ program.
e.g.
"Run> someapp 1 2 3 -a -b".
Thanks for all answers!!
thank you very much!!