c++ ABC.YZ BCD.ZA CDE.AB以此推种


c++ ABC....YZ BCD....ZA CDE....AB以此推类
ABCDEFGHIJKLMNOPQRSTUVWXYZ
BCDEFGHIJKLMNOPQRSTUVWXYZA
CDEFGHIJKLMNOPQRSTUVWXYZBA
DEFGHIJKLMNOPQRSTUVWXYZABC
EFGHIJKLMNOPQRSTUVWXYZABCD
FGHIJKLMNOPQRSTUVWXYZABCDE
GHIJKLMNOPQRSTUVWXYZABCDEF
......
......
ZABCDEFGHIJKLMNOPQRSTUVWXY

百思不得其解,请教~~~一个作业题~

C++/VC 程序开发 异常处理

zzjin 11 years, 8 months ago


参考:

  C/C++ code

  #include <iostream> using namespace std; int main(int argc, char* argv[]) { char A = 65; // 'A' 的ASCII码是65 for(int i = 0; i < 26; ++i) { for(int j = 0; j < 26; ++j) { cout $amp; <amp> </amp> <amp> </amp>

南昌堇业代表 answered 11 years, 8 months ago

Your Answer