الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

شو الخطا في هالكود

مغلق
بدأه طالب برمجة في 28 ديسمبر 2003 · 1 رد · 486 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

لو سمحتو عندي كود يطلع في اخطا وما عرفت اعدله:

#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;

}

#2

أخويه أنا صححت الأخطاء وإن شاء الله هذا اللي تباه ...

#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;

}

والسموحه..

تم تعديل هذه المشاركة بواسطة طالبه في 28 ديسمبر 2003 في 20:09

هذا الموضوع مغلق.

مواضيع مشابهة