Search:

Type: Posts; User: mr_spanky202

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,152

    Thanks a lot, now to do the calcs, decided to do...

    Thanks a lot, now to do the calcs, decided to do the figures being displayed using printf above and below the array. ok basically to caculate the avrg of a canddates score i have no idea but to...
  2. Replies
    8
    Views
    1,152

    Can anyone suggest how to do this? I cant get it...

    Can anyone suggest how to do this? I cant get it to scan the results in and display them correctly and thats just the start! i can prob figure how to calc the means etc when they are stored in the...
  3. Replies
    8
    Views
    1,152

    something like this? #include ...

    something like this?


    #include <stdio.h>

    typedef struct
    {
    char Name[20];
    int Exm1;
    int Exm2;
  4. Replies
    35
    Views
    16,228

    any idea what could be wrong?im running borland...

    any idea what could be wrong?im running borland turbo C++ 2.01
  5. Replies
    8
    Views
    1,152

    it doesnt seem to store things propely, changing...

    it doesnt seem to store things propely, changing to all for the string allows it a print a name but only the last name its read and the int values read in for the exm results are wrong
  6. Replies
    8
    Views
    1,152

    Just did a first attempt at coding the reading in...

    Just did a first attempt at coding the reading in and storing in the array, but when i attempt to display the array i just a number or if i ask for [0]'s value which should be the first name i also...
  7. Replies
    35
    Views
    16,228

    Thanks a lot, copied the code into the compiler...

    Thanks a lot, copied the code into the compiler and gave it a test ran. Still throws up wrong answers once C and R2 are bigger than one
    eg


    7 0 9 4 13 1522 1216
    77...
  8. Replies
    8
    Views
    1,152

    Fscanning Results

    Im writiing a program that will load in a outside txt file of exams results for candidates in the form
    Name rslt1 rslt2 reslt 3 rslt 4
    with there being up to 40 candidates and a min of 4....
  9. Replies
    35
    Views
    16,228

    got rid of all my functions with pointers to the...

    got rid of all my functions with pointers to the 2D arrays and then tried and its gone even more wrong!
    what have i done wrong?


    #include <stdio.h>
    #define MAX_R 4
    #define MAX_R2 4
    #define...
  10. Replies
    35
    Views
    16,228

    tried as a test run doing a 3x1 x a 1x2 having...

    tried as a test run doing a 3x1 x a 1x2
    having set all the MAX to 4 as 4x4 is the biggest order i have to code for.
    did 54
    2 * 71 16
    9
    and got
    3834 864
    0 0...
  11. Replies
    35
    Views
    16,228

    I doint mind waiting, tried to implement last...

    I doint mind waiting, tried to implement last code you posted, had some sucess but 0 0 in the middle of matrices and element values seemed to go funny 2.
  12. Replies
    35
    Views
    16,228

    int array1[SIZE1][SIZE2] =...

    int array1[SIZE1][SIZE2] = {{1,2},{3,4},{5,6},{7,8}};
    int array2[SIZE3][SIZE4] = {{2,4},{6,1}};
    int array3[SIZE1][SIZE4] = {0};
    tells me that this is a ilegal inisilisation, and you set you...
  13. Replies
    35
    Views
    16,228

    Sorry but doesnt give out the right values for me.

    Sorry but doesnt give out the right values for me.
  14. Replies
    35
    Views
    16,228

    your a star mate

    your a star mate
  15. Replies
    35
    Views
    16,228

    will this work for all size matrices and how do i...

    will this work for all size matrices and how do i relate the variables created earlier in my program such as the order size and element values of thier matrices into this function? Thank you for the...
  16. Replies
    35
    Views
    16,228

    Thats exactly what i want to do.would be great if...

    Thats exactly what i want to do.would be great if you could show me it, thanks :)
  17. Replies
    35
    Views
    16,228

    Im multiplying two real matrices together and...

    Im multiplying two real matrices together and using 2D arrays to store the element values. and N is the common order number betweeen the 2 matrices, ie mat 1 column must be equal to Mat 2's no of...
  18. Replies
    35
    Views
    16,228

    thanks for all the help so far but still doesnt...

    thanks for all the help so far but still doesnt get to heart of why the function dont work, it will run so dont think the pointing is affecting as i also had the same problem when i just ran...
  19. Replies
    35
    Views
    16,228

    I got round the Invalid indirection thing by...

    I got round the Invalid indirection thing by making my own type that consisits of a aray of two ints and called it coord and use this with a pointer to pass a array into and out the function.well in...
  20. Replies
    35
    Views
    16,228

    sorry foe being ignorant but X and Y representing...

    sorry foe being ignorant but X and Y representing what there. and wouldnt:


    oid EleEnt (coord *p_2d, int r, int c, int num)
    {
    int r_i, c_i;
    for(r_i=0; r_i<r; r_i++){
    printf("\nfor row %d...
  21. Replies
    35
    Views
    16,228

    Suspicious Pointer Conversion

    Can anyone explain what this warning means and how to cure,
    Also written a function to multiply 2 matrices but its throwing up half right half wrong answers is there something silly ive missed out...
  22. Replies
    3
    Views
    1,423

    Thanks for debug advivce, discoevered that...

    Thanks for debug advivce, discoevered that display method is fine so have functioned it and everything else is fine the problem part of code is for entering the 2d array,it refuses to record the...
  23. Replies
    3
    Views
    1,423

    Displaying Arrays

    Have written a program to multiply maatrices( as im sure you can guess by some other posts, signs of a desperation so apologies).think i have solved everything bar actually displaying the matrices on...
  24. Replies
    2
    Views
    1,925

    Returning Arrays

    I've written a fucntion whose sole return is an array and now cannot seem to figure out how to return this value to a array created in the main function, it keeps on asking for a Lvalue. any ideas on...
  25. Replies
    8
    Views
    1,487

    think i solved it with [code[ int OrdEnt (char...

    think i solved it with
    [code[
    int OrdEnt (char a, int *r, int *c)
    {do {
    printf("Enter the order of Matrix %d in the format NxN:\n",a);

    scanf ("%dx%d",&*r,&*c);
    if (*r>4 || *c>4)
    {...
Results 1 to 25 of 32
Page 1 of 2 1 2