Thread: Process.h

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    Process.h

    When I do :

    execl(This, NULL);

    It works, yet kills the calling ap.

    when I do:

    execl(This, NULL, Data);

    Same, but it won't load "Data".

    Any suggestions?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You are using execl incorrectly. Consult the link.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Thanks, quzah
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. a phone book program
    By mackieinva in forum C Programming
    Replies: 2
    Last Post: 09-19-2007, 06:31 AM
  2. Calling external program
    By gandalf_bar in forum Linux Programming
    Replies: 10
    Last Post: 03-29-2004, 01:16 PM
  3. gcc and process.h
    By xddxogm3 in forum C Programming
    Replies: 7
    Last Post: 03-18-2004, 06:14 PM
  4. Process.h ???
    By carnt in forum C Programming
    Replies: 4
    Last Post: 03-07-2002, 03:05 PM