I am using visual studio and can't seem to figure out why I keep getting this error when I compile. Any suggestions? Here is the relevant code:
Code:
#include <iostream>
int main()
{
.......
//reassign arrays
for (int l = 0; l <= 49; l++)
n [l] = nplus1 [l];
//output
if (t == .1 || t == .25 || t == .5 || t == 1 || t == 2)
{
cout<< "t
I thought it meant that I hadn't declared a variable but I have.
Code:
int DoubleNumbers(int seq[], int *digitNum)
{
int i, j;
for (i = 0; i = 9; i++)
for (j = i + 1; j = 9; j++)
if (seq[i] == seq[j]){
*digitNum = j;
return 1;
}
return 0;
}
An error message comes up and says that both i and j are "undeclared...