Skip to content

Instantly share code, notes, and snippets.

@abrarShariar
Created January 6, 2016 08:00
Show Gist options
  • Save abrarShariar/e0cd951c808a6d82c823 to your computer and use it in GitHub Desktop.
Save abrarShariar/e0cd951c808a6d82c823 to your computer and use it in GitHub Desktop.
playing around STL <array>
#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