Created
June 24, 2019 04:55
-
-
Save asesh/68ac866aa5b0a22fc819421fc334f7ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std::wstring gName[] = {L"Asesh", L"Shrestha"}; | |
bool validation(const std::wstring& first_name, const std::wstring& last_name, uint32_t phone_number = 0) { | |
if(!first_name.empty() && !last_name.empty() && phone_number != 0) { | |
return true; | |
} | |
return false; | |
} | |
int main(int argc, const char* argv[]) { | |
validation(gName[0].data(), gName[1].data(), 901); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment