C Program-Error

kosandpol

Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    senewimala1988 said:
    Mama turbo C++ use kala windows compiler ekak viddihata..Eketh error ekak enavane banz???
    Turbo C++ is not Microsoft C. its from Borland and its C++ (not C).
     

    anudis

    Member
    Feb 9, 2008
    102
    3
    0
    machan!! C doesn't allow to overload methods, But C++ does........!!! I think you are referring to a C++ note. Even though its moratuwa they can have mistakes ne?
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    senewimala1988 said:
    Ohoma ahanna epa banz...
    Mama lectures giye eka 3 paarak withara wage...Sometimes eeta kalin thiyena practical eka ivara venna godak wela yanava...Ethkotath yanna bari wenawa...
    anika lecturer hoda nida gannama thama...ekkenek enava...Eya nam charrrr...


    Mokakda ubuntu vala thiyena avula???
    mata therenne ne...Fedora valata hariyaida???
    Ubuntu valata solution ekak aththema nadda???
    Dont blame the lecturer. if you want to learn, you have to take the initiative and learn. You cant expect the lecturer to do that for you.

    If you want to learn GNU C, there are loads of notes and tutes on the web for it. Search for them using Google.
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    senewimala1988 said:
    But I have used it earlier machan!!!
    so ?
    Its C++ so any function overloading will work on that. IF you got an error there, its probably due to some other syntax error.
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    silence said:
    What you're trying to do is overload the function 'area'... problem is "pure C" doesn't allow function overloading.

    How ever C++ does... so does the g++ compiler. So instead of using gcc, use g++ to compile this, it should work right out.

    this is correct. Use g++ and that C++ program will compile just fine in Ubuntu

    Code:
    $ g++ -o Functions2 Functions2.c
    $ ./Functions2