Description: Handling preprocessor directives.
Write a program that processes a preprocessor directive in the file containing the program in C. Should properly handle the directive # include, # define, # ifdef and ifndef.
In the implementation of # define macro functions do not require treatment.
In the implementation of # include nesting should be supported by any standard way. The standard way to headers can be specified by the environment variable INCLUDE or the command line.
Program processing text files.
All Programs in this section read data from the input text file, convert it in some way and write the result in the output file.
For all programs in this section, the last two command-line option - input file name and output file name. If not specified the input file name, then the data is read from standard input. If not specified the output file name, then the result is printed to standard output.
To Search:
File list (Check if you may need any files):
Задание 7\Home7\Debug\Home7.exe
................\.....\.....\Home7.ilk
................\.....\.....\Home7.pdb
................\.....\Home7\Home7.cpp
................\.....\.....\Home7.vcproj
................\.....\.....\Home7.vcproj.HOME-749BAD0A11.Student.user
................\.....\.....\Home7.vcproj.saboteur.Владимир.user
................\.....\.....\Home7.vcproj.TSU-E320F48A4E3.Student.user
................\.....\.....\ReadMe.txt
................\.....\.....\stdafx.cpp
................\.....\.....\stdafx.h
................\.....\.....\targetver.h
................\.....\Home7.ncb
................\.....\Home7.sln
................\.....\Home7.suo
................\.....\.....\Debug
................\.....\Debug
................\.....\Home7
................\Home7
Задание 7