怎样转换下面的二维数组到一维数组,然后输入数字,然后显示出输入数字在数组中相对应的词
char commonWords[13][60] =
{"C is a structured, procedural programming",
"language that has been widely used both for",
"operating systems and applications and that has",
"had a wide following in the academic community.",
"Many versions of Unix-based operating systems are",
"written in C. With the increasing popularity of",
"object-oriented programming, C is being rapidly",
"replaced as "the" programming language by C++,",
"a superset of the C language that uses an",
"entirely different set of programming concepts,",
"and by Java, a language similar to but simpler",
"than C++, that was designed for use in",
"distributed networks."
};
Enter the number : 5
Word at that index: programming
请各位帮帮我,我写出来的程序总是显示乱码,要不就出错,我都郁闷了。。。