Hi again. I did wut u advised. But now it tells me, "passing arg 1 of readValues from incompatible pointer type" and it says that for arg 2, 3 and 4 as well.
void listValues()
{
...
Type: Posts; User: key4life
Hi again. I did wut u advised. But now it tells me, "passing arg 1 of readValues from incompatible pointer type" and it says that for arg 2, 3 and 4 as well.
void listValues()
{
...
i only need to fill the elements of one array. But I have to fill elements into carModelArray, sLengthArray, rSlopeArray, speedArray. I tried using the pointers to simply edit the values by...
@ Adak. I have to do it this way.
@ Elysia. Thanks alot for the explanation. I think i understand what you're saying. However, I'm not sure how to go about making more than one array though. I...
Thanks so far. Well I'm not sure wut you mean by "one array". readvalues loops until 999 is entered for sLength . And after every loop all arrays change to their second element. I dont get wut u...
Hi Guys. I'm writing a program to accept some values, store them in arrays, then pass these arrays back the to caller to be printed. But when I print, i get weird output. like...0.002.007. Can...
Well I adjusted the loop size so that it loops for the combined size of the arrays to be merged. And I did what Adak suggested, I compared the two smallest, then stored the smaller in array 3, then I...
I dont think I would need to run the bubble sort again in merge() because the arrays are already sorted, so no need to re-sort. I would just be comparing sorted values. So it would come out in...
Hello all. I'm having trouble merging arrays here. So first I allow the user to enter the size of the array, followed by the elements. Then I use a bubble sort to get them in ascending order. And I...
Well when i run this now, after the first input of name it works fine. then after i input a score it jus skips the next name scan (outputs the prompt tho) then prompts for the next score.
...
Ok thanks ALOT guys. It works good now. LAST problem i promise. I really dont know how to read strings with a space. Like if i enter John Brown. It messes up. Can only store One string at a time....
Ok so I implemented strcpy. Can someone show me how to do the two dimensional array for the names?
#include<stdio.h>
#include<conio.h>
#include<string.h>
int main(void)
{
char...
Thanks alot guys. You helped me to correctly output the names. But now the program seems to output the name that was entered last with the correct score even if they're not associated with each...
I cant seem to get this to work. Keep getting weird output. No clue how to fix it. Can someone help me please?
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{