Problem

16 views
Skip to first unread message

Mehran Khan

unread,
May 12, 2013, 4:36:32 AM5/12/13
to cs1003-s...@googlegroups.com
Assalaam-o-Alikum,
Respected Sir & Madam,
                     Please tell me what the below statement do in .cpp file of class for static variable and If I do not write this statement than the compiler gives Linker error, Kindly explain why this error comes. 


int CDummy::n; 

CDummy is class name and "n" is public static variable of this class.

Regards,
Mehran Khan

Sami Ullah Kashif

unread,
May 12, 2013, 6:25:28 AM5/12/13
to cs1003-s...@googlegroups.com
Walaikum Assalam,
                             Try to initialize it to something and then tell me whether it resolves the error or not.

Regards,
Sami
Reply all
Reply to author
Forward
0 new messages