0
how to fix this errors ?
help me for final assignment https://code.sololearn.com/cM11LGgkVg1V/?ref=app
12 Answers
+ 1
Bisa aja bossq, udah dulu yach, ntar dimarahin momod kalo ngobrol 😁
Moga sukses gan ...
+ 2
you have typo in line 68
just to be clear, tell us whats the error and in which line, it'll be useful
ps: my gf was working on exactly same assignment as this, lol
+ 2
Line 65:
cout << "\n Alamat \t: " << Pegawai[i].Alamat.Jalan << " " << Pegawai[i].Alamat.Kota << "," << Pegawai[i].Alamat.Kode_Pos;
//cout<<"\n Alamat \t: "<<Pegawai[i].Alamat.Jalan<" "<<Pegawai[i].Alamat.Kota<<","<<Pegawai[i].Alamat.Kode_Pos;
Line 68:
cout << "\n Tgl Lahir \t: " << Pegawai[i].Lahir.Tanggal << "-" << Pegawai[i].Lahir.Bulan << "-" << Pegawai[i].Lahir.Tahun;
//cout<<"\n Tgl Lahir \t: "<<Pegawai[i].Lahir.Tanggal<<"-"<<Pegawai[i].Lahir.Bulan<<"-"<<PegawaiLahir.TaLahir.Tahun;
Line 69:
cout << "\n Tgl Mulai Krj \t: " << Pegawai[i].Mulai_kerja.Tanggal << "-" << Pegawai[i].Mulai_kerja.Bulan << "-" << Pegawai[i].Mulai_kerja.Tahun;
//cout<<"\n Tgl Mulai Krj \t: "<<Pegawai[i].Mulai_kerja.Tanggal<<"-"<<Pegawai[i].Mulai_kerja.Bulan<<"-"<<PegawaiMulai_keMulai_kerja.Tahun;
The commented line is your version, compare that with the line above it, you'll get the idea ... good luck! 👍
+ 2
Hey gimana udah bisa blm? satu lagi nya yg mana nich?
+ 1
at line 65 its also a typo you're using < instead of <<
68 69, looks line an accidental paste, the variable name doesnt make sense
+ 1
check again the variable name and class attribute, is it match to what you have in those lines
+ 1
thank you very much bossq, very helpful man. wkwkkwkwk
+ 1
Oke sama sama bossq 😁 👍
+ 1
org indo yg sangat helpful wkwkwkwk😁
0
on my dev c++ i have 3 errors:
line 65 - [error] invalid operands of types 'const char [2] and 'char [15] to binary 'operator<<'
line 68 as you said - [error] 'PegawaiLahir' was not declared in this scope
and line 69 - [error] 'PegawaiMulai_keMulai_kerja' was not declared in this scope
0
line 65 clear but still in 68,69. i'm uust trying
0
bang 1 lg nih bantu dong wkwk