Could someone help me?

This is a discussion on Could someone help me? within the C Programming forums, part of the General Programming Boards category; hi, could someone tell me what the differences among a block, a function, and a module are? Thank you very ...

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21