baidut
12/14/2014 - 12:20 PM

注意需要进行内存分配

注意需要进行内存分配

#include <stdio.h>

int main(void) {
	// your code goes here
	char** a = new (char*) [26];
	for(int i = 0; i < 26; i++){
        // cout << " ttt" << endl;
        char tmp =  char('a' +i); 
        a[i] = new char[4];
        a[i][0] = tmp;
        a[i][1] = '\0'; 
    }
	return 0;
}