zoukankan      html  css  js  c++  java
  • 朝发白帝城

    代码
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace ConsoleApplication1
    {
        
    class Program
        {
            
    private static string s = "朝辞白帝彩云间,千里江陵一日还。两岸猿声啼不住,轻舟已过万重山。";
            
            
    static void Main(string[] args)
            {
                
    //朝辞白帝彩云间,千里江陵一日还。 两岸猿声啼不住,轻舟已过万重山。
                
                
                

                
    for (int i = 0; i < 8; i++)
                {
                    
    for (int j = 0; j < 4; j++)
                    {
                        Console.Write(s[i
    +24-8*j]);
                        
                    }
                    Console.WriteLine();
                }
                Console.WriteLine(
    "--------------------------");


                
    for (int n = 0; n < 8; n++)
                {
                    System.Console.Write(
    "{0}{1}{2}{3}", s[24 + n], s[16 + n], s[8 + n], s[0 + n]);
                    System.Console.WriteLine();
                }


                         
                
            }
        }
    }
  • 相关阅读:
    google git的使用方法
    C/C++ 开发库 | C/C++ Development Library
    log4cplus c++开源日志系统
    c++配置类
    Markdown基础语法
    Nhibernate 映射关系,一对多 多对一与多对手在映射文件中的体现。
    Nhibernate refers to an unmapped class nhibernate问题的解决(初学者)
    UICollectionView的使用
    Runloop
    UITableView(转)
  • 原文地址:https://www.cnblogs.com/muyoushui/p/1675314.html
Copyright © 2011-2022 走看看