Added input parsing for C/C++.