biginner2000
- المغرب
- عــــــــــــاااااااااااااااجـــــــــــل
السلام عليكم هذا هو الكود بعد تعديله #include <iostream> #include <conio.h> using namespace std; int main() { char str[] = "hello programming"; char * ptr = NULL; char ch = 0, s = 01; bool Test = false; int i = 0; ptr = str; s = 'n'; cout << "enter any charact…
- [مخالف - عنوان غير مناسب :]برنامج للاختبار
السلام عليكم import java.util.*; public class Test{ public static void main(String args[]){ String[] qesArray = new String[3]; String[] ansArray = new String[3]; String str = new String(); int[] wroArray = new int[10]; int right = 0; int wrong = 0; int itr = 0…
- [مخالف - عنوان غير مناسب :]برنامج للاختبار
السلام عليكم for(int y = 0; y < wroArray.length; y++){ if(wroArray[y] == null) break; System.out.println(wroArray[y]); }
- c++ compiler
السلام عليكم هذا هو التصحيح #include <iostream> using namespace std; void g(void) { cout << "inside fubnction g" << endl; } void h(void) { cout << "inside function h" << endl; } int product() { int result; int a, b, c; cout << "Enter three integers : " << endl…
- كيف أحدد حجم الملف المرفوع ؟
السلام عليكم جرب هذا الكود #this program use python 32 from os import * def getLengthInBits(fileName): return path.getsize(fileName) # here the file name fileName = "c:\\python32\\NEWS.txt" print(" length of : ", fileName," in bits is ", getLengthInBits(fileNa…
- [مخالف]الرجاء مساعدتي عاجلاً
السلام عليكم ورحمة الله تفضل أخي هذا مثال بسيط حول دالة Bubble_sort يمكنك إضافته إلي التمرين #include <iostream> using namespace std; void Bubble_sort(int * Array, int length); void swap(int * Array, int length); int main(int argc, char *argv[]) { // simple ex…
- جدول ديناميكي قياسي
السلام عليكم لقد عدلت الكود ووضعت بعض الأمتلة حول كيفية إستخدام الدالة SetLength #include <iostream> #include <cstdlib> using namespace std; template <typename T> T * SetLength( T * t, int len) { t = (T*) realloc(t , len * sizeof(t)); return t; } int main(int …
- هل يمكن عرض قيمة المتغيرداخل حلقة التكرار(for)
نعم يمكنك ذلك #include <iostream> #include <cstdlib> using namespace std; int main(int argc ,char *argv[]) { int b = 0; for(int a = 1; a < 100; a++) { if(a % 2 == 0) b+=a; cout << "b =" << b << endl; } system("PAUSE"); return 0; }
- الأخطاء في كود التبديل للكلمات .. ?
السلام عليكم هناك خطأ في استدعاء الدال(reverse(abc عوض عن ذلك يجب أن تكتب:("reverse("abc
- [مخالف]مساعدة يا شباب الله يوفقكم دنيا واخرة
#include <stdio.h> #include <conio.h> #include <graphics.h> /* function that create square*/ void square(int X, int, Y, int X1, int Y1) { function_that_create_line(X, Y, X1, Y); function_that_create_line(X, Y, X, Y1); function_that_create_line(X, Y1, X1, Y1); …
- برنامج اختبارات
#include <iostream> #include <stdio.h> using namespace std; class Test { public: Test(); public: void init(); void Answer(); void print(); private: string m_Country[10]; string m_Capitale[10]; }; Test::Test() { init(); Answer(); } void Test::print() { cout <<"…
- ماهي مشكله الـــ run
#include<iostream> using namespace std; class Student { public: Student(); Student(string firstName, string lastName ); private: int id; int degree; int year; int room_number; string first_name; string last_name; string phone_number; public: void printStudentI…
- ماهو الخطأ في في برنامجي في c++
السلام عليكم لقد عدلت برنامجك إليك النسخة المعدلة #include <iostream> using namespace std; class Bus { public: Bus(); Bus(int bus_num,int passenger, bool status); private: int V_passenger; bool V_status; int V_bus_num; public: void setPassenger(int Passenger);…