? Quick Question - Using Variables in Classes #13

+1 Nicholas Kroeger · May 21, 2015
Why don't you need to have variable declaration ( private: string name; ) above your functions? Doesn't the preprocessor need to read and compile from top to bottom so when it gets to the line ( name = x; ) shouldn't the program crash?

Post a Reply

Replies

Oldest  Newest  Rating
0 Nicholas Kroeger · May 22, 2015
so do classes get parsed first in preprocessing??
  • 1

C++

106,966 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator