% is for tracking references to CLI object
& is for passing native heap objects
If I use % and pass a native object, what is the compiled behavior? In other words given the following trivial example, does the code for x and y end up being the same, or does x box the passed value and then unbox it?
void Test(int% x, int& y)<br />
void SomeFunction()<br />
int x = 0;<br />
int y = 1;<br />
// A bunch of stuff happens<br />
Test(x, y);<br />
// A bunch more stuff happens<br />
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
i am infront of you with another doubt. We are using cin and cout in C++. Whether these are class or object.
if they are object how can we use them without declaring that it belongs to this class. Thanks for u in advance.
As i am a beginer in C++ i met with a confusion. I would like to know where the actual defention of library function is present. For eg: the defention of strlen(). Is it present in string.h. Or just the declaration only present in the string.h. please clrify my doubts.
I have an Access table made up of various "ingredients". From this table by selecting various "ingredients" i want to create another table (or just create new entries in another table) of "recipe" names and store this table in the same or another Access file.
I am connecting to the ingredients table and filling a dataset with it, through a DataAdapter, then i'm displaying the contents in a DataGrid in which i've added a CheckBox column. I'm planning to use this checkbox column to select the ingredients for the various recipes.
I know i can link such tables by using a column in the ingredients table which will specify a recipe name for each ingredient. However my problem is that some of the recipes will share the same ingredients so i can't use such a column to create the relationship.
I think i posted this one in the wrong Forum, so i posted it in the SQL/ADO/ADO.NET forum and got my answer thanks to ToddHileHoffer.
Will use three tables, one for the "recipes", one for the "ingredients" and one for the "recipeingredients" and the relation will be between the recipes table and the recipeingredients table. Just in case anyone else was wandering.