0

how to fix this errors ?

help me for final assignment https://code.sololearn.com/cM11LGgkVg1V/?ref=app

25th Apr 2019, 7:26 AM
Miharudba
Miharudba - avatar
12 ответов
+ 1
Bisa aja bossq, udah dulu yach, ntar dimarahin momod kalo ngobrol 😁 Moga sukses gan ...
25th Apr 2019, 9:00 AM
Ipang
+ 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
25th Apr 2019, 7:43 AM
Taste
Taste - avatar
+ 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! 👍
25th Apr 2019, 8:23 AM
Ipang
+ 2
Hey gimana udah bisa blm? satu lagi nya yg mana nich?
26th Apr 2019, 9:53 AM
Ipang
+ 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
25th Apr 2019, 8:03 AM
Taste
Taste - avatar
+ 1
check again the variable name and class attribute, is it match to what you have in those lines
25th Apr 2019, 8:21 AM
Taste
Taste - avatar
+ 1
thank you very much bossq, very helpful man. wkwkkwkwk
25th Apr 2019, 8:48 AM
Miharudba
Miharudba - avatar
+ 1
Oke sama sama bossq 😁 👍
25th Apr 2019, 8:56 AM
Ipang
+ 1
org indo yg sangat helpful wkwkwkwk😁
25th Apr 2019, 8:58 AM
Miharudba
Miharudba - avatar
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
25th Apr 2019, 7:58 AM
Miharudba
Miharudba - avatar
0
line 65 clear but still in 68,69. i'm uust trying
25th Apr 2019, 8:14 AM
Miharudba
Miharudba - avatar
0
bang 1 lg nih bantu dong wkwk
25th Apr 2019, 2:38 PM
Miharudba
Miharudba - avatar