Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Linking code from external hosts is not allowed. Minimal, valid and verifiable sample code, that represents your specific problem, must be included as part of the question. Commented Aug 18, 2015 at 1:59
  • 1
    you only declared static variable, static variable also should be defined out side of your class.(i.e) int A::x = some_value; your trying to modify static in your code. Commented Aug 18, 2015 at 1:59
  • tks everyone, i fixed Commented Aug 18, 2015 at 2:25