I got it, I stayed up all last night. I made a second array to keep the order then when I ran my sort functions I sorted my order array to sort the same way then after processing I resorted it using...
Type: Posts; User: idfjvafnv
I got it, I stayed up all last night. I made a second array to keep the order then when I ran my sort functions I sorted my order array to sort the same way then after processing I resorted it using...
yea that was my second thought to make a separate array. This is for an assignment so I didn't want to post my code because I don't want someone to do it for me I really just want someone to give me...
I thought about those ideas but the way the program needs to be written, after my binary search I need to call a separate function to put my array back to the original order. I can't have a copied...
I'm trying to write a program that searches an array for an entered number, I am trying to figure out how to write the last part and that is to unsort the array back to the original value if it was...
when you say ask_again; what could I use to make that loop. I just wanna try that then I'll try and go back and redo it in a better way
I added a bit more hopefully to clarify a bit.
acc will eventually = 9999 because that it how the user will let the program know it is done entering information.
accno() is just asking for a...
I have my program running just about the way I want it to but can't work out some final details.
Basically I want to run this loop while the acc does not = 9999
//loop to gather account...
Ok, I removed the sketchy return statements but I still cannot get my values to return as numbers with 2 decimals any help on where I'm wrong at here.
#include <stdio.h>
int accno();
double...
Ok I'm starting to understand where you're coming from, I'll remove those returns for now and work on them a little later right now I need to focus on getting my values to return correctly and pass...
I see why your example doesn't work, it would be trying to print rv as an integer and that wouldn't work. But when I return the printf I return the same function right after so that it prints invalid...
these statements work for me and they return the printf statement then prompt me for the function value again.
When I wrote return printf() I assumed it would return the text in printf.
Hey everyone,
I am having trouble with writing a program that uses functions. I am very new to programming and am having a hard time grasping some concepts.
What I need to do is write a series...