السلام عليكم
لو سمحتو عندي كود يطلع في اخطا وما عرفت اعدله:
#include<iostream>
using namespace std;
void DrawBox (char, int, int); // prototype
int main ( )
{
char letter = ‘&’;
DrawBox(letter, 4, 2*3); // arguments
DrawBox(‘V’, 9, 3);
// appear in call
return 0;
}
void DrawBox(char what, int down, int across)
// 3 function parameters
{
int row, col; // 2 local variables
for ( row = 0; row < down; row++ )
{
for (col = 0; col < across; col++ )
{
cout << what;
}
cout << endl;
}
return;
}