This is because your main() code never calls Client::set_a. And your update() does not modify anything in any Client instance.
main()
Client::set_a
update()
Client
Before asking questions, you have to run your code under the debugger, it should solve all problems like that.