No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
#include<iostream> using namespace std; const int STACK_SIZE = 100; class stack { private: int count; // number of items in the stack int data[STACK_SIZE]; public: stack(); ~stack(); void push(const int item); // push an item on the stack int pop(void); // pop item off the stack }; stack::stack() // constructor … |
|
/** * @(#)password.java * * * @author * @version 1.00 2012/7/14 */ import javax.swing.JOptionPane; import javax.swing.*; import java.util.*; public class password { public static void main (String[] args) { String user; user=JOptionPane.showInputDialog("enter password to continue(letter only)"); if(user.compareTo("adnan")) { JOptionPane.showMessageDialog(null,"ACCES GRANTED","welcome", JOptionPane.INFORMATION_MESSAGE); } else { JOptionPane.showMessageDialog(null,"ACCES DENIED","error", JOptionPane.ERROR_MESSAGE); } } } |