Sabtu, 14 Desember 2013
Tugas 14-12
#include
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
ofstream varfile;
struct Mahasiswa
{
char Nama[30];
int UAS;
int Tugas;
};
cout<<"Nama | nilai tugas | uas";
//Nama
}
for(Nama=1;Nama<=1;Nama++){
for(x=1;x<=1;x++){
cin>>
Mahasiswa Mhs;
cout<<"Nama Mahasiswa : ";cin>>Mhs.Nama;
cout<<"Nilai UAS : ";cin>>Mhs.UAS;
cout<>Mhs.Tugas;
varfile.open("data.dat");
if (varfile == NULL)
{
cout<<"File fail to open";
}
else
{
cout<<"Tampilkan Data hasilnya \n";
cout<<"NAMA \t UAS \t TUGAS \n";
cout<
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar