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

Recommended Answers

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

But what is it: elevator program?!..

Jump to Post
#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 …
Jump to Post

All 8 Replies

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

But what is it: elevator program?!..

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

My elevator program has it's ups and downs ;)

> Can you help me.
Are we talking about "capability" or "desire"?
Sure, there's a whole bunch of people who are capable of helping you, but so far I doubt many of them have a desire to.

Maybe you should read the intro threads again to find out where you screwed up.

http://www.catb.org/~esr/faqs/smart-questions.html#homework

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.