一个可能会不懂的程序

#include
using namespace std;
int main() {
	char* p[6] = { "ABCD","EFGH","IJKL","MNOP" };
	int i;
	for (
		i = 0; i < 4; i++) {
		cout << p[i];
	}
	cout << endl;
	for (
		i = 0; i < 4; i++) {
		cout << *p[i];
	}
	cout << endl	;
	for (
		i = 0; i < 4; i++) {
		cout << (*p)[i];
	}
	cout << endl	;
	for (
		i = 0; i < 4; i++) {
		cout << *(p[i] + 1);
	}
	cout << endl	;
}

输出

ABCDEFGHIJKLMNOP
AEIM
ABCD
BFJN

大家康康.....(最好是懂

你可能感兴趣的:(c++,算法,开发语言)