Update SampleCode.cpp

Variables are now initialized with a default value