I am a new student of c++ and am having a hard time with a program. i have never used filestreams before and been getting an error from the compiler that i do not understand. it reads

i dont know if i am missing a #include i have iostream, iomanip, string, and istream
program due in the morning and need help fast. sorry if this is not posted right, but i am new to this too oh the section of code it refers to is:

[rptout.open(prog3.c_string(), ios::app);]

Assuming that prog3 is of type string, your open statement should be:

rptout.open(prog3.c_str(), ios::app);

This give the equivalent of a C-style (character array based) string which the open command needs.