how to pass a structure to a function in C++?
<p>The structure is defined as </p>

<pre><code>struct state{

    string node_name;
    int node_no;
    int node_val;
    int occupant;
    vector&lt;int&gt;node_con;
        };

state s[100][100]
</code></pre>

<p>I want to send it to a fucntion along with i and j values , where s[i][j] , (i->rows , j-> columns) . How will the struct be sent with both i and j ?</p>
