Search:

Type: Posts; User: N8760

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,250

    findfirst/findnext

    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...
  2. Replies
    4
    Views
    1,250

    getting directory information

    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...
  3. Replies
    9
    Views
    1,555

    well you can do user[x] += 2 to add 2 but...

    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.
  4. Replies
    2
    Views
    2,603

    thanks, that was exactly what I was searching for!

    thanks, that was exactly what I was searching for!
  5. Replies
    2
    Views
    2,603

    running program with arguments (linux)

    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]
    }
  6. Replies
    3
    Views
    951

    Itoa...

    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.
  7. Replies
    3
    Views
    951

    Transforming Integers into Chars

    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:
    ...
  8. Replies
    3
    Views
    1,835

    you got me wrong

    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:";...
  9. Replies
    3
    Views
    1,835

    code to run (linux) programs WITH 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!!
  10. Replies
    2
    Views
    2,693

    thanks

    thank you very much!!
Results 1 to 10 of 10