
- Forum
- Programming Talk
- C and C++
- Data binding in C++
Data binding in C++
This is a discussion on Data binding in C++ within the C and C++ forums, part of the Programming Talk category; Hi, I want to know about What is Data Binding, and type of Data Binding in C++ with Example?. Thanks& ...
-
06-08-2009, 09:02 AM #1naresh1822 Guest
Data binding in C++
Hi,
I want to know about
What is Data Binding, and type of Data Binding in C++ with Example?.
Thanks& Regards
Naresh Mishra
-
06-25-2009, 12:21 PM #2
- Join Date
- Jun 2009
- Answers
- 1
can you help me building a data structure
-
07-16-2009, 11:27 AM #3
- Join Date
- Jul 2009
- Answers
- 1
By data binding I'm assuming that means storing data in a variable. I'm not familiar with that term, but my guess seems to make sense. Yes, one of the principles of the C++ language is the ability to store data in variables for program use. A simple example would be an integer: int x = 5; There now we have just binding the number "5" to the variable "x". "x" can be substituted for 5 anywhere within the scope of that variable now. A function is a way of writing common code such that you don't have to copy and paste code all over your program. For example, maybe you need to ask 5 people for their user names and passwords in a program. Instead of copying and pasting the code to do that 5 times you can put it in a function and just call the function 5 times instead.
-
One of the principles of the C++ language is the ability to store data in variables for program use. A simple example would be an integer: int x = 5; There now we have just binding the number "5" to the variable "x". "x" can be substituted for 5 anywhere within the scope of that variable now. A function is a way of writing common code such that you don't have to copy and paste code all over your program.
-
Sponsored Ads

Reply With Quote





