上海交通大学交大密西根 ·联合学院一 181 UM-SJTU Joint Institute ■ University of Michigan Shanghal Jiao Tong University Code of Example 1 int main O string str "Vg 101"; printstr (str); return 0; void printStr (string str) ConsoleT console; if (Istr.empty ( console.printLine (str[O],endD; printstr (str.substr (1,str.length () ;Code of Example 1 Code of Example 1