Skip to content

Instantly share code, notes, and snippets.

@asesh
Created June 24, 2019 04:55
Show Gist options
  • Save asesh/68ac866aa5b0a22fc819421fc334f7ae to your computer and use it in GitHub Desktop.
Save asesh/68ac866aa5b0a22fc819421fc334f7ae to your computer and use it in GitHub Desktop.
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