Solved

program for operator overloading

Posted on 2009-07-07
3
851 Views
Last Modified: 2012-05-07
i want to know how to write the program for operator overloading
0
Comment
Question by:chaitu chaitu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24796973
C is not the language for operator overloading. You must be thinking C++. Can you clarify what you are trying to do?
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 24796975
I'm not sure what you mean by that, but the C language does not allow operator overloading.

C++ does, so maybe you meant to post it in that zone ?

Could you clarify your question ?
0
 
LVL 40

Accepted Solution

by:
evilrix earned 500 total points
ID: 24797877
And if you were referring to C++ it really depends on what operator you wish to overload as the syntax and semantics is different for each.

Some references you might find useful
http://www.cs.caltech.edu/courses/cs11/material/cpp/donnie/cpp-ops.html
http://www.parashift.com/c++-faq-lite/operator-overloading.html
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Operators/Operator_Overloading

Note, if you are referring to C and not C++ then (a) these reference will NOT help you and (b) mrjoltcola and Infinity08 have answered your question already :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question