C++ Excercise

Develop a program which integers are placed in brackets fractions in quotation marks, and insert it in text file, that's it

I realy dont understandf anything from C++ i hope someone will give me a code.
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.

Please.
i dont need to learn i

Then why are you doing it? If it's not homework, and not your job, why?

It sure sounds like homework
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.
If you do not understand, then you need to learn. Or don't bother and fail.
This proffession is not for me, just please help me with code.

I think this is the algoritm

if(a==round(a)){
Insert in ()
}
else {
insert in ""
}
Develop a program which integers are placed in brackets fractions in quotation marks, and insert it in text file, that's it

i don't see what should be happening can you give an example input and output maybe?
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.
Last edited on
Topic archived. No new replies allowed.