zoukankan      html  css  js  c++  java
  • 1111

    if(A[0]>B[0]){

            if(A[1]>B[1]){

                for(int i=B[0];i<=A[0];i++){

                    for(int j=B[1];j<=A[1];j++){

                        paint(i,j);

                    }

                }

            }else if (A[1]<B[1]){

                for(int i=B[0];i<=A[0];i++){

                    for(int j=A[1];j<=B[1];j++){

                        paint(i,j);

                    }

                }

            }else{

                for(int i=B[0];i<=A[0];i++){

                    for(int j=B[1];j<=A[1];j++){

                        paint(i,j);

                    }

                }

            }

        }else if (A[0]<B[0]){

            if(A[1]>B[1]){

                for(int i=A[0];i<=B[0];i++){

                    for(int j=B[1];j<=A[1];j++){

                        paint(i,j);

                    }

                }

            }else if (A[1]<B[1]){

                for(int i=A[0];i<=B[0];i++){

                    for(int j=A[1];j<=B[1];j++){

                        paint(i,j);

                    }

                }

            }else{

                for(int i=A[0];i<=B[0];i++){

                    for(int j=A[1];j<=B[1];j++){

                        paint(i,j);

                    }

                }

            }

        }else{

            if(A[1]>B[1]){

                for(int i=B[0];i<=A[0];i++){

                    for(int j=B[1];j<=A[1];j++){

                        paint(i,j);

                    }

                }

            }else if (A[1]<B[1]){

                for(int i=A[0];i<=B[0];i++){

                    for(int j=A[1];j<=B[1];j++){

                        paint(i,j);

                    }

                }

            }else{

                for(int i=A[0];i<=B[0];i++){

                    for(int j=A[1];j<=B[1];j++){

                        paint(i,j);

                    }

                }

            }

        }

        return 0;

    }

  • 相关阅读:
    Spring 中PageHelper分页插件使用
    手写Spring框架学习笔记
    Spring 集成Junit单元测试
    创建产品服务工程
    Oracle 常用SQL语句
    解决The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone
    微服务如何拆分
    Eureka的高可用
    Eureka Client的使用
    Spring Cloud Eureka Server使用(注册中心)
  • 原文地址:https://www.cnblogs.com/sea-stream/p/9818737.html
Copyright © 2011-2022 走看看