Search:

Type: Posts; User: dirtbiker

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    869

    Issues With Sorting Program

    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) )...
  2. Replies
    9
    Views
    1,436

    After some fiddling about i've managed to get it...

    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()
  3. Replies
    9
    Views
    1,436

    Unfortunatley i'm restricted to using Salford...

    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...
  4. Replies
    9
    Views
    1,436

    That's whats causing my problem. I need to have...

    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!
    ...
  5. Replies
    9
    Views
    1,436

    Thanks for the help Sahil, i think i understand...

    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...
  6. Replies
    9
    Views
    1,436

    Difficulty With Defining an Array

    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...
Results 1 to 6 of 6