[ create a new paste ] login | about

Link: http://codepad.org/yC92Ehvy    [ raw code | fork ]

C++, pasted on Apr 24:
//check to see if file opens
ifstream in("pik3numbers.txt", ios::in);
 
if (!in) {
    cout << "Cannot open the input file.\n";
    return 0;
}





	// array that will be compared from
	int previous_pick_3_numbers[]={}
    //{346,794,861,529,347,925,196,969,243,837,740,025,822,809,454,843,942,510,573,346};
	
	for (i = 0; i < 3000; i++){ //Input the data from the file, size mDim x mDim
    for (j = 0; j < 300; j++){
        in >> previous_pick_3_numbers[i][j];
    }//End for j
}//End for i
in.close(); //Close the input file



i get error  

 C:\Documents and Settings\fpadilla\My Documents\theisonewscpp.cpp In function `int main()': 

50 C:\Documents and Settings\fpadilla\My Documents\theisonewscpp.cpp expected `,' or `;' before "for" 

50 C:\Documents and Settings\fpadilla\My Documents\theisonewscpp.cpp expected `;' before ')' token 


Create a new paste based on this one


Comments: