How do you display code snippets in MS Word preserving format and syntax highlighting?

Does anyone know a way to display code in Microsoft Word documents that preserves coloring and formatting? Preferably, the method would also be unobtrusive and easy to update. I have tried to include code as regular text which looks awful and gets in the way when editing regular text. I have also tried inserting objects, … Read more

What is the “–>” operator in C/C++?

After reading Hidden Features and Dark Corners of C++/STL on comp.lang.c++.moderated, I was completely surprised that the following snippet compiled and worked in both Visual Studio 2008 and G++ 4.4. Here’s the code: #include <stdio.h> int main() { int x = 10; while (x –> 0) // x goes to 0 { printf(“%d “, x); … Read more