7.1 Setting Up Your Work Area

I l @ ve RuBoard

The operating system allows you to group files in directories. Just as file folders serve to keep papers together in a filing cabinet, directories serve to keep files together. In this chapter you will be creating a simple calculator program. All the files for this program will be stored in a directory named calc . To create a directory in Unix, execute the following commands:

 %  cd ~  %  mkdir calc  

In MS-DOS, type:

 C:\>  cd \  C:\>  mkdir calc  

To tell the operating system which directory you want to use, in Unix type the command:

 %  cd ~/calc  

In MS-DOS, type:

 C:\>  cd \calc  C:\CALC> 

More information on how to organize directories can be found in your operating system documentation.

Some IDEs will create the directory for you as part of the project creation process.

I l @ ve RuBoard


Practical C++ Programming
Practical C Programming, 3rd Edition
ISBN: 1565923065
EAN: 2147483647
Year: 2003
Pages: 364

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net