#define HEADER = 5
int _tmain(int argc, _TCHAR* argv[])
{
vector<int> v;
v.push_back(HEADER);
return 0;
}
why this code gives me a syntex error ?
as far as i preprocessor get treated like int.
#define HEADER = 5
int _tmain(int argc, _TCHAR* argv[])
{
vector<int> v;
v.push_back(HEADER);
return 0;
}
why this code gives me a syntex error ?
as far as i preprocessor get treated like int.
Copyright © 2021 Jogjafile Inc.
#define HEADER = 5replacesHEADERwith= 5You want
#define HEADER 5without=Side note, don´t use non-standard
_tmain.compiles without syntax errors.