标签:style end iostream col windows out 记录 win nbsp
[无修改记录]
1 #include <iostream> 2 #include <string> 3 #include <cstdlib> 4 #include <Windows.h> 5 #include "display.h" 6 7 void DISPLAY::logo() 8 { 9 std::cout<<" "<<"**********Attack or Defend********"<<std::endl; 10 Sleep(1000); 11 std::cout<<" "<<"************By Zhou Leyi*********"<<std::endl; 12 Sleep(1000); 13 std::cout<<" "<<"*********"<<this->version<<"*********"<<std::endl; 14 } 15 16 void DISPLAY::draw(AI &a,PLAYER &p) 17 { 18 std::system("cls"); 19 std::cout<<"********************************************************"<<std::endl; 20 std::cout<<"我方"<<" "<<"敌方"<<std::endl; 21 for(int n=1;n<=p.Pamount;n++) 22 { 23 std::cout<<"["<<n<<"]"<<p.Pdata[3*n-2]<<std::flush; 24 std::cout<<" ""["<<n<<"]"<<a.Adata[3*n-2]<<std::endl; 25 std::cout<<"血量:"<<p.Pdata[3*n]<<std::flush; 26 std::cout<<" "<<"血量:"<<a.Adata[3*n]<<std::endl; 27 } 28 std::cout<<"********************************************************"<<std::endl; 29 }
标签:style end iostream col windows out 记录 win nbsp
原文地址:http://www.cnblogs.com/lostmatch/p/7979675.html