Here is my code:
Code:
import java.io.*;
import java.io.*;
while( ! stack.isEmpty() ){
Country s=(Country) stack.pop();
System.out.println(s.name);
}
import java.io.*; public class StackOfObjects
#include<iostream>
#include<string>
using namespace std;
void details( string fNum,int dHour,int dMin,int aHour,int aMin, string aircraft);
int main()
{
//Flights tB:Trinidad-Barbados,tN:Trinidad to New York,tL:Trinidad to London.
int dHour;
int dMin;
string fNum;
int aHour;
int aMin;
int
Leave a comment: