Reputation
1,175
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
2 14 29
Impact
~55k people reached

  • 0 posts edited
  • 6 helpful flags
  • 763 votes cast
Apr
21
revised Why the static data members have to be defined outside the class separately in C++ (unlike Java)?
edited title
Apr
20
comment Why the static data members have to be defined outside the class separately in C++ (unlike Java)?
@Klaim, what about static members in template ? They are allowed in all the header files as they need to be visible. I am not disputing this answer, but it doesn't match my question also.
Apr
20
revised Why the static data members have to be defined outside the class separately in C++ (unlike Java)?
added 19 characters in body; edited tags
Apr
20
comment Why the static data members have to be defined outside the class separately in C++ (unlike Java)?
My question is not the reason for current behavior, but rather the justification for such language grammar. In other words, suppose if static variables are declared/defined at the same place (like Java) then what can go wrong ?
Apr
20
asked Why the static data members have to be defined outside the class separately in C++ (unlike Java)?
Apr
8
comment What are the disadvantages of naming things alphabetically?
"I bought a car, (named) Honda."
Apr
3
answered Why is C++ backward compatibility important / necessary?
Mar
16
awarded  Peer Pressure
Mar
13
awarded  Critic
Feb
25
comment How would you design a programming language?
C++ - C (some features).
Feb
23
comment Is having C++ header files without extension a good practice?
Some editors like vim have syntax highlighting enabled for ".h" & ".c/.cpp" extensions. Which helps you browsing the code.
Feb
9
awarded  Civic Duty
Feb
4
accepted After writing code, why do I feel that “I would have written better” after some time?
Feb
2
awarded  Notable Question
Feb
1
awarded  Nice Question
Jan
30
comment Are C and/or C++ viable/practical options for web development?
Nice work of CPPCMS. Though, I am from Telecom industry, y'day I was simply seeing the website. It's a good tool for C++ devs.
Jan
22
asked After writing code, why do I feel that “I would have written better” after some time?
Jan
7
comment interview for an internship but I think I may be unprepared
One important thing: arrays and pointers are integral features of C++. Standard library is written using such features. So one needs to understand the basic feature first before jumping directly to std library.
Jan
7
accepted When should I stop programming / coding?
Jan
5
awarded  Good Question