+ 1

what did i do wrong?

hello im Fahrul and im a complete beginner in code, im currently learning cpp in this app, so here i wanna ask. in my code below, i want to make a very simple program that prints Hi Fahrul! when i enter my name "fahrul", then prints Hi there if i enter everything else but not my name. i wonder why but in my code below the output always hi fahrul. im complete beginner so please dont sue me for my stupidity haha https://code.sololearn.com/cIm0us9nbGlc/?ref=app

21st Feb 2018, 5:53 PM
Fahrul Hanifan
4 Réponses
0
https://code.sololearn.com/cvjivB0bPqxv/?ref=app
21st Feb 2018, 6:11 PM
Vishnu NS
Vishnu NS - avatar
0
In C++ the data type is "string" and not "String"
21st Feb 2018, 6:02 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar
0
@Ravi i fixed it. still output always hi fahrul
21st Feb 2018, 6:05 PM
Fahrul Hanifan
0
thank you very much @Vishnu NS. i appreciate every second when u look and fix at my code. 😃
21st Feb 2018, 6:15 PM
Fahrul Hanifan