Discussion:
A3q2
(too old to reply)
kun qian
2011-06-12 06:55:23 UTC
Permalink
According to the assignment I should compare my program with that of:

$ cpp -P -C -traditional-cpp xxx.cc


However, by following the instructions from the assignment the program
would print the included files in reverse order in contrast to the
command above. But then the assignment goes on to say that the output
should be the same. There seem to be a contradiction here, am I
misunderstanding something?
Ashif Harji
2011-06-12 13:59:39 UTC
Permalink
For valid input, the output from "cpp -P -C -traditional-cpp xxx.cc"
should match the output for the assignment. If in doubt, make sure your
output conforms to the reference executable available on the assignments
page.

ashif
Post by kun qian
$ cpp -P -C -traditional-cpp xxx.cc
However, by following the instructions from the assignment the program
would print the included files in reverse order in contrast to the
command above. But then the assignment goes on to say that the output
should be the same. There seem to be a contradiction here, am I
misunderstanding something?
Loading...