Can someone help me revise this code?
It isn't compiling.
#include "stdafx.h"
#include
if (yourName == "Emily") note that there is two equals and you use the word yourName not String but to compare strings you can use : strcmp (yourName , "Emily"); because it compares the content not the pointers. to use it include the string.h header file
Qustion for you sir. What coding language is this.
C++
instead of using strcmp from <cstring>, you may also use string::compare
Well what's the compilation error? Usually the errors say straight away what the problem is.
Join our real-time social learning platform and learn together with your friends!