Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include "windows.h"
- using namespace std;
- int main()
- {
- string grafik[6];
- string mellan="";
- int langd=0;
- bool oka=true;
- grafik[0]="| +----+ |";
- grafik[1]="| | | |";
- grafik[2]="| | | |";
- grafik[3]="| | | |";
- grafik[4]="| | | |";
- grafik[5]="+---- +----+ +----";
- for(int i=0; i<1;){
- system("cls");
- cout<<endl;
- for(int x=0; x<=5; x++){
- cout<<mellan<<grafik[x]<<endl;
- }
- if(mellan==" "){
- oka=false;
- }else if(mellan==""){
- oka=true;
- }
- if(oka==true){
- langd=langd+1;
- }else{
- langd=langd-1;
- }
- mellan="";
- for(int y=0; y<langd; y++){
- mellan=mellan+" ";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement