Search:

Type: Posts; User: kavka3

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    4,195

    I can`t use calloc ()

    I can`t use calloc ()
  2. Replies
    12
    Views
    4,195

    I have not so understood a question

    I have not so understood a question
  3. Replies
    12
    Views
    4,195

    If I learn as correctly it to make, it will solve...

    If I learn as correctly it to make, it will solve to me all problems
  4. Replies
    1
    Views
    1,763

    Free Sparse Matrix

    The function receives pointer to the structure that contains a sparse matrix and releases all the engaged memory by the structure.

    How to realize this?




    #include <stdlib.h>
    #include...
  5. Replies
    12
    Views
    4,195

    I think it is necessary to make so but is not...

    I think it is necessary to make so but is not assured of it



    Matrix newSparseMatrix(){

    A = (*Cell)malloc(sizeof(Cell));
    Matrix A->row = NULL;
    Matrix A->col = NULL;
    Matrix A->row =...
  6. Replies
    12
    Views
    4,195

    Create Sparse Matrix

    I need build function that creates a structure for sparse empty matrix (that in entirety nils ) and returns pointer to the created structure

    I need to use the functions malloc in order to create a...
  7. Replies
    58
    Views
    7,861

    brewbuck how i can do it without pointers ...

    brewbuck how i can do it without pointers


    rpartition(array + 1, num - 1, sum1, sum2 + array[0]);
  8. Replies
    92
    Views
    18,295

    root4 !!! #include int foo(int...

    root4 !!!



    #include <stdio.h>
    int foo(int a[],int size,int i,int j) {
    // pre-condition: j>i
    if(j>=size) return 1;
    int r1=foo(a,size,j,j+1)+(a[j]>a[i]);
    int r2=foo(a,size,i,j+1);
  9. int min_num(int arr[],int index, int minIndex,...

    int min_num(int arr[],int index, int minIndex, int size){

    if (index==size)
    return minIndex;
    else
    if (arr[index]<arr[minIndex])
    minIndex=index;


    return...
  10. recursive finding index of the min number in array??

    int min_num(int arr[],int index, int minIndex, int size){

    if (index==size)
    return minIndex;
    else
    if (arr[index]<arr[minIndex])
    minIndex=index;

    ...
Results 1 to 10 of 10