摘要:
通过局部函数对全局变量赋值或者更改其值,通过引用方式。记在函数的参量前加&,其他规格不变。例如 void GetPathParameter(int &Model_No, std::string ClimVari, std::string Scenario, int * &op, std::strin 阅读全文
posted @ 2018-07-24 22:29
一支向阳花
阅读(188)
评论(0)
推荐(0)
摘要:
指针与数组 1.联系:数组可以用指针代替。 std::string * ValidateMoldelFilePrefix=new std::string[varibles]; 使用时候表达方式 ValidateMoldelFilePrefix[i] 2.不同 (1)数组 初始化 std::strin 阅读全文
posted @ 2018-07-24 22:24
一支向阳花
阅读(455)
评论(0)
推荐(0)

浙公网安备 33010602011771号