Kheirha

Kheirha

Share

It provides free educational material in the computer-related fields,building web sites, smart phones & their apps as well as modern languages.

31/01/2022

حاجة تمشى مع جو اليومين دول، هههه:
المتلج ياجو:
المتلج ياجو، دى البرودة السنة دى مهازل
الهواء ساقع ودرجات الحرارة فى النازل
مافيش طريقة نعمل بيننا وبين السقعة عازل
نحافظ على الجو دافى بدل حبست المنازل
فين ايامك ياصيف ده أنا فيك حابتدى اغازل
تقولى الشتاء احلى، اقول لك ياراجل
تقول لى الصيف حر ولا سخونة المراجل
اهو لكل وقت طقسه وكله فى الاخر زائل
اختلفنا مع بعض فى الراى دون طائل
لكن دون تغيير أو نقصان فى الود المتبادل
ولا تلاقينا فى يوم ناخد وندى ونتجادل
بين الصيف والشتاء دوما بيحصل التعادل
مع مرور الفصول، من ده وده واهو كله عابر
الدوام لرب محب كريم رحيم غفور وعادل

[قابلة للتعديل، الحذف والاضافة]

22/07/2021

البرمجة للجميع ٥:
A simple program to calculate the areas of a square, a rectangle and a triangle:
١) C++:
Open a new document in any text editor (kwrite, kedit or kate).
Type the following lines:


using namespace std;
int main() {
char mainsel;
float x, y, b1, b3;
int quit = 0;
while (quit==0) {
cout

20/07/2021

البرمجة للجميع ٣:
SmallEiffel:
Open a new document in any text editor (kwrite, kedit or kate).
Type the following lines:
class SIMPLE
creation
make
feature
make is
do
io.put_string("Hello from SmallEiffel.%N");
io.put_new_line
end;
end
Save the file as hello.e
Compile it per the table given in the first post
Copy the executable (compiled) file to the executables folder (directory), eg. hellose
Open the konsole window and run hellose (i.e. type hellose at the prompt).

Haskell:
Open a new document in any text editor (kwrite, kedit or kate).
Type the following lines:
main = do
putStrLn "hello, world, from haskell ghc!"
Save the file as hello.hs
Compile it per the table given in the first post
Copy the executable (compiled) file to the executables folder (directory), eg. hellohaskell
Open the konsole window and run hellohaskell (i.e. type hellohaskell at the prompt).

ADA:
Open a new document in any text editor (kwrite, kedit or kate).
Type the following lines:
-- Print a simple message.
with Ada.Text_IO;
procedure Helloada is
begin
Ada.Text_IO.Put_Line("Hello, world from ada!");
end Helloada;
Save the file as helloada.adb
Compile it per the table given in the first post
Copy the executable (compiled) file to the executables folder (directory), eg. hello2
Open the konsole window and run hello2 (i.e. type hello2 at the prompt).

OCaml:
Open a new document in any text editor (kwrite, kedit or kate).
Type the following line:
let hello () = print_endline "Hello from OCaml"
Save this file as amodule.ml
Open a new document in any text editor (kwrite, kedit or kate) and type the following line:
Amodule.hello ()
Save this file as bmodule.ml
Compile it per the table given in the first post
Copy the executable (compiled) file to the executables folder (directory), eg. hellooc
Open the konsole window and run hellooc (i.e. type hellooc at the prompt).
التكملة فى التعليق الاول.
* The

19/07/2021

البرمجة للجميع ٢:
General:
Make a new directory under /home/user-name (eg. Tom)/Documents and call it executables.
Add to this directory each executable (compiled) file.
Go to the desktop, click Documents (Konquerer will open with a list of files & folders plus the menu and probably a tree-like files & folders on your PC), click View on the main menu and then choose Show hidden files. The hidden files that start with a dot (.) will appear.
Go to /home/user-name (eg.Tom)/ directory and click on .bashrc file. It will open in a text editor, probably kwrite. Add the following line to the end of the file export PATH=/home/user-name (eg.Tom)/Documents/executables:$PATH. Then save the file and close (exit) the editor.
Go to konquerer, click View in the menu list, then choose and click one more time Show hidden files, the hidden ones will disappear.

Saying hello in different languages:
C++:
Open a new document in any text editor (kwrite, kedit or kate).
Type the following lines:

int main ()
{
printf ("Hello world from gcc/g++\n");
}
Save the file as hellocpp.cpp
Compile it per the table given in previous post
Copy the executable (compiled) file to the executables folder (directory), eg. hello1
Open the konsole window and run hello1 (i.e. type hello1 at the prompt).
Fortran 77:
Open a new document in any text editor (kwrite, kedit or kate).
Type the following lines:
program hello
c This program prints hello, leave at least 7 spaces before typing program hello above
write (*, *) 'hello from g77, fortran77'
stop
end
Save the file as hello.for
Compile it per the table given in previous post
Copy the executable (compiled) file to the executables folder (directory), eg. hellog77
Open the konsole window and run hellog77 (i.e. type hellog77 at the prompt).

gFortran:
الكمالة فى أول تعليق.

Want your school to be the top-listed School/college in Cairo?
Click here to claim your Sponsored Listing.

Category

Address


قايتباى
Cairo
٠٠٠٠٠٠٠٠