摘要:
int array[5] = {1,2,3,4,5}; //指定下标长度并初始化所有元素.int array[5] = {1,2,3}; //指定下标长度并初始化部分元素. 1,2,3,0,0int array[] = {1,2,3,4,5}; //不指定下标长度并初始化所有元素.#include "stdafx.h"#include "iostream.h"#include "string.h"int main(int argc, char* argv[]){ char *array[3]; array[1] = new char[ 阅读全文