strawberryman
Programmer
My program is below, and I am getting an error C2664, When I looked it up, I could only come up with a parameter error, but to me, it doesn't look like I am violating one. My program (so far) is supposed to place names into a string array.starting with [0][0], and going down the line,placing the names in the locations.
#include<iostream>
#include<string>
using std::cout;
using std::cin;
using std::endl;
using std::string;
using namespace std;
int main()
{
//delcalre variables
signed int players=0;
int players1=0;
int game [16][16];
int n,m;
char array1 [256][256];
cout<<"How many players or teams?";
cin >> players;
if (players<=0)
{cout<<"Invalid number, must be positive- re-enter number:";
cin>>players;
}
//end if
for (string players2=0;players1<=players;players1=players1+1)
{
cout<<"Name of player or team:";
cin>>players2;
for (;players1<=players;array1[0][0]=array1[0][0]+1);
char t[20];
strcpy (t,players2);
#include<iostream>
#include<string>
using std::cout;
using std::cin;
using std::endl;
using std::string;
using namespace std;
int main()
{
//delcalre variables
signed int players=0;
int players1=0;
int game [16][16];
int n,m;
char array1 [256][256];
cout<<"How many players or teams?";
cin >> players;
if (players<=0)
{cout<<"Invalid number, must be positive- re-enter number:";
cin>>players;
}
//end if
for (string players2=0;players1<=players;players1=players1+1)
{
cout<<"Name of player or team:";
cin>>players2;
for (;players1<=players;array1[0][0]=array1[0][0]+1);
char t[20];
strcpy (t,players2);