المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : مكتبة اكواد للـ ++c


hackerz89
20-09-2007, 04:40 AM
برنامج تذخل فية قيمة الزاوية ويقوم هو بإيجاد جيب الزاوية Sin

كود:
#include <iostream.h>
#include <math.h>
#include <conio.h>
#define PI 3.14159
main()
{
clrscr();
float degree, sine ;
cout << "\t\tSIN\nPlease enter the angle in degrees " ;
cin >> degree ;
sine = sin(degree* PI/ 180) ;
cout << " SIN " << degree <<" = " << sine ;
getch();
}

hackerz89
20-09-2007, 04:40 AM
برنامج تذخل فية قيمة الزاوية ويقوم هو بإيجاد جيب تمام الزاوية Cos

كود:

#include <iostream.h>
#include <math.h>
#include <conio.h>
#define PI 3.14159
main()
{
clrscr();
float degree, cose ;
cout << "\t\tCOS\nPlease enter the angle in degrees " ;
cin >> degree ;
cose = cos(degree* PI/ 180) ;
cout << " COS " << degree <<" = " << cose ;
getch();
}

hackerz89
20-09-2007, 04:41 AM
برنامج تذخل فية قيمة الزاوية ويقوم هو بإيجاد ظل الزاوية tan
كود:
#include <iostream.h>
#include <math.h>
#include <conio.h>
#define PI 3.14159
main()
{
clrscr();
float degree, tane ;
cout << "\t\tTAN\nPlease enter the angle in degrees " ;
cin >> degree ;
tane = tan(degree* PI/ 180) ;
cout << " TAN " << degree <<" = " << tane ;
getch();
}

hackerz89
20-09-2007, 04:41 AM
برنامج يعطيك الأعداد الفردية التي تقع بين الواحد والرقم الذي يطلبة منك في بداية البرنامج

كود:

#include <iostream.h>
main();

{
int i,n ;
cout << "Enter number you want find EVEN to it:\n ";
cin >> n ;
for ( i=1; i<=n; i++ )
{
if (i%2) ;
cout << i << "\t " ;
else continue ;
}

}

hackerz89
20-09-2007, 04:42 AM
برنامج يعطيك الأعداد الزوجية التي تقع بين الواحد والرقم الذي يطلبة منك في بداية البرنامج

كود:
include <iostream.h>
main()
{
int i,n ;
cout << "Enter number you want find EVEN to it:\n" ;
cin >> n ;

for ( i=1; i<=n; i++)
{
if (i%2) continue ;
cout << i << "\t" ;
}
}

hackerz89
20-09-2007, 04:43 AM
برنامج يعطيك حجم الدائرة بدلالة قطرها
كود:
#include <iostream.h>
main()
{
float r,area ;
cout << " Enter the radius " ;
cin >> r ;
area =3.14*r*r ;
cout <<'\n'<<"Area = " << area <<" squared unit" ;
}

hackerz89
20-09-2007, 04:43 AM
هذا البرنامج يحول الدرجات من سلسيوسي الى فهرينهايت

كود:
#include <iostream.h>
#include <math.h>
main()
{
float celsius,fahrenheit ;
cout << " Please enter the temperature in fahrenheit degrees\n" ;
cin >> fahrenheit ;
celsius = (5.0/9.0)* (fahrenheit -32) ;
cout << "The temperature in celsius = " <<celsius << " Degree" ;
}

hackerz89
20-09-2007, 04:44 AM
البرنامج التالي يسمح لك بإذخال كلمة من 10 أحرف ويستخرج لك الحرف الهجائي الأخير من حيت الترتيب الهجائي........ مثل ( hotmail ) الأخير من حيت الترتيب الهجائي هو ( T )

كود:
#include <iostream.h>
main()
{
char c ;
int i, big ;
cout << "Enter your character " ;
cin >> c ;
big = int(c) ;
for(i=1; i<=10; i++)
{
cin >> c ;
if(int(c)>big)
big = int(c) ;
}

cout << "\nThe character that is alphabitically last: " << char(big) ;
}

3n!Gma
24-09-2007, 05:36 PM
مكشووووووووووور عالجهد المبذول أخي

الله يجازيك خير على هي المعلومات

ملغ بس محترم
25-09-2007, 02:31 PM
مكشووووووووووور عالجهد المبذول أخي

الله يجازيك خير على هي المعلومات

hackerz89
25-09-2007, 04:47 PM
يسلمو اختي yume على المرور العطر

hackerz89
25-09-2007, 04:48 PM
يسلمو اخي ملغ بس محترم على المرور العطر

jree7
05-10-2007, 07:59 PM
يسلموؤوؤؤو الله لا يحرمنا منك ومن جديدك
تقبل تحياااتي

hackerz89
07-10-2007, 01:57 AM
يسلمو على المرور العطر اخي جريح