Thread: error help

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    1

    error help

    i get these two errors! how do i get rid of them!?

    syntax error : missing ';' before 'type'
    'c' : undeclared identifier

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Could you be a little more vague?

    Post the offending code so that we can see the actual error.
    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;
    }

  3. #3
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110

    basic help

    syntax error : missing ';' before 'type'
    'c' : undeclared identifier
    missing ; =>just put a ; before type as the error says

    c undeclared declare it as an int, char , float whatever u like (actually whatever is needed in your code, therefore it would be good to post your code)

Popular pages Recent additions subscribe to a feed