are u sure??visuddha said:why don't you declare the functions in this manner
void area(int);
void area(float);
it will work!
Turbo C++ is not Microsoft C. its from Borland and its C++ (not C).senewimala1988 said:Mama turbo C++ use kala windows compiler ekak viddihata..Eketh error ekak enavane banz???
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.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???
Yeah...Critical mistake...anudis said: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?
But I have used it earlier machan!!!kosandpol said:Turbo C++ is not Microsoft C. its from Borland and its C++ (not C).
so ?senewimala1988 said:But I have used it earlier machan!!!
ok ok ...Thanx for the help!!!kosandpol said: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.
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.
$ g++ -o Functions2 Functions2.c
$ ./Functions2
Ah thanx for telling me the compiling method!!!kosandpol said:this is correct. Use g++ and that C++ program will compile just fine in Ubuntu
Code:$ g++ -o functions2c functions2c.c $ ./functions2c
