討論串[問題] 陣列宣告
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者bwtalk (是黑是白)時間15年前 (2010/07/15 16:30), 編輯資訊
0
0
0
內容預覽:
遇到的問題:. 這是超新手問題..不過突然想不通Orz. int main(). {. FILE *fileIN = fopen("test.txt","r");. int n = 0;. fscanf(fileIN,"%d",&n);. int array[2][n];. int i,j;. fo
(還有53個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者littleshan (我要加入劍道社!)時間16年前 (2009/09/15 14:17), 編輯資訊
0
0
0
內容預覽:
\※ 引述《alohaiscool (aloha)》之銘言:養成好習慣,using 敘述應該放在所有 #include 之後#include <cmath>. C++ 不支援 variable length array. 也就是你的陣列長度不能放變數. 請改用 vector. 先分析你的迴圈內部使用

推噓3(3推 0噓 5→)留言8則,0人參與, 最新作者alohaiscool (aloha)時間16年前 (2009/09/15 14:08), 編輯資訊
0
0
0
內容預覽:
小弟我是程式初心者,最近在寫monte carlo的程式. 這程式主要是 要把吸收的比重 存到陣列裡頭. #include <iostream>. using std::cout;. #include <iomanip>. using std::setw;. #include <ctime>. #i
(還有2493個字)
首頁
上一頁
1
下一頁
尾頁