直接看範例,比較字串前兩個字元是否相同,如果相同則印出 /* strncmp example */ #include #include int main () { char str[][5] = { "R2D2" , "C3PO" , ...
blog.wu-boy.com