MS Visual C++ won't print "_"s
Hi, just for refrance purposes, I''m doing an incredibly simple project for the incredibly simple course, known as "AP" Computer Science. Anyway, the compiler they use in my school is so retarded that I figured I would do all of my projects on VC++. The problem is that I need to print my programs for my teacher, but the underscores (such as in variable names or class types) for some reason won''t print (there''s just a blank space). Is there any ideas on why? Help would be greatly appreciated.
- IOFILE
I have the exact same problem. I am guessing that you have a Hewlett Packard inkjet. My 722C printer will not print out underscores using the default font of the Visual C++ IDE. This problem is extremely annoying but I do not think its a bug in VC++. Why? If I go to work and print to the HP laser using the same font it comes out perfectly.
What I''d suggest is changing the font used for VC++ source listings from Courier to one of the true type fonts (just make sure you use a nice fixed-width font or things wont line up).
Hope this helps.
- Dire Wolf
direwolf@digitalfiends.com
What I''d suggest is changing the font used for VC++ source listings from Courier to one of the true type fonts (just make sure you use a nice fixed-width font or things wont line up).
Hope this helps.
- Dire Wolf
direwolf@digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
www.digitalfiends.com
I would just print it without the _ and then just use a black pen or whatever to fill them in. I don''t have this problem, or don''t know I do, since I usually don''t like to print 80+ pages of code....just an opinion.
=======================================
A man with no head is still a man.
A head with no man is plain freaky.
=======================================
A man with no head is still a man.
A head with no man is plain freaky.
Um no. Sorry, I''m not going to print a program thats over 20 pages of C++ code and wade through them with a black pen. I have more important things to do with my time at work.
- Dire Wolf
direwolf@digitalfiends.com
- Dire Wolf
direwolf@digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
www.digitalfiends.com
why not just copy it to a word processor and change the font?
or get Visual Assist that lets you customize a whole heap of things in MSVC, including fonts and colours
or get Visual Assist that lets you customize a whole heap of things in MSVC, including fonts and colours
This is the year 2000. Why are you still making hardcopies of your code? That''s so 1980s.
Thanks for the advice in changing the fonts and stuff. It helped me out a HHHUUUUUGGGEEE amount. I do have an HP Inkjet 720c, so I guess there''s my problem. For all of you who wonder why I must print out hard copies of my program, it is for AP CS like I said. The programs my teacher gives us are hardly 2 pages long, and he is stuck in the 70''s mentality of programming, so he damands a printed version of them all. Trust me, for the projects I do on my own, when I get into them, there are like 20 pages per header, and A LOT of headers. I would never print that stuff. It was just a concern for school. Once again, thanks everybody for your help.
- IOFILE
Quantum why do I need to have a separate program to change fonts and styles in VC++? That functionality is already built in.
Hard copies of code are necessary for documentation purposes. Granted most of the time you will have a few code snippets here or there. You could also ask why we still have books when CDROMs are long lasting (100 years at least), can store more and in great formats etc. The problem with that is many people, including myself, prefer to have a nice book in their hands. Sometimes a laptop is not close by and a book doesn''t need a battery <though I must admit I do read a LOT of technical references etc online>
- Dire Wolf
direwolf@digitalfiends.com
Hard copies of code are necessary for documentation purposes. Granted most of the time you will have a few code snippets here or there. You could also ask why we still have books when CDROMs are long lasting (100 years at least), can store more and in great formats etc. The problem with that is many people, including myself, prefer to have a nice book in their hands. Sometimes a laptop is not close by and a book doesn''t need a battery <though I must admit I do read a LOT of technical references etc online>
- Dire Wolf
direwolf@digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
www.digitalfiends.com
Why are you using _? _ is for losers.
int this_variable_sucks;
int thisVariableRocks;
int this_variable_sucks;
int thisVariableRocks;
Strange, I prefer the underscore convention. I wouldn''t name something that long anyhow. Then again I don''t believe in Hungarian notation and my code is perfectly readable - go figure.
- Dire Wolf
direwolf@digitalfiends.com
- Dire Wolf
direwolf@digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
www.digitalfiends.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement