分支-15. 日K蜡烛图(15)

 #include<iostream>
 using namespace std;
 int main(){
     float o,h,l,c;
     while(cin>>o>>h>>l>>c){
         if(c<o)
             cout<<"BW-Solid";
         else if(c>o)
             cout<<"R-Hollow";
         else
             cout<<"R-Cross";

         if(l<o&&l<c&&h>o&&h>c)
             cout<<" with Lower Shadow and Upper Shadow";
         else if(l<o&&l<c)
             cout<<" with Lower Shadow";
         else if(h>o&&h>c)
             cout<<" with Upper Shadow";
         cout<<endl;
     }
     ;
 }
上一篇:CoCos2dx开发:更换导出的app名称和图标


下一篇:vue操作数组时遇到的坑