07-05-2011, 10:04 PM
I use structures only when I need to hold some data without any member functions associated to it (to operate on the member data) and to access the data variables directly.
For example:
1. Reading/Writing data from files and socket streams etc.
2. Passing function arguments in a structure where the function arguments are too many and function syntax looks too lengthy.
Technically there is no big difference between classes and strutures except default accessibility. More over it depends on programming style how we use it.
For example:
1. Reading/Writing data from files and socket streams etc.
2. Passing function arguments in a structure where the function arguments are too many and function syntax looks too lengthy.
Technically there is no big difference between classes and strutures except default accessibility. More over it depends on programming style how we use it.
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
