Search:

Type: Posts; User: uber

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,944

    C - access violation

    // SparseMatrix.cpp

    #include "stdafx.h"
    #include <stdlib.h>
    #include <stdio.h>

    typedef int Elem;
    typedef struct cell Cell;
    typedef Cell * Matrix;
  2. Replies
    4
    Views
    1,247

    A problem with the game of life

    #include <stdio.h>
    typedef int mat[10][10];

    void input(mat matr)
    {
    int x,y;
    scanf("%d %d",&x,&y);
    while(x!=-1&&y!=-1)
    {
    matr[x][y]==1;
  3. Replies
    1
    Views
    1,052

    Returning more than one value

    Can someone give me a simple example of a function which returns more than one value?
    I tried searching in google, but I failed finding something relevant.

    Thanks in advance.
Results 1 to 3 of 3