I'm attempting to write a function to sort a series of values into asscending order:
void sort(float numbers[]) /* function to sort array */
{
i = 0;
while( i < (size) )...
Type: Posts; User: dirtbiker
I'm attempting to write a function to sort a series of values into asscending order:
void sort(float numbers[]) /* function to sort array */
{
i = 0;
while( i < (size) )...
After some fiddling about i've managed to get it to work, thanks guys!
The code i used is:
#include <stdio.h>
#define MAXSIZE 100
void main()
Unfortunatley i'm restricted to using Salford Plato3 as my compiler so that's not an option and our course hasn't covered dynamic memory allocation so i'm thinking there must be a way to do it using...
That's whats causing my problem. I need to have an array that uses a user defined number of columns. The rest of the program is easy enough its just getting that bit sorted that's causing issues!
...
Thanks for the help Sahil, i think i understand how the #define command works but i'm still having difficulty assigning the value of n using scanf. This is that section of code as it stands at the...
Basically I'm attempting to write this program but it refuses to compile, giving the error message:
Compiling and linking file: Project2.c
D:\C PROJECT\PROJECT2.C(24) : error 185 - A constant...