I want to write elevator program. Can you help me. Please...

Probably, it's a very interesting story...

But what is it: elevator program?!..

Member Avatar for iamthwee

I wonder what your were expecting from such a vague description?

Attached is an exe file written in C# and works on .net platform. Exercise it and if you like it get in touch with me at [email removed]

Right, because ya know... this is the C# forum....

#include <iostream>
#include <windows.h>

using namespace std;

int main(void){
    bool updown = false;
    while(1){
        if(!updown){
            for(int x = 0; x < 100; x++){
                for(int y = 0; y < x; y++)
                    cout << endl;
             cout << "      .---.      "<< endl;
             cout << "     /__\\__\\     "<< endl;
             cout << ".---------------."<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "'---------------'"<< endl;
             Sleep(10);
             system("cls");
            }
            updown = !updown;
        }else{
            for(int x = 100; x > 0; x--){
                for(int y = 0; y < x; y++)
                    cout << endl;
             cout << "      .---.      "<< endl;
             cout << "     /__\__\     "<< endl;
             cout << ".---------------."<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "||      |      ||"<< endl;
             cout << "'---------------'"<< endl;
             Sleep(10);
             system("cls");
            }
            updown = !updown;
        }
    }
    return 0;
}

It's a bit broken but I'm sure you can fix it!


ASCII ARt: http://www.geocities.com/SoHo/7373/electro.htm#elevator

Chris

commented: :) Nice +8

Attached is an exe file written in C# and works on .net platform. Exercise it and if you like it get in touch with me at [email removed]

where is the source?

commented: It should be here - http://www.daniweb.com/forums/thread244695.html if you want to learn that is. As it stands, you're a sponge. -3

I Want to elevator program how i will write please help me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.