تبليغاتX
برنامه نويس حرفه اي

اين هم يك سايت متنوع در زمينه كامپيوتر

كيهان كامپيوتر

http://www.kayhan.blogfa.com

+ نوشته شده در  2008/2/6ساعت 6 PM  توسط TM  | 

 

امكانات RUN

 

Explorer:  windows explorer - my document- 1

2 - Notepad: start à all programs à accessories à notepad

3 - DVDplay:  start à all programs à accessories à entertainment à windows media player

4 - Eventvwr: start à control panel à administrative tools à event   (تنظيم گزارشات امنيتي و اطلاعات سخت افزاري)                                viewer

5 - Wupmgr:

اتصال به windowsupdate.microsoft.com براي به روز رساني ويندوز

6 - Calc: start à all programs à accessories à calculator

7 - Charmap: start à all programs àaccessories à system tools à character map                                                  

  ليست كامل حرف فونتها

8 - Cleanmgr: start à all programs à accessories à system tools à disk cleanup

پاك كردن فايل هاي بس استفاده براي آزادسازي فضاي ديسك

9- Moviemk: start à all programs à accessories à windows movie maker

نرم افزاري ساده براي اتصال كليپها و انجام تغييرات در آنها

10- Cmd: command prompt

11- Magnify: start à all programs à accessories à accessibility à magnifier

( ذره بين براي كم بينايان )

12- Narrator: start à all programs à accessories à accessibility à narrator

( تلفظ براي نابينايان )

13 -Taskmgr: task manager

14- Sndvol32:  start à all programs à accessories à entertainment à volume control

15- Write: start à all programs à accessories àWordPad

16- Mspaint: start à all programs à accessories à paint

17- Sndrec32: start à all programs à accessories à entertainment à sound recorder

18- Helpctr: start à help & support

19- Control: control panel

20- Logoff: start à logoff

21- Tour: start àall programs à accessories à tour windows xp

22- Regedit: registery editor

تغيير حافظه ثابت ويندوز

23- Perform: start à control panel à administrative tools à performance

اطلاعات نموداري و عددي منابع

24- Recent: my recent document

يك پوشه مخفي براي برنامه ها و فاياهاي استفاده شده

25- Desktop

پوشه دسكتاپ در my document

26-System

پوشه system در پوشه windows

27- Clipbrd

درsystem32  براي مشاهده محتويات حافظه موقت

28- Migwiz: start à all programs à accessories à system tools à file & setting transfer wizard

انتقال تنظيمات از كامپيوتر قديمي به جديد

29- Rasphone: connect dialup conection

30- Accwiz: start à all programs à accessories àaccessibility à accessibility wizard

( ويزارد كمك به افراد ناتوان )

31- Iexpress

برنامه اي براي ايجاد بسته هاي نصب نرم افزاري و فشرده سازي

32- Inetmgr

Start à control panel à administrative tools à internet information service

اطلاعاتي درباره سرويسهاي اينترنتي و اتصال و نوع شبكه

33- Mobsync: startà all programs à accessoriesà synchronize

به روز رساني سايت ها براي سرعت بيشتر دانلود

34- Mstsc: start à all programs à accessoriesàcommunications à remote desktop connections

انشعاب از صفحه نمايش به سيستم ديگر

35- Netsetup: start à all programs à accessoriesàcommunications à network setup wizard

آماده سازي كامپيوتر براي كار در شبكه

36- Ntbackup: start à all programs à accessoriesà systemtools à backup

( پشتيبان گيري از اطلاعات )

37- Osk: start à all programs à accessories à accessibility à on screen keyboard

38- Shrpubw:      

ايجاد يك پوشه اشتراكي در شبكه  

39- Syncapp

ايجاد يك new briefcase  در دسكتاپ  

40 - Sysedit: system configuration editor

فايلهايي نظير syste.ini – win.ini – config.sys- autoexec.bat  را ويرايش مي نمايد .

41- Uninst: uninstall shield

42- Winchat

امكان چت در محيط ويندوز با اتصال به شبكه

43- Drwtsn32:

يك خطاياب يا debugger  براي ويندوز و برنامه ها

44- Eudcedit: private character editor

برنامه اي براي اضافه كردن كاراكترهاي Unicode  براي كتابخانه فونتهاي شخصي

45- Utilman:  start à all programs à accessories à accessibility à utility manager

برنامه اي براي تنظيم راه اندازي خودكار و نظارت بر ابزارهاي توانمندي مثل : 

 On screen keyboard – narrator – magnifier

46- INF

پوشه inf  در پوشه windows   

47- Ddeshare (dynamic data exchange share)

مديريت اشتراك گذاري فايلها و پوشه ها

48- Cookies:

پوشه cookies  در my document

49- Msconfig:

تنظيم فايلهاي load  و ويرايش startup

50- Cliconfg:

برنامه هاي كاربردي شبكه براي كاربر  و سرور در sql

51- Hypertrm: start à all programs à accessories à communications  à hyper terminal

( ارتباط با ديگر كامپيوتر ها به حالت چت )

52- Msinfo32: start à all programs à accessories àsystem tools à system information

( اطلاعات سخت افزاري و نرم افزاري سيستم )

53- FreeCell:

بازي FreeCell  در game  هاي ويندوز 

54- Spider:

بازي spider  در game  هاي ويندوز 

55- Winmine:

بازي minesweeper  در game  هاي ويندوز 

56- Mshearts:

بازي the Microsoft hearts network در game  هاي ويندوز

+ نوشته شده در  2008/2/6ساعت 12 PM  توسط TM  | 

ويرايش انواع قالب هاي وبلاگ پذيرفته مي شود .

طراحي سايت پذيرفته مي شود .

+ نوشته شده در  2008/2/5ساعت 1 PM  توسط TM  | 

لطفا نظر خود را درباره مطالبي كه مي تواند براي محتواي سايت مناسب باشد بدهيد . برنامه نويسي ، اينترنت ، كامپيوتر و ...
+ نوشته شده در  2008/2/5ساعت 1 PM  توسط TM  | 

۳۳
#include
#include
void main()
{clrscr();
cout<<"\n Please enter number:";
int key;
key=getch();
switch(key)
{
case '1':
cout<<"\n 1:saturday";
break;
case '2':
cout<<"\n 2:sunday";
break;
case '3':
cout<<"\n 3:monday";
break;
case '4':
cout<<"\n 4:tuesday";
break;
case '5':
cout<<"\n 5:wednesday";
break;
case '6':
cout<<"\n 6:thursday";
break;
case '7':
cout<<"\n 7:friday";
break;
default:
cout<<"\n Error select number";
}getch();
}
۳۴
#include
#include
void main()
{clrscr();
float x,y,z,max,min;
cout<<"Please enter number 1:";
cin>>x;
cout<<"Please enter number 2:";
cin>>y;
max=(x>y)? x:y;
min=(xcout<<"\n max="<
+ نوشته شده در  2008/1/10ساعت 6 PM  توسط TM  | 

۱

 

template
maximum max(maximum x,maximum y, maximum z)
{
  maximum m=x;
   if (y>m) m=y;
   if ()z>m) m=z;
 return m;

  void main()
{
 double a,b,c;
 cin>>a>>b>>c;
 cout < int a,b,c;
  cin >>a>>b>>c;
  cout < cout <  float a,b,c;
  cin >>a>>b>>C;
 cout<}

 


۲

 


template
 void sort(szt a[],st n)
{
   int i,j; st template;
    for (i=0;i      for(j=1;j        for(i=0;i     if (a[i]>a[i+1])
  {
     temp=a[i];
     a[i]=a[i+1];
     a[i+1]=temp;
  }
 for (i=0;i   cout <  }
 void main ()
{
 const int n=10;
 chara[n];
  cout<<"please enter"<<"char \n";
  sort(a,n);
 double(a,n);
 double a[n];
 cout<<"please enter"< sort(a,n);
}

۳۰


#include
#include
#include
int main()
{
int x,*p,**q;
clrscr();
p=&x;
q=&p;
cout<<"\n the q points to address value:"<<**q;
getch();
return 0;
}
 

+ نوشته شده در  2008/1/10ساعت 4 PM  توسط TM  | 

3

 

void main()

{

 ifstream  in ("text2.text");

 char s;

 if(!in)

{

  cout<<"can not open file";

  exit(0);

}

  while(in.eof())

{

 in>>s

 in.get(s);

}

}

 

*********************************

 

4

 

 

void main()

{

 ifstream in ("text2.text");

 ifstream out("text1.text");

   char s;

 if (! in)

{

  cout <<"can not open file ";

   exit(0);

}

 while (in.eof())

{

 in >>s;

 a[i]=s;

 i++;

 for(i=0;a[i]='/0';i++);

   for(j=i;j

    out<

   out.get(s);

}

}

 

6

#include

#include

#include

struct time{

   int hour;

   int minut;

   } ;

//**********************************//

struct date {

   int year;

   int month;

   int day;

   };

//**********************************//

struct student{

  char name[20];

  char lname[30];

  char id[10];

  int code;

  char les [10][30];

  int vahed[10];

  float mark[10];

  date d;

  time t;

  }; *stu

 

//**********************************//

int main()

{

   int n;

   cin>>n;

   stu=new student[n];

 

 

 

          }

   }

 

10

#include

#include

#include

class time {

   public:

      void getdate();

      void addyear();

      void addmonth();

      void addday();

      int year;

      int month;

      int day;

   };

//******************//

   void time::getdate()

      {

       cout<<"enter year:";

       cin>>time.year;

       cout<<"enter month:";

       cin>>time.month;

       cout<<"enter day:";

       cin>>time.day;

      }

//*****************//

   void time::addyear()

   {

       time.year=time.year+1;

    }

//*****************//

   void time::addmonth()

   {

       time.month=time.month+1;

    }

//*****************//

   void time::addday()

   {

       time.day=time.day+1;

    }

//******************//

 


 

11
bainary search()
{
  int *fp(int n);
{
int *x=new int [n];
 return x;
}

 

 

12

#include

#include

#include

#include

 void repit(char *s1,char ch);

 void main ()

 {

   clrscr();

   char *s1;

   char ch;

   cout<< "\t"<<"enter a string =  ";

   cin>>s1;

   cout<< "\t"<<"enter a character =  ";

   cin>>ch;

   repit(s1,ch);

   getch();

 }

 //*****************************************************************

 void repit(char *s1,char ch)

  {

   int c=0;

   for (int i=0;s1[i]!='\0';i++)

     if (ch == s1[i])

      c++;

   cout<<"\t"<<"tekrar = "<

  }

 

13

STRCPY********************************

#include

#include

#include

void strcpyF(char[] ,char[]);

void main(){

  clrscr();

  cout<<"Enter String src: ";

  char s1[30];

  char s2[30];

  cin>>s1;

  cout<<"Enter String dest:";

  cin>>s2;

  strcpyF(s1,s2);

  cout<<"string src:"<

  getch();

  }

  void strcpyF(char *p,char s[30]){

    int i=0;

    while(i

    *p=s[i];

    p++;

    i++;

    }

    *p='\0';

    }

  

14

#include

#include

void cmp(char *,char*,int);

int main()

 {

 char s1[10],s2[10];

 clrscr();

 int comp=1;

 cout<<"\n Enter String1:";

 cin.get(s1,9);

 cin.get();

 cout<<"\n Enter String2:";

 cin.get(s2,9);

 cmp(s1,s2,comp);

 getch();

 return 0;

 }

 /****************************************/

 void cmp(char *s1,char *s2,int ignor)

 {

   int i;

   char a,b;

   for(i=0;*s1 && *s2;s1++,s2++,i++)

      if (*s1!=*s2)

      {

          if(ignor)

            {

            a=(*s1>='a'&& *s1<='z') ?   *s1-=32:*s1;

            b=(*s2>='a'&&  *s2<='z' ) ? *s2-=32:*s2;

            if(a!=b) break;

            }

      else

            break;

      }

       if (*s1||*s2)

       cout<<"\n Result :String1 Not Equle String2" ;

       else  cout<<"Result:String1  Equle String2";

 

}

 

 

15

void main()

{

  char s[80];

  cin>>s;

  cout<

  }

int strlen(char *p)

{

  for(int i=0;p[i]!='\0';i++)

    return i+1;

}

 

16

#include

#include

#include

#include

#include

 void strreverse(char s1[]);

 void main ()

 {

   clrscr();

   char s1[20];

   cout<<"\t"<<"enter a string = ";

   cin>>s1;

   strreverse(s1);

   getch();

 }

//*******************************************************

 void strreverse(char s1[])

 {

  for (int i=0;s1[i]!='\0';i++);

    for (int j=i;j>=0;j--)

     cout<

 }

 

20

#include

#include

#include

int f(int,int);

int main(){

      clrscr();

      int x,y;

      cout<<"enter 2 numbers:";

      cin>>x>>y;

      cout<<"B.M.M:"<

      getch();

      }

/***********************************************/

      int f(int a,int b){

      int f1;

      if (a%b==0)

        f1=b;

       else

         f1=f(b,a%b);

       return f1;

         }

 

 

 

 

 

 

 

21

#include ;

#include

long maghlob(long x);

void main()

{

int x,num;

cout<<"enter a number:";

cin>>x;

num=maghlob(x);

cout<<"maghlob="<

getch();

long maghlob(long x);

 

{

int r,d,i,z=0;

for(i=1;x>=10;i++)

{

r=x%10;

d=x/10;

x=d;

z=z*10+r;

 }

z=z*10+x;

return z;

}

}

 

22

غير بازگشتي 20

#include

#include

float bmm(int x,int y);

void main()

{

  clrscr();

  int x,y;

  cout<<"\nEnter number 1:";

  cin>>x;

  cout<<"\nEnter number 2:";

  cin>>y;

  cout<<"\nResult:"<

}

//*********************

float bmm(int x,int y)

{

  int r;

  while (y>0)

   {

     r=(x%y);

     x=y;

     y=r;

   }

  return x;

 }

 

 

22

غير بازگشتي 21

#include ;

#include

long maghlob(long x);

void main()

{

int x,num;

cout<<"enter a number:";

cin>>x;

num=maghlob(x);

cout<<"maghlob="<

getch();

long maghlob(long x);

 

{

int r,d,i,z=0;

for(i=1;x>=10;i++)

{

r=x%10;

d=x/10;

x=d;

z=z*10+r;

 }

z=z*10+x;

return z;

}

}

 

23

#include

#include

int sum1(int[][2],int[][2],int[][2]);

int main()

{

 int mat1[2][2],mat2[2][2],mat3[2][2]={0};

 int i,j,k;

 clrscr();

 //**********************read mat1************************//

  for (i=0;i<2;i++)

    for (j=0;j<2;j++)

      {

       cout<<"Enter mat1["<

       cin >>mat1[i][j];

      }

  //**********************read mat2*************************//

   for (i=0;i<2;i++)

     for (j=0;j<2;j++)

       {

      cout <<"Enter mat2["<

       cin>>mat2[i][j];

       }

  sum1(mat1,mat2,mat3);

      getch();

      return 0;

  }

  //******************sum mat1 by mat2**********************//

int sum1(int mat1[][2],int mat2[][2],int mat3[][2])

 {

  int i,j,k;

   for (i=0;i<2;i++)

     for (j=0;j<2;j++)

      {

       mat3[i][j]=0;

      mat3[i][j]=mat1[i][j]+mat2[i][j];

      }

     cout<<"\nThe product of mat1 & mat2 is :\n\n";

     for (i=0;i<2;i++)

     {

       for (j=0;j<2;j++)

       cout<       cout<

      }

  }

 

24

#include

#include

int mul(int[][2],int[][2],int[][2]);

int main()

{

 int mat1[2][2],mat2[2][2],mat3[2][2]={0};

 int i,j,k;

 clrscr();

 //**************************read mat1********************************//

  for (i=0;i<2;i++)

    for (j=0;j<2;j++)

      {

 

       cout<<"Enter mat1["<

       cin >>mat1[i][j];

      }

  //*************************read mat2********************************//

   for (i=0;i<2;i++)

     for (j=0;j<2;j++)

       {

      cout <<"Enter mat2["<

       cin>>mat2[i][j];

       }

     mul(mat3,mat2,mat1);

      getch();

      return 0;

   }

  //***********************multiply mat1 by mat2***********************//

int mul(int mat3[][2],int mat2[][2],int mat1[][2])

 {

   int i,j,k;

   for ( i=0;i<2;i++)

     for ( j=0;j<2;j++)

      {

       mat3[i][j]=0;

      for ( k=0;k<2;k++)

      mat3[i][j]=mat3[i][j]+mat1[i][k]*mat2[k][j];

      }

     cout<<"\nThe product of mat1 & mat2 is :\n\n";

     for (i=0;i<2;i++)

     {

       for (j=0;j<2;j++)

       cout<  ";

       cout<

      }

  }

 

27

#include

#include

#include

 

void main()

{

  clrscr();

  int a;

  int b;

  int c;

  int delta;

  float x1;

  float x2;

//********input zarayeb***********//

  cout<<"enter zarib x2:";

  cin>>a;

  cout<<"enter zarib x:";

  cin>>b;

  cout<<"enter zarib c:";

  cin>>c;

//***********mahasebat************//

  delta=((pow(b,2))-(4*a*c));

 

    if (delta>0)

      {

      x1=b-(sqrt (delta))/(2*a);

      cout<<"first root:";

      cout<

      x2=b+(sqrt(delta))/(2*a);

      cout<<"second root:";

      cout<

       }

 

      if (delta==0) {

      x1=b/(a*2);

      cout<<"first root:";

      cout<

          }

        if (delta<0){

          cout<<"THERE ARE NO ROOT";

            }

getch();

}

 

28

# include

# include

float f ( int n ) ;

void main ()

{

//clrscr();

for (int i=1 ; i<=20;i++)

cout << "F = " << f(i) << "/n" ;

getch();

}

float f ( int n)

{

       if (n<1) return 1;

       if (n==1) return 1 ;

       if (n==2) return 1  ;

      return f(n-1)+f(n-2) ;

      }

 

29

خروجی بر روی صفحه نمايش و رودی از صفحه کليد

با توابع scanf,printf وکلاس های  cout, cin می توان تمام خروجی ها بر روی صفحه نمایش و تمام ورودی ها از صفحه کلیدرا انجام داد

کلاس cout  و تابع printf برای نمایش داده ها روی صفحه نمایش است.

شکل کلی تابع printf در c  , c++

شکل کلی کیورد cout به همراه علامت >>  در c++

Printf(“عبارت1” [,آرگومان ها]);

Printf(“hello world”);

دستور بالا hello world را روی ما نیتور نمایش می دهد.

عبارت 1 می تواند شامل پیام  ، کاراکترهای کنترلی (شکل 1-8) برای قالب بندی خروجی وکدهای فرمت خروجی مانند(%i, %d , %f , %c , %s,%p,%g,...) برای تعیین نوع خروجی آرگومان ها  باشد.

آرگومان ها می تواند لیستی از متغیر یا عبارت ریاضی و .. باشد  که با علامت کاما (,) از هم جدا می شوند

توجه: به ازای هر آرگومان بایستی یک کد فرمت خروجی در عبارت 1 تعین شود.

Printf(“\n numbre1=%i \t number2=%f”,12,12.5);

خروجی:

Number1=12                number2=12.5

Cout << عبارت1 [<<عبارت2…];

Cout  << “ hello world ”; 

دستور بالا hello world را روی ما نیتور نمایش می دهد.    

عبارت 1 وعبارت  2 هر کدام می تواند یک متغیر یا  پیام و یا کاراکترهای کنترلی (شکل 1-8) برای قالب بندی خروجی  باشد. 

Cout <<”number1=” + 12 <<”\t” 

Cout <<”number2=”<<12.5

    برای قالب بندی خروجی  روی مانیتور کدهای وجود دارند ( این کد ها یا کلیدهادرc++  کدهای Escape  نیز نامیده می شود).که به همراه  تابعprintf و کلاس cout  استفاده میشود. جدول زیر  انواع کدهای escape را نشان می دهد.

کد escape

وظیفه

کد escape

وظیفه

\n

خط جدید

\a

زنگ هشدار

\r

بازگشت مکان نما به سطر جدید

\v

انتقال به هشت سطر جدید

\b

پاک کردن آخرین کاراکتر جاری

\\

نمایس\

\t

ایجاد هشت فضای خالی

\”

نمایش 

\’

نمایش

\?

نمایش ?

\f

صفحه جدید

 

 

درC++  تکنیکهای دیگری علاوه بر کدهای scape ، برای قالب بندی خروجی وجود دارد که می توانند قالب بندی را با فرمانهای مشخص از c++  مانند فرمانهای زیر کنترل کنند.                                                                                                                                                       

قالب قسمت اشارممیز شناور را تنظیم  می کند   Cout << setprecision

رفتن به خط جدید        Cout << endl;

پر کردن با فر     Cout << flush;

نمایش عدد در مبنای  16Cout << hex;          

نمایش عدد در مبنای   10Cout  << dec;                               

تابع scanf و کلاس cin : توابع  برای دریافت داده از صفحه کلید و ذخیره داده های ورودی درمتغییرهای حافظه استفاده  می شود و  شکل استفاده این توابع  بصورت زیر است.

شکل کلی تابع scanf

شکل کلی کلاس cin به همرا علامت <<

scanf(“کدهای فرمت ورودی”, “آدرس آرگومانها”);

کدهای فرمت ورودی با علامت % شروع می شوند و تعیین کننده نوع داده ورودی می باشند.مانند. %f,%i,%s,%c,%e,%g,..

Int x;

Float y;

Scanf(“%i %f”,&x,&y);

Cin >> متغیر1 [<< متغیر2…]

Int x;

Float y;

Cin >>x >>y;

 

د و روش مورد استفاده رایج دیگر به  همراه  تابع cin استفاده از get و getline  است . تابع get فقط یک کارکتر را می گیرد و تابع getline حداکثر تعداد  خاص از کارکتر را که  معین کرده ایم  می گیرد.  مثال :کد زیر اجرا کنید

 #include

int main( )  {

char text [10];

cout << “ please enter a world ” << endl;

cin.getlne ( text , 10 );

cout << “text is “ << text<< endl;

return 0;      }

 

 

32

   #include

   #include

   #include

      float sin1(float);

 

      long fact(int);

      void main()

      {

            clrscr();

 

 

 

            float x;

            cout<<"enter number RAD:";

            cin>>x;

            cout<<"sin ("<

            getch();

 

         }

            long fact(int i)

            {

                  long f=1;

                  for (int j=1;j<=i;j++)

                        f*=j;

                  return f;

            }

         float sin1(float x)

            {

 

              float sum=0;int n;

               int k=1;

 

              cout<<"Enter number:";

              cin>>n;

              for (int i=1;i<=n;i++)

                   {

                     sum=k*pow(x,2*i-1)/fact(2*i-1)+sum;

                     k=k*(-1);

                   }

                   return sum;

 

             }

 

35

#include

#include

void main()

{ clrscr();

      long int s[5][2]; long int sal;

      cout<<"Please enter your ID and SALERY \t";

      for (int i=0;i<5;i++)

         for (int j=0;j<2;j++)

           cin>>s[i][j];

      for (i=0;i<5;i++)

         for (j=0;j<2;j++){

           if (5000000

             {   sal=92*s[i][j]/100;

               s[i][j]=sal;   }

           if (6000000

             {   sal=90*s[i][j]/100;

               s[i][j]=sal;   }

           if (s[i][j]>7000000)

             {   sal=87*s[i][j]/100;

               s[i][j]=sal;   }}

      for (i=0;i<5;i++)

         {  cout<<"\n ID & Salery: \t";

            for (j=0;j<2;j++)

            cout<<"\t"<<

            s[i][j]; }

    getch();

}

 

 

برنامه هاي بعدي متعاقبا در وبلاگ گذاشته مي شوند . اگر با افرادي كه برنامه هاي خود را به  ايميل ارسال نكرده اند ارتباط داريد به آن ها اطلاع دهيد تا سريع تر برنامه ها را به

ايميل بالا ارسال نمايند

خانم ها : جوان ، رضواني فرو هم گروهي ايشان ، افشاني ، ابراهيمي ، هم گروهي خانم شادلو  

 

+ نوشته شده در  2008/1/9ساعت 4 PM  توسط TM  | 

انواع پروژه هاي برنامه نويسي پذيرفته مي شود .

در صورت نياز با ايميل

TM_19901369@yahoo.com تماس حاصل فرماييد .

+ نوشته شده در  2008/1/4ساعت 10 AM  توسط TM  |