CS333 - Problem Solving and Object Oriented Programming in
C++
[ Home | Schedule
| Personal
Progress | Search | Glossary | Help
]
Using Microsoft Editors for Editing C++ Source Files
You need to register the file type with the WINDOWS system. Here is the way I did it on
my system.( If this does not work for you, goto help/index - type "file types" -
follow directions)
- Double-click the My Computer icon.
- On the View menu, click Options, and then click the File Types tab.
- click "New Type"
- Type "C++ Source File" in the "Description of type" box
- Type "cpp" in the "Associated extension" box
- Select "text/plain" in the "Content Type (MIME)" pull down menu
- For "Default Extension for Content Type" use ".cpp"
Now Notepad/ Wordpad and Word should allow you save with extension ".cpp"
- For Notepad
- Select "File/Save as"
- Change "Save as Type" for "all files"
- In the filename box, type filename with the extension (e.g. "main.cpp")
- For WordPad
- Select "File/Save as"
- Change "Save as Type" for "Text Document"
- In the filename box, type filename with the extension (e.g. "main.cpp")
- IF a dialog box comes up, select "Text Document"
- For Word
- to prevent lines from being split into two, set the page size very large as follows:
- File/Page Setup
- set "Paper size" to 11 inches should be good
- Select "File/Save as"
- Change "Save as Type" for "text only with line breaks"
- In the filename box, type filename with the extension (e.g. "main.cpp")
Copyright chris wild 1999.
For problems or questions regarding this website contact [Chris
Wild (e-mail:cs333@cs.odu.edu].
Last updated: September 25, 1999.