EDN Admin
Well-known member
<table style="font-family:verdana,arial,helvetica,sans-serif; margin:5px; border:1px solid rgb(128,128,128); width:716px; padding:3px; border-collapse:collapse; line-height:normal
<tbody>
<tr>
<td colspan="2" id="x_CH_i404293" style="padding:5px class PQueue{<br/>
public : <br/>
/*other public functions and the constructors,destructors*/<br/>
private : <br/>
struct chunkT{<br/>
vector<int> nums ; <br/>
chunkT *next ; <br/>
}; <br/>
/*other private functions*/<br/>
};<br/>
<br/>
<br/>
<br/>
The implementation code uses the struct chunkT to generate a linked lists of the given type but gives many errors . <br/>
<br/>
basically , the error messages reported demonstrate that the compiler did not identify the data type : chunkT <br/>
<br/>
Please suggest a reason for this behaviour or give a sample function to be written in the implementation that uses a pointer to the struct chunkT . <br/>
<br/>
many thanks in advance . </td>
</tr>
<tr>
<td colspan="2 </td>
</tr>
</tbody>
</table>
View the full article
<tbody>
<tr>
<td colspan="2" id="x_CH_i404293" style="padding:5px class PQueue{<br/>
public : <br/>
/*other public functions and the constructors,destructors*/<br/>
private : <br/>
struct chunkT{<br/>
vector<int> nums ; <br/>
chunkT *next ; <br/>
}; <br/>
/*other private functions*/<br/>
};<br/>
<br/>
<br/>
<br/>
The implementation code uses the struct chunkT to generate a linked lists of the given type but gives many errors . <br/>
<br/>
basically , the error messages reported demonstrate that the compiler did not identify the data type : chunkT <br/>
<br/>
Please suggest a reason for this behaviour or give a sample function to be written in the implementation that uses a pointer to the struct chunkT . <br/>
<br/>
many thanks in advance . </td>
</tr>
<tr>
<td colspan="2 </td>
</tr>
</tbody>
</table>
View the full article