Thread: Could someone help me?

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    8

    Could someone help me?

    hi,

    could someone tell me what the differences among a block, a function, and a module are?

    Thank you very much.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    a block:


    if(1 != 2) {
    //..an if block..
    }


    a function:

    int f(){
    retur 10;
    }

    a module:

    proggie.c
    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