Kamis, 31 Maret 2011

posttest second practicum

#include
#include
#include

using namespace std;
int main(int argc, char *argv[])
{
ifstream filein;
filein.open("nilai.dat");//declare variable filein to read data from file(line 10) replace cin
int nilai[10];
for(int i=0;i<10;i++){ filein>>nilai[i];
cout<<"Nilai ke-"< }
filein.close();//closure program
getch();

system("PAUSE");
return EXIT_SUCCESS;
}

Tidak ada komentar:

Posting Komentar