answersLogoWhite

0

How do you Open a text file as C plus plus source code?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

All C++ source code is is a text file with the .cpp extension. So if you save your code as *****.cpp then it is automatically C++ source code.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you Open a text file as C plus plus source code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a source code file in c plus plus?

A source code file is a plain-text file containing C++ instructions. The instructions must be compiled and linked to create a native machine code executable.


A c plus plus code name sumcpp saved on a diskis it process or job?

It is neither. It is a source file.


Where do you get c plus plus software?

A good open source IDE for C++ would be Code::Blocks or Notepad++.


How do you create a simple student file in C Plus Plus?

Whenever you open a file using the function open of fstream class (header file) by using one of it's object you have created, the file is created automatically.You can do it this way:fstream filer;filer.open("Student.dat",ios::out);//This will create a file.This is just a code segment.


How do you open a file in c plus plus?

fopen()


How do you create .exe file in c plus plus?

You can create an exe-file from your C++ source, if you have a compiler.


Can you do c plus plus programming on a mac?

You may use one of several open source compilers and code editors (or even IDEs) to develop and compile C++ code that will operate on a Mac.


What is the use of dc plus plus software?

DC++ is a file sharing client. You use it to share files. It is an open-source version of NeoModus Direct Connect (NMDC) but without the adware.


Source code of DSR and AODV in C plus plus?

code source de dsr sous omnet++4.1 en .cc


How do you put a c plus plus program on a website?

If you mean how do you upload the C++ source code to a website, the simplest way is to organise your solution within a parent folder, with sub-folders for each project in the solution, and ZIP the parent folder. You can then upload the ZIP file just as you would any other file. If you mean how do you upload the source code so that it may be viewed and read in a browser, you will have to copy/paste the code into an HTML file using appropriate tags to format the code. Websites that expect you to upload source code will normally provide you with the tools to do so, usually just by wrapping the code in HTML <code></code> tags. If your code is modularised (multiple source files and headers), you should wrap each file separately and annotate the text to indicate which file is which (or just place the file name as a comment in the source itself, along with any required copyrights). If you're uploading to your own website, then it would be worth looking for a tool that automatically converts your source code into the required HTML.


How do you save sourcecode in c plus plus?

Source code consists of one or more plain text files. Saving those files to disk saves the source code. Source code may also include binary files such as image resources (bitmaps, icons, etc), but does not include external dependencies, executable files or libraries (such as EXE and DLL files). There will normally be a project file associated with the source code files, allowing the source code to be organised, loaded and saved as a single unit within the development software (IDE). Saving the project saves all the changes within the source code. The IDE may also generate some source code files for you, depending on the options you select when you start a new project. Multiple projects are often managed by a solution file. Again, this is a plain text file specific to the IDE. The IDE may also generate databases and cache files to assist in the development of your projects, but these are not considered source files -- they are generated and maintained by the IDE. Similarly with intermediate files created during compilation of your project. Source code is simply the code you write (or is generated for you), and the resource files you create for your project.


Which program produces the obj file assembly or C plus plus?

A compiler produces object code, which is an obj file.