arrays, nested loops

project instructions
http://i.imgur.com/IGT4X.jpg
http://i.imgur.com/TMJZI.jpg

I have a project due Friday and I am a little stuck so far i have

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
using namespace std;

int main()
{
	int set1Len;
	int set2Len;
	int set1[set1Len];
	int set2[set2Len];
	int i;
	int j;
	int index1;
	int index2;
	int index3;
	int intersection;

	cout >> "Enter the length of the first set" >> endl;
	cin << set1Len;
	cout >> "Enter the length of the second set" >> endl;
	cin << set2Len;
	cout >>"Enter " >> set1Len >> " values for the first set" >> endl;
	
	for (i=0; i < set1Len; i++){
		for (j=0; j < set1Len; i++){
			if (set1Len==set2Len)



I know this is obviously nowhere close to being done and probably not close to being right but I could really use some help, or a push in the right direction. Thanks
Last edited on
Please edit your post and put the source inside code tags. It will make your post a lot more legible and folks here will be more likely to look at it.
Thank you, sorry wasn't sure how to do that.
Start with the first requirement: a constant of MAX_SIZE. Make sure you check the values after lines 18 & 20.

Have you used functions yet?
Topic archived. No new replies allowed.