1. c风格字符串,和strlen函数
#include "stdafx.h" #include <iostream> using std::cout; using std::endl; using std::cin; int main(void) { char dog[3] = { 'd','o','g' }; char pig[4] = { 'p','i','g','