السلام عليكم
في البرنامج التالي لاأعلم لماذا لا يقبل بارسال قيم المصفوفة الى الدالة check
اتمنى منكم المساعده
#include <iostream>
using namespace std ;
const int size = 100 ;
int sum_Po = 1,
void check(char [], int) ;
int main()
{
int f = 0,
i, stop ;
char Val ;
char eq[size] ;
cout << "Press dot (.) to know that u finished ....... \n\n" ;
for (i = 0 ; (i <= size - 1 && !f) ; i++)
{
cin >> eq ;
if (eq == '.')
{
f = 1 ;
stop = i - 1;
}
}
cout << "\nEnter the value of x : " ;
cin >> Val ;
cout << "\n\n" ;
for (i = 0 ; i <= stop ; i++)
{
if(eq == 'x')
eq = Val ;
}
check(eq, stop) ;
}
void check(char eq[], int stop)
{
int j = 0 ;
while (j <= stop)
{
if (eq[j] >= 0 && eq[j] <= 9 && j <= stop)
{
while (eq[j] != '+' && eq[j] != '-' && j <= stop)
{
sum_Po *= eq[j] ;
j++ ;
}
}
}
}اتمنى ان توضحوا لي اين خطأي بالضبط
شكراً مقدماً


