
c++
karine_
这个作者很懒,什么都没留下…
展开
-
c++ 输出保留n位小数点的数
需要导入的头文件是: #include //在iomanip头文件中有对其进行格式操作的函数。 int main(){ ............... double num; //注意类型 coutsetiosflags(ios::fixed); //可以设置以浮点数形式输出 cout.precision(n); //原创 2016-04-02 16:28:22 · 983 阅读 · 0 评论 -
c++ 传递二维数组
int function(int **a){ ............................. return xxx; } int main(){ int n,m; cin>>n>>m; int **a = new int *[n]; for(int i =0;i a[i] = new int原创 2016-04-02 16:35:59 · 256 阅读 · 0 评论