Stack

#include <conio.h>
#include <iostream>
using namespace std;

int main()
{
    int stack[5];
    for(int top = 0; top < 5; top++)
    {
            for(int i = top; i < 0; i++)
            {
                    if (top == -1)
                    cout<< "error";
                    else
                    {
                        cin>>stack[i];
                    }
            }
           
    }
    system("pause");
    return 0;
}

No comments:

Post a Comment

Tutorial Lengkap Hosting Website Gratis Dengan Gambar

Hallo Guys.. sudah sangat lama sekali sejak terakhir kali saya melakukan posting di blogger ini... kalau saya tidak salah terakhir saya ...