Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
17% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
8
Posts with Downvotes
5
Downvoting Members
4
1 Commented Post
0 Endorsements
~9K People Reached
About Me

Any problem solver in c++

Interests
c++ programming
Favorite Forums
Favorite Tags

18 Posted Topics

Member Avatar for abdullahkafkas
Member Avatar for phony

try using a temporary file to store the ascending order and then display it. So that you can quit using array names[]

Member Avatar for rubberman
0
177
Member Avatar for Ivzirnalsradeys
Member Avatar for EarhawkPH

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 …

Member Avatar for sanjulovers
0
249
Member Avatar for kartikeswar.parida
Member Avatar for rehan_5

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

Member Avatar for sanjulovers
0
4K
Member Avatar for iceparticle.com

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 …

Member Avatar for sanjulovers
0
218
Member Avatar for arthur5645
Member Avatar for babyani
Member Avatar for DavidB
Member Avatar for DavidB
1
736
Member Avatar for dirtydit27

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.

Member Avatar for aakash121
0
415
Member Avatar for soche123

the code is easy. But you have to develope the code and we are glad to clear the doubts and correct the program.

Member Avatar for sanjulovers
0
182
Member Avatar for HUSSEINI
Member Avatar for soche123

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 …

Member Avatar for RonalBertogi
0
213
Member Avatar for mr.unknown

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 …

Member Avatar for sanjulovers
0
183
Member Avatar for Ram J
Member Avatar for sanjulovers
0
205
Member Avatar for pearl doll
Member Avatar for sanyam.mishra

The End.