我也是刚学C++的新手,之前有点 C 语言的基础。
#include <iostream.h>
void Show (char str);
void main()
{
    char str = 65;
    Show (str);
}
void Show (char str)
{
    char tempstr = str;
    int i;
    int tempi;
    int n = 1;
    for (i=2;i>=0;i--,str++)
    {
        tempi = i;
        while (tempi)
        {
            cout << " ";
            tempi--;
        }
        while (tempstr < str + n)
        {
            cout << tempstr;
            tempstr++;
        }
        cout << endl;
        tempstr = 65;
        n++;
    }
}
看了你的帖后,我自己敲了一个。好,请给点分。不好,请给我留点面子。