Sign in to follow this  
MadsGustaf

what does [ic::ccc] means?

Recommended Posts

so, quick question, i know what this code do, just not why [ic:ccc] is necesary. code snippet: //////// // Draw the light cycle trails for (int i = 0; i < 2; i++) { // Create a blue/orange pen depending on which trail is being drawn HPEN hPen = CreatePen(PS_SOLID, 5, (i == 0) ?[ic::ccc]RGB(0, 0, 255):RGB(255, 146, 73)); //////// the author of the book im currently reading has the [ic::ccc] thingy written in the book, but it isnt in the CD. For curiosity id like to know what it does.. thanks in advice!

Share this post


Link to post
Share on other sites
Quote:
Original post by Konfusius
This is probably an annotation which wasn't processed or filtered out when the book was compiled for printing.


Correct. It's a command for formatting code where the line is longer than the physical printed line. It should have been stripped but obviously wasn't.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this