Ah, I should've mentioned for this assignment I'm not allowed to use srand for this assignment. but thank you.
Type: Posts; User: arcadedragon
Ah, I should've mentioned for this assignment I'm not allowed to use srand for this assignment. but thank you.
Hello, I have a program here that must generate 256 random numbers between 20 and -20 and write them to a file, numbers.txt. Then I must print the first 10 numbers generated. However with the code I...
I've switch everything and I'm being told A[i].x is of type * char? This is everything after I've edited it.
And thanks for the tip about swap, I would've completely missed that.
#include...
I've made these changes but still won't accept A[j].x or A[j]->x as integer types when I attempt to print them with %d. Any other advice?
I wouldn't space out semi-colons, but my Professor...
So I've got a program where I have to save a list of coordinate points into an array. I have to print the x and y coordinates of a specific point from the array but when I use %d it tells me it...