hi, i'm working with php short hand for the first time and i'm trying to edit this code: <?=($c->is_admin == 'Yes')?'<a href="msg_update.php" input type="submit" class="button" value="protected page">Update Home Page Message</a>' : ' <p> This is not the page you were looking for. </p> ' ?> i want to do something like this : <?=($c->is_admin == 'Yes')?'<a href="msg_update.php" input type="submit" class="button" value="protected page">Update Home Page Message</a>' $con = @mysql_connect(my login stuff); mysql_select_db(more stuff); // database if (!$con) { echo'connection error'; die('Could not connect: ' . mysql_error()); } : ' <p> This is not the page you were looking for. </p> ' …

Member Avatar
Member Avatar
+0 forum 1

I know that the colon is used for inheritance. [CODE] class x { public: long y; } class Z : X { public: virtual void ret_value(y); }[/CODE] but what does this mean? [CODE]int offset:16;[/CODE] i cannot find he answer to this anywhere.

Member Avatar
Member Avatar
+0 forum 2

I am learning C++ .net programming and was wondering why the code for creating a messagebox is [CODE=C#]MessageBox.Show("Hello, World!");[/CODE] in C# and [CODE=C++]MessageBox::Show("Hello, World!");[/CODE] in C++. Why is the dot substituted with a double colon in the C++ code? My source: [url]http://msdn.microsoft.com/nb-no/library/z9w2f38k[/url]

Member Avatar
Member Avatar
+0 forum 2

I just started an advanced C++ course and my instructor sent around a file with this piece of code: [code]class smallobj // specify a class { public: smallobj() : iData(0){} // Constructor smallobj(int iInValue) : iData(iInValue) {} // Overloaded Constructor ~smallobj() {} // Destructor void setdata(int d) // member function (sets iData) { iData = d; } // define the function here because // it's so short void showdata() // member function to display iData {cout << "\nThe Value of data is: " << iData; } private: int iData; };[/code] I'm confused by the prototypes of the constructors. I've seen …

Member Avatar
Member Avatar
+0 forum 3

The End.