Created
January 6, 2016 08:00
-
-
Save abrarShariar/e0cd951c808a6d82c823 to your computer and use it in GitHub Desktop.
playing around STL <array>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<array> | |
using namespace std; | |
int main(){ | |
array<int,10> myArray={1,2,3,45,23,23,100}; | |
for(auto it=myArray.begin();it!=myArray.end();it++){ | |
if(*it==0) | |
continue; | |
cout<<*it<<endl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment