Closed. This question needs details or clarity。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗?添加详细信息并通过editing this post阐明问题。
                        
                        5年前关闭。
                                                                                            
                
        
将字母数字字符串“ abcd1234”递增到“ abcd2000”
输出:
abcd1234
abcd1235



abcd2000

最佳答案

只是:

for (int a = 1234; a <= 2000; ++a)
{
  std::cout << "abcd" << a;
}

10-07 20:23