You'll never understand it if people keep giving you code.
Besides, this isn't a homework service. We'll help you through it if you are willing to learn and do the work yourself, but we're not going to just hand you a solution.
I dont want to learn, i just really need that coude, its not homework, C++ is not my proffesion , i understand that, i dont need to learn it, im just askin for help.
Yea i understand, its one of my jobs what i have to do, but listen, im studiing in programming school, and this is my last job what i have to give, and i leave this school, becouse i have understood, that this is not for me, i just dont know how to do it.
Thats why im asking for this.
Develop a program which integers are placed in brackets fractions in quotation marks, and insert it in text file, that's it
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// #include what you would need for cout, endl, etc
// #include what you would need for file I/O
int main()
{
// create an ofstream object
// open text file
// check to ensure txt file is open (dont see why it wouldnt, but this cant hurt)
// declare variables
// ask for user input
// use an overloaded function to put integers in brackets
// or fractions in quotation marks (or use if statements)
// and insert that into a text file
// close text file
return 0;
}
Edit that with the appropriate code, and bam, you're done.