- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 8
- Posts with Downvotes
- 5
- Downvoting Members
- 4
Any problem solver in c++
- Interests
- c++ programming
18 Posted Topics
Re: See first of all, tell whats wrong with your output... | |
Re: try using a temporary file to store the ascending order and then display it. So that you can quit using array names[] | |
Re: PLease provide evidence that you have worked on this. | |
Re: why dont you implement this using a dynamic array so that you dont have that problem or atleast an integer array with a size of 100 or 1000 and try inputting it to the array at line 13 instead of adding it to d. you can consider the arrray as … | |
Re: try using cin.clear() in between lines 25 and 26 | |
Re: if it is a binary file,then u can use read() from the class fstream. if its in text format then the operator >> shoul do fine | |
Re: INput all numbers to an array and then for each element check if it is odd or even.Then check if the next is of same category using a loop until a mismatch is found. Use a counter to count no of consecutive odds or evens. Then after a mismatch is … | |
Re: excatly as wat as he said... we r not here to do hmwrk 4 u | |
Re: can i suggest a more simpler version ( but a bit long) version of the same function????? | |
Re: you have to check if all the contents of both files are written into the output file before the ending of the function. If not the write them into the file. I think the problem will get solved. | |
Re: the code is easy. But you have to develope the code and we are glad to clear the doubts and correct the program. | |
Re: give me ur email id and i will send it to u within 3 days | |
Re: it should be 3 as 3 is the result after second iteration of the loop body. In the second iteration value of count is already 2 when the condition statement is processed. So when entering the loop body, the value of count will get incremented to 3 as count++ is … | |
Re: You have used 2 for loops. One with the variable 'u' and other with variable 'i'. The loop with the variable 'u' controls the row output and the one with 'i' controls column output. step by step process is given below 1. When outer loop iterates for first time, value … | |
Re: jst do (a+b)*(a+b) | |
Re: Try using 3 different variables in same loop. |
The End.