Thursday, July 17, 2014

Visit a Queue

#include
using namespace std;
int main()
{
int a[5]={1,2,3,4,5},i=0;
while(a[i]!='\0' && i<5){
cout<<a[i]<<endl;
i++;
}
return 0;
}

1 comment:

  1. #include
    using namespace std;
    int main()
    {
    int a[5]={1,2,3,4,5},i=0;
    while(a[i]!='\0' && i<5){
    cout<<a[i]<<endl;
    i++;
    }
    return 0;
    }

    ReplyDelete