for(int a = 0; a < sortedStack; a++)
{
tempStack[stackCount] = stack[a];
stackCount++;
}
Why it's not a<sortedStack-1...
Type: Posts; User: Mr.777
for(int a = 0; a < sortedStack; a++)
{
tempStack[stackCount] = stack[a];
stackCount++;
}
Why it's not a<sortedStack-1...
1. How will we know, what are the deviations in your program?
2. Kindly ask the exact problem, you need us to look at and help you. No one will read this lengthy code.