Skip to content

Instantly share code, notes, and snippets.

@imryan
Last active December 25, 2015 05:39
Show Gist options
  • Select an option

  • Save imryan/6926180 to your computer and use it in GitHub Desktop.

Select an option

Save imryan/6926180 to your computer and use it in GitHub Desktop.
Filling arrays and looping through them.
#include <iostream>
using namespace std;
void fillArray();
int main(int argc, char *argv[])
{
int homes[5];
int x = 10;
for (int i = 0; i < 5; i++) {
homes[i] = x;
x+=5;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment