hi everyone,im a total niewbie,in c++ and i have a couple of problems while doing a project i was asked for school.
im supposed to make o program that makes couples

!
there are 2 types of men and women a and a' and g and g'...."a" likes more "g'" and "g'"likes more "a"...and so..ive made this and i have compilations problems....:
CODE
#include <stdio.h>
#include <iostream>
using name space std;
char man[10],woman[10],a;//variables (a is the type om man and woman)
int couples;//integer-the number of the couples i want to have
bool marriage(char a[10],char g[10],int ga,int gg)
{
if ( ga + gg == 1)
return true;
}
int main()//main marriage :P
{ int womanType[couples];
printf("how many couples?\n");
cin >> couples;//input o fthe nuber of couples
for (int i = 0; i < couples; i++)
{
char a;
cout << "type womans name"<<i;
cin >>woman[i];
cout << "type the type of "<<woman[i]<<"?"<<endl;
cin >> a;
if ( a = "g")
womanType[i] = 1;//type g
else
womanType[i] = 0;//type g'
}
for (int i=0; i<couples; i++)
{int manType[couples];
cout << "type mans name"<<i;
cin >> man[i];
cout << "man type?";
cin >> a;
if ( a = "a")
manType[i] = 1;//type a
else
manType[i] = 0;//type a'
}
int manType[couples];
bool couple[couples][couples];
for (int i = 0; i <couples; i++)
for (int j = 0; j <couples; j++)
couple[i][j] = marriage(man[i],woman[j],manType[i],womanType[j]);
for (int i = 0; i <= couples; i++)
for (int j = 0; j <= couples; j++)
if (couple[i][j]==true)
cout << man[i]<<"and"<<woman[j]<<"make good couple!"<<endl;
}
//end of making couples
im writting it in linux and the compilers results are:
line 28:invalid conversion from const char to *char
line 39: >> >>
line 48:initializing argument 2 of 'bool padrema(char*,char*,int,int)
i suppose that i have made pointers without actually wanting it :s...
how can i make compilation work?
i have included iostream.h because with iostream it wouldnt recognize cin and cout,dont know why

...
any help would be appreciated...thanks in advance
ps:the comments and the project are in greek if u want i can change it....
This post has been edited by kroustou: 10 May, 2008 - 11:06 AM