I need help with program i cant find a way to get rid of the error and if i think a little bit more my head will explode this is a 2day program for me

#include <iostream>
#include <stdio.h>
#include "simpio.h"
#include "strlib.h"
#include "random.h"
#include "string.h"
using namespace std;

#define size 26

void disp (int A[], int B[]);
int setnumber (int set);
char setletter(int set[], int x);
void unions (int A[], int B[]);
void intersections (int A[], int B[]);
void contain (int A[], int B[]);
void getArray (int A[], int B[]); 
void sortArray (int numbers[]);
int indexmin (int numbers[], int low, int high);
void swap (int numbers[], int loc1, int loc2);

int main()
{
	int A[size], B[size];
	getArray(A,B);
	sortArray(A);
	sortArray(B);
	disp(A,B);
	unions(A, B);
	interections(A, B);
	contain(A,B);
}

char setletter(int set[], int x)
{
	if(set[x] = 1) return 'a';
	else if(set[x] = 2) return 'b';
	else if(set[x] = 3) return 'c';
	else if(set[x] = 4) return 'd';
	else if(set[x] = 5) return 'e';
	else if(set[x] = 6) return 'f';
	else if(set[x] = 7) return 'g';
	else if(set[x] = 8) return 'h';
	else if(set[x] = 9) return 'i';
	else if(set[x] = 10) return 'j';
	else if(set[x] = 11) return 'k';
	else if(set[x] = 12) return 'l';
	else if(set[x] = 13) return 'm';
	else if(set[x] = 14) return 'n';
	else if(set[x] = 15) return 'o';
	else if(set[x] = 16) return 'p';
	else if(set[x] = 17) return 'q';
	else if(set[x] = 18) return 'r';
	else if(set[x] = 19) return 's';
	else if(set[x] = 20) return 't';
	else if(set[x] = 21) return 'u';
	else if(set[x] = 22) return 'v';
	else if(set[x] = 23) return 'w';
	else if(set[x] = 24) return 'x';
	else if(set[x] = 25) return 'y';
	else(set[x] = 26) return 'z';
}
int setnumber(int set)
{
	if(set = 'a') return 1;
	else if(set = 'b') return 2;
	else if(set = 'c') return 3;
	else if(set = 'd') return 4;
	else if(set = 'e') return 5;
	else if(set = 'f') return 6;
	else if(set = 'g') return 7;
	else if(set = 'h') return 8;
	else if(set = 'i') return 9;
	else if(set = 'j') return 10;
	else if(set = 'k') return 11;
	else if(set = 'l') return 12;
	else if(set = 'm') return 13;
	else if(set = 'n') return 14;
	else if(set = 'o') return 15;
	else if(set = 'p') return 16;
	else if(set = 'q') return 17;
	else if(set = 'r') return 18;
	else if(set = 's') return 19;
	else if(set = 't') return 20;
	else if(set = 'u') return 21;
	else if(set = 'v') return 22;
	else if(set = 'w') return 23;
	else if(set = 'x') return 24;
	else if(set = 'y') return 25;
	else(set = 'z') return 26;
}

void getArray(int A[], int B[])
{
	int i,c;
	string answer;

	printf("How many letters do you have for A?\n");
	c = GetInteger();

		for (i=1; i<c+1; i++)
		{
			A[i]=0;
		}

	printf("Please enter the first letter\n");
	answer = GetLine();
	A[1] = setnumber(answer);

	for (i=1; i<c+1; i++)
	{
		printf("Please enter the next letter\n");
		answer = GetLine();
		A[i] = setnumber(answer);
	}

		printf("How many letters do you have for B?\n");
		c = GetInteger();

		for (i=1; i<c+1; i++)
		{
			A[i]=0;
		}

	printf("Please enter the first letter\n");
	answer = GetLine();
	B[1] = setnumber(answer);

	for (i=1; i<c+1; i++)
	{
		printf("Please enter the next letter\n");
		answer = GetLine();
		B[i] = setnumber(answer);
	}
}
void sortArray (int numbers[])
{
	int i, minInd;
	for (i=0; i<size; i++)
	{
		minInd = indexmin (numbers, i, size-1);
		swap (numbers, i, minInd);
	}
}

int indexmin (int numbers[], int low, int high)
{
	int i, minInd;
	minInd=low;
	for(i=low;i<=high;i++)
	{
		if (numbers[i] < numbers[minInd]) minInd =i;
	}
	return (minInd);
}

void swap (int numbers[], int loc1, int loc2)
{
	int temp;
	temp=numbers[loc1];
	numbers[loc1]=numbers[loc2];
	numbers[loc2] = temp;
}


void disp (int A[], int B[])
{
	int i;
	char answer;

	printf("A = ");
	for(i=0; i<size; i++)
	{
		answer=setletter(B, i);
		printf(" %d ", answer);
	}
	printf("B = ");
	for(i=0; i<size; i++)
	{
		answer=setletter(B, i);
		printf(" %d ", answer);
	}
}
void unions (int A[], int B[])
{
	int c[size];
	int i, x;
	char answer;
	printf("union: ");
	for(i=0; i<size; i++)
	{
		c[i] =  A[i];
	}
	for(i=0; i<size; i++)
	{
		c[i] =  B[i];	
	}

	for(i=0; i<size; i++)
	{
		for(x=0; x<size; x++)
		{
			if(c[i] = c[x]) c[i] = 0;
			else;
		}
	}
	for(i=0; i<size; i++)
	{
		answer = setletter(c, i);
		printf(" %d ", answer);
	}
}

void intersections (int A[], int B[])
{
	int c[size];
	int i, x;
	char answer;

	printf("Interesection: ");
	
	for(i=0; i<size; i++)
	{
		for(x=0; x<size; x++)
		{
			if(A[x] = B[i]) printf(" %d ",A[x]);
			else;
		}
	}
	for(i=0; i<size; i++)
	{
		answer = setletter(c, i);
		printf(" %d ", answer);
	}
}

void contain (int A[], int B[])
{
	int i;
	int x, c, v;

	for(i=0; i<size; i++)
	{
		if(B[i]!= 0) v++;
		else;
	}

	for(i=0; i<size; i++)
	{
		for(x=0; x<size; x++)
		{
			if(A[x] = B[i])
			{
				printf(" %d ",A[x]); 
				c++;
			}
			else;
		}
	}
	if(c=v)
	{
		printf("True");
	}
	else
	{
		printf("False");
	}
}

Errors

1>------ Build started: Project: blah, Configuration: Debug Win32 ------
1>Compiling...
1>Binary.cpp
1>d:\documents and settings\eric\desktop\binary.cpp(30) : error C3861: 'interections': identifier not found
1>d:\documents and settings\eric\desktop\binary.cpp(61) : error C2143: syntax error : missing ';' before 'return'
1>d:\documents and settings\eric\desktop\binary.cpp(90) : error C2143: syntax error : missing ';' before 'return'
1>d:\documents and settings\eric\desktop\binary.cpp(96) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\program files\microsoft visual studio 9.0\vc\include\genlib.h(67) : char *string'
1>        or       'd:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\documents and settings\eric\desktop\binary.cpp(108) : error C2664: 'setnumber' : cannot convert parameter 1 from 'string' to 'int'
1>        There is no context in which this conversion is possible
1>d:\documents and settings\eric\desktop\binary.cpp(114) : error C2664: 'setnumber' : cannot convert parameter 1 from 'string' to 'int'
1>        There is no context in which this conversion is possible
1>d:\documents and settings\eric\desktop\binary.cpp(127) : error C2664: 'setnumber' : cannot convert parameter 1 from 'string' to 'int'
1>        There is no context in which this conversion is possible
1>d:\documents and settings\eric\desktop\binary.cpp(133) : error C2664: 'setnumber' : cannot convert parameter 1 from 'string' to 'int'
1>        There is no context in which this conversion is possible
1>Build log was saved at "file://d:\Documents and Settings\ERIC\Desktop\Projects\blah\blah\Debug\BuildLog.htm"
1>blah - 8 error(s), 13 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Either you need to get more RAM for your head, or you are ignoring on purpose what you have been told before.

Why don't you post that in C++ since that's what you keep compiling your program with?

What are you trying to do?????
Shorten the program. It will make it easier to compile.
SetLetter and SetNumber don't have returns for all paths and are far too long for what they do.

char setletter(int set[], int x)
{
  char value =  (char)((set[x]) + 0x60); 
  //0x61 is lower case a, so adding 0x60 to each set value works out.
  if((value < 'a' ) || (value > 'z')) value = 0;  
  return value;
}

int setnumber(int set)
{
  return ((set < (int) 'a') || (set > (int) 'z') ? 0 : (set - 0x60); 
}
This question has already been answered. Start a new discussion instead.