- #1
omgitsroy326
- 30
- 0
I have a program due in couple hours. Professor expects us to know C++ when we never really went over programming; he expects us to just know it .. anyhow
I have two inputs used with scanf
it's toll and norm
these two values need to be put into a data file created by the program
I need a key that allows me to
create a "data.txt" file and if the file exist to overwrite it by erased etc.. doesn't matter and put in the things as
printf(" Toll = %e \m Norm = %e", toll, norm);
and just exit the program
i know it's coded in C... but that's all i know
anyhow if i can code in C or C++ doesnt' matter also could you tell me what library i can use.
I have two inputs used with scanf
it's toll and norm
these two values need to be put into a data file created by the program
I need a key that allows me to
create a "data.txt" file and if the file exist to overwrite it by erased etc.. doesn't matter and put in the things as
printf(" Toll = %e \m Norm = %e", toll, norm);
and just exit the program
i know it's coded in C... but that's all i know
anyhow if i can code in C or C++ doesnt' matter also could you tell me what library i can use.