Thank you, Salem.
I see. I have to write to each element separately, rather than attempt to refernce a 'row' or 'set' of elements. Thank you for your help. I think I can work that out.
After...
Type: Posts; User: astro_not
Thank you, Salem.
I see. I have to write to each element separately, rather than attempt to refernce a 'row' or 'set' of elements. Thank you for your help. I think I can work that out.
After...
a better solution is enum since enum is a 'relabel' of integers. By assigning Roman numeral symbols to underlying integers, they can be sorted anytime by their integer value.
I tried to simplify by avoiding passing to a function :
/*for(u = 1; u < FLIGHT; ++u)
for(v = FLIGHT; u < v; --v)
if(scorecard[v-1][4] < scorecard[v][4])
temp[5] =...
I would like to sort a 2D array[3][5] of float in descending order based on the last 'cell' e.g. [0][4], [1][4], . . .
. . .
scorecard[i][j] = ttl_pts; // load array
for(u =...
Looks like I need to study strncmp and strcmp functions.
Here is where I am starting:
for (i = 0; (i <= length - 1); i++)
if (strncmp(codes[i], roman[i], length))
{...
this looks like the concept I am looking for. As I said, pointers are over the horizon for me still. I see how your statement creates a pointer to a character array with elements ordered by value...
yes, VC would be incorrect input. I can report an input error, or I can suggest CV as the proper input. Any response appears to require the same processing from the function.
Keith
Thank you for looking at this with me Salem. I appreciate your time.
I am sorting input of a character string of Roman Numerals, where I want to validate input as being in proper order.
...
I would like to sort a set of characters by other than their ascii sequence: Roman Numeral characters. I have not conceived an alogrithm to work from.
I tried reading the char array and...
These changes made a vast improvment in the functionality and operability of the display screen that caused me a problem using scanf. My thanks to SALEM for assisting with specific code and...
Salem,
Thank you, I did not realize that the input stream needs to be cleared. I very much appreciate you writing -- taking time to reply. This gives me the direction needed to understand what is...
thanks pinko,
I updated the type of status to char and revised the notation on the scanf line. There must be a logic error. I am thinking that the for(status='0'; status !='q'; ) line at the...
I do not understand how to pause my display loop. I thought the second scanf would do the job, but it doesn't. Here is the code
int main ()
{
int op1; // user input operand1
int...