Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > macro question
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 43831 of 48044
Post > Topic >>

macro question

by abir <abirbasak@[EMAIL PROTECTED] > Mar 12, 2008 at 12:31 AM

Hi,
 this is not related to strict c++ , but macro.
I want a statement to be generated like
std::size_t count = sizeof(trace2)/sizeof(coord_t);
	for (std::size_t i = 0; i< count; i += 2){
	  std::cout<<trace2[i]<<" "<<trace2[i+1]<<std::endl;
	}

when i write LOAD_TOKEN(2)

so the main problem is to essentially catenate "token" with a token
id.
I am looking at ##, but in between something fails to compile.
thanks
abir
 




 2 Posts in Topic:
macro question
abir <abirbasak@[EMAIL  2008-03-12 00:31:46 
Re: macro question
Tom <newsgroups423@[EM  2008-03-12 03:39:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:46:21 CDT 2008.