Hi,
Im trying to make a multiply table from 1 to 10.
Im trying to do this with array's.
This is the code i have till now:
#include "conio.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <cmath>
#define arraylen = 10
main()
{
int x[11], *a;
int y[11], *b;
int answer = ( (*a) * (*b) );
int input;
a = &x[11];
b = &y[11];
for( int i = 1; i < a; i++ )
{
for( int j = 1; j < y; j++ )
{
printf( "%i * %i = " , x, y );
scanf( "%i", &answer );
if( answer != x * y )
{
printf( "WRONG ANSWER !" );
}
else
{
printf( "GOOD ANSWER !" );
}
}
}
printf( "\n" );
system( "pause" );
}
These are the errors i get:
22 ISO C++ forbids comparison between pointer and integer
22 ISO C++ forbids comparison between pointer and integer
27 invalid operands of types `int[11]' and `int[11]' to binary `operator*'
Thnx in advance!