if I have:
struct UserAccount
{
long int pin;
string userName; //<-- string class object
double balance;
};
and I do:
UserAccount currentUser; memset( ¤tUser, 0, sizeof(UserAccount) );
also, is it just a matter of preference to do use the type for the third parameter, or is there a rule to use the name of the type instead, in case someone should change the type, or for any other reason(s) ??
What about using memset() on a class??
This post has been edited by taylorc8: 12 March 2010 - 10:57 PM

New Topic/Question
Reply




MultiQuote





|