資源簡介
vim配置成強大的IDE,絕對的好用.本人嘗試了好多,感覺這款配置,首先配置容易,再者配置后結果相當滿意
代碼片段和文件信息
/*?
?*?===??FUNCTION??======================================================================
?*?????????Name:??calloc_double_matrix
?*??Description:??Allocate?a?dynamic?double-matrix?of?size?rows*columns;
?*????????????????return?a?pointer.
?*?=====================================================================================
?*/
??double**
calloc_double_matrix?(?int?rows?int?columns?)
{
??int??????i;
??double?**m;
??m?????=?calloc?(?rows?sizeof(double*)?);???????/*?allocate?pointer?array?????*/
??assert(?m?!=?NULL?);????????????????????????????/*?abort?if?allocation?failed?*/
??*m????=?calloc?(?rows*columns?sizeof(double)?);/*?allocate?data?array????????*/
??assert(*m?!=?NULL?);????????????????????????????/*?abort?if?allocation?failed?*/
??for?(?i=1;?i ????m[i]??=?m[i-1]?+?columns;
??return?m;
}??/*?----------??end?of?function?calloc_double_matrix??----------?*/
/*?
?*?===??FUNCTION??======================================================================
?*?????????Name:??free_matrix_double
?*??Description:??Free?a?dynamic?double-matrix.
?*?=====================================================================================
?*/
??void
free_double_matrix?(?double?**m?)
{
??free(*m);???????????????????????????????????????/*?free?data?array????????????*/
??free(?m);???????????????????????????????????????/*?free?pointer?array?????????*/
??return?;
}??/*?----------??end?of?function?free_double_matrix??----------?*/
- 上一篇:電力拖動自動控制系統陳伯時.rar
- 下一篇:并行程序設計導論
評論
共有 條評論