بالا
 تعرفه تبلیغات




 دانلود نمونه سوالات نیمسال دوم 93-94 پیام نور

 دانلود نمونه سوالات آزمونهای مختلف فراگیر پیام نور

صفحه 2 از 9 اولیناولین 1234 ... آخرینآخرین
نمایش نتایج: از شماره 11 تا 20 از مجموع 89

موضوع: پروژه های نوشته شده به زبان سی پلاس پلاس

  1. #11
    karma آواتار ها
    • 381

    عنوان کاربری
    کاربر باشگاه
    تاریخ عضویت
    Sep 2008
    محل تحصیل
    بناب
    راه های ارتباطی

    پیش فرض چاپ اعداد اول

    کد:
    #include <iostream.h>
     #include <conio.h>
     void null(int *n);
     int main()
     {
     int n,f;
     gotoxy(30,3);
     cout<<"***  Welcome  ***";
     gotoxy(55,23);
     cout<<"***  SPRING OF 1387  ***";
     gotoxy(1,10);
     cout<<"please enter a number :";
     cin>>n;
     null(&n);
     getch();
     return 0;
     }
     //****************************
     void null(int*n)
     {
     gotoxy(1,13);
      for(int i=2;i<*n;i++)
      {
        int flag=1;
          for(int j=2;j<i;j++)
             if(i%j==0)flag=0;
          if(flag!=0)cout<<i<<" ";
      }
     }
    این برنامه یک عدد را از شما می گیره و اعداد اول از یک تا اون عدد را چاپ می کنه

  2. #12
    karma آواتار ها
    • 381

    عنوان کاربری
    کاربر باشگاه
    تاریخ عضویت
    Sep 2008
    محل تحصیل
    بناب
    راه های ارتباطی

    پیش فرض پیاده سازی پشته

    کد:
    #include <iostream>
    #include <conio>
    int pop(int,int,int*);
    int push(int,int *);
    void print(int *);
    int array[10],item;
    int main()
    {
    int top=-1;
    char ch=100;
    while(ch!='3'&&ch!=27)
    {
      clrscr();
      cout<<"\n\nWhat do you want to do:";
      cout<<"\n\n1-Pop";
      cout<<"\n2-Push";
      cout<<"\n3-Exit";
      cout<<"\n\nWhat is your choise(1,2,3):";
      ch=getch();
      switch(ch)
      {
        case'1':
            clrscr();
            cout<<"\n\nPlease enter a number:";
            cin>>item;
            top=pop(item,top,array);
            print(array);
            getch();
            break;
        case'2':
            clrscr();
            top=push(top,array);
            print(array);
            getch();
            break;
        case'3':return 0;
      }
    }
    getch();
    return 0;
    }
    //******************************************************************************
    int pop(int x,int up,int *stack)
    {
      up++;
      if(up>9)
        cout<<"Sorry Stack Is Full";
      else
        stack[up]=x;
      return up;
    }
    //*************************************
    int push(int up,int *stack)
    {
      if(up<0)
        cout<<"\nSorry Stack Is Empety\n\n";
      else
      {
        stack[up]=0;
        up--;
      }
      return up;
    }
    //*************************************
    void print(int *stack)
    {
    for(int i=0;i<10;i++)
     cout<<stack[i]<<" ";
    }

  3. #13
    karma آواتار ها
    • 381

    عنوان کاربری
    کاربر باشگاه
    تاریخ عضویت
    Sep 2008
    محل تحصیل
    بناب
    راه های ارتباطی

    پیش فرض پیاده سازی صف

    کد:
    #include <iostream>
    #include <conio>
    int add(int,int,int*);
    int delet(int,int,int*);
    void print(int *);
    int saf[10],item;
    int main()
    {
    int rear=-1,front=-1;
    char ch=100;
    while(ch!='3'&&ch!=27)
    {
      clrscr();
      cout<<"\n\nWhat do you want to do:";
      cout<<"\n\n1-Add";
      cout<<"\n2-Delete";
      cout<<"\n3-Exit";
      cout<<"\n\nWhat is your choise(1,2,3):";
      ch=getch();
      switch(ch)
      {
        case'1':
            clrscr();
            cout<<"\n\nPlease enter a number:";
            cin>>item;
            rear=add(item,rear,saf);
            print(saf);
            getch();
            break;
        case'2':
            clrscr();
            front=delet(front,rear,saf);
            print(saf);
            getch();
            break;
        case'3':return 0;
      }
    }
    getch();
    return 0;
    }
    //***********************************************
    int add(int item,int r,int*q)
    {
      if(r>9)
        cout<<"The queue is full\n\n";
      else
        q[++r]=item;
    return r;
    }
    //***********************************************
    int delet(int f,int r,int*q)
    {
      if(f==r)
        cout<<"The queue is empety\n\n";
      else
        q[++f]=0;
    return f;
    }
    //***********************************************
    void print(int *q)
    {
      for(int i=0;i<10;i++)
      {
        cout<<q[i];
        if(i<9)cout<<",";
      }
    }

  4. #14
    karma آواتار ها
    • 381

    عنوان کاربری
    کاربر باشگاه
    تاریخ عضویت
    Sep 2008
    محل تحصیل
    بناب
    راه های ارتباطی

    پیش فرض پیاده سازی صف حلقوی

    کد:
    #include <iostream>
    #include <conio>
    void add(int,int*,int*,int*);
    int delet(int*,int*,int*,int*);
    void print(int*);
    int queue[10],item;
    int main()
    {
      int rear=0,front=0,remove;
      char ch=100;
      while(ch!='4'&&ch!=27)
      {
        clrscr();
        cout<<"What do you want to do?\n\n";
        cout<<"1-Add\n2-Delete\n3-Print\n4-Exit\n\n";
        cout<<"What is your selection :";
        ch=getch();
        switch(ch)
        {
          case'1':
             clrscr();
             cout<<"Please eneter a number :";
             cin>>item;
             add(item,&rear,&front,queue);
             break;
          case'2':
             clrscr();
             remove=delet(&item,&rear,&front,queue);
             if(remove!=0)
             cout<<"Deleted number is :"<<remove;
             queue[front]=0;
             getch();
             break;
          case'3':
             clrscr();
             cout<<"The queue is :";
             print(queue);
             getch();
             break;
          case'4':
             return 0;
        }
      }
      getch();
      return 0;
    }
    //***********************************************
    void add(int item,int*r,int*f,int*q)
    {
      if(*r==9)
        *r=0;
      else
        *r+=1;
      if(*r==*f)
      {
        cout<<"Queue is full";
        *r-=1;
        getch();
      }
      else
        q[*r]=item;
    }
    //***********************************************
    int delet(int*item,int*r,int*f,int*q)
    {
      if(*f==*r)
      {
        cout<<"Queue is empety";
        return 0;
      }
      else
      {
        if(*f==9)
          *f=0;
        else
          *f+=1;
      }
    return q[*f];
    }
    //***********************************************
    void print(int *q)
    {
      cout<<"\n";
      for(int i=0;i<10;i++)
      {
        cout<<q[i];
        if(i<9)cout<<",";
      }
    }

  5. #15
    karma آواتار ها
    • 381

    عنوان کاربری
    کاربر باشگاه
    تاریخ عضویت
    Sep 2008
    محل تحصیل
    بناب
    راه های ارتباطی

    پیش فرض برنامه تبدیل عبارات میانوندی به پسوندی

    کد:
    #include <iostream>
    #include <conio>
    void pop(char,int*,char*);
    void print(char*);
    char push(int*,char*);
    char in[50],out[50],stack[50],ch;
    int main()
    {
      int top=-1,i,j=0;
        clrscr();
        cout<<"\n\nPlease enter your prasse:";
        cin>>in;
        for(i=0;i<50;i++)
        {
            if((in[i]>96&&in[i]<123)||(in[i]>64&&in[i]<91))
            {
              out[j]=in[i];
              ++j;
            }
            else if(in[i]!=')')
              pop(in[i],&top,stack);
            else if(in[i]==')')
            {
              while(top>-1)
              {
                ch=push(&top,stack);
                if(ch!='(')
                {
                   out[j]=ch;
                   ++j;
                }
              }
            }
        }
      print(out);
      print(stack);
      getch();
      return 0;
    }
    //*************************************
    void pop(char x,int* up,char *stack)
    {
      *up+=1;
      if(*up>49)
        cout<<"Sorry Stack Is Full";
      else
        stack[*up]=x;
    }
    //*************************************
    char push(int *up,char *stack)
    {
      if(*up<0)
        cout<<"\nSorry Stack Is Empety\n\n";
      else
        *up-=1;
    return stack[*up+1];
    }
    //*************************************
    void print(char*s)
    {
      for(int i=0;i<50;i++)
        if(s[i])
          cout<<s[i];
    }
    این برنامه عبارت میانوندی را که با پارانتز اولویت بندی شده را میگیرد و ان را به یک عبارت پسوندی تبدیل می کند.

  6. #16
    karma آواتار ها
    • 381

    عنوان کاربری
    کاربر باشگاه
    تاریخ عضویت
    Sep 2008
    محل تحصیل
    بناب
    راه های ارتباطی

    پیش فرض برنامه کتابخانه که نیازی به توضیح هم نداره!!!

    کد:
    #include <iostream>
    #include <conio>
    #include <fstream>
    #include <algorithm>
    #include <stdio>
    #include <stdlib>
    # define esc 27
    #define enter 13
    #define up 72
    #define down 80
    #define tab 9
    class library
    {
     public:
      struct book
       {
         char name[20];
         char writer[20];
         char date[15];
         char publisher[20];
         char subject[20];
         int id,price;
       }book1,booktemp;
      int menu();
      char addmenu(int *,char *);
      void add();
      void searchmenu(int *,char *);
      void search();
      void show(int*,char*,char *);
      void deletmenu(char *);
      void delet();
    }book;
    //***********************main***************************************************
    int main()
    {
    while(1)
    {
    window(1,1,80,25);
    textbackground(0);
    textcolor(15);
    clrscr();
    gotoxy(29,3);
    cprintf("WELCOM TO MY LIBRARY");
    gotoxy(55,23);
    cprintf("***  SPRING OF 1387  **");
    int select=book.menu();
     switch(select)
     {
      case 1:book.add();break;
      case 2:book.search();break;
      case 3:book.delet();
      case 4:
      cout<<"\a";
      window(10,5,70,20);
      textbackground(1);
      textcolor(15);
      clrscr();
      gotoxy(15,7);
      cprintf("ARE YOU SURE (y/n)?");
      char ex=getch();
      if(ex==13||ex==121||ex==89)
       return 0;
     }
    }
    return 0;
    }
    //******************************functions***************************************
    int library::menu()
    {
     char item[4][20]={
      "1->Insert","2->Search","3->Delet","4->Exit"},key;
      int i=0,j=0;
      window(10,5,70,20);
      textbackground(3);
      clrscr();
      window(1,1,25,80);
      while(1)
      {
       for(i=0;i<4;i++)
        {
         textbackground(3);
         textcolor(14);
         if(i==j)
         {
          textbackground(1);
          textcolor(15);
         }
         gotoxy(2,2+(2*i));
         cprintf("%s",item[i]);
        }
        gotoxy(2,2+(2*j));
        key=getch();
        switch(key)
        {
         case 49:j=0;break;
         case 50:j=1;break;
         case 51:j=2;break;
         case 52:j=3;break;
         case up:if(j==0)j=3;else j--;break;
         case down:if(j==3)j=0;else j++;break;
         case tab:if(j==3)j=0;else j++;break;
         case enter:break;
         case esc:return 4;
        }
       if(key==13)break;
      }
     return j+1;
    }
    //*****************************************
    char library::addmenu(int *j,char *key)
    {
     char add[7][20]={
     "Name :","Writer :","Date publisher :","Price :","publisher :","Subject :","Code:"};
     int i,flag=0;
     window(21,5,50,20);
     textbackground(1);
     clrscr();
     while(1)
      {
       for(i=0;i<7;i++)
        {
         textbackground(1);
         textcolor(14);
         if(i==*j)
         {
          textbackground(3);
          textcolor(15);
         }
         gotoxy(2,2+(2*i));
         cprintf("%s",add[i]);
        }
        gotoxy(2,2+(2*(*j)));
        *key=getch();
        switch(*key)
        {
         case up:if(*j==0)*j=6;else (*j)--;break;
         case down:if(*j==6)*j=0;else (*j)++;break;
         case tab:if(*j==6)*j=0;else (*j)++;break;
         case enter:break;
         case esc:break;
        }
        if(*key==13||*key==27)break;
       }
    }
    //****************************************************
    void library::add()
    {
    char add[7][20]={
     "Name :","Writer :","Date publisher :","Price :","publisher :","Subject :","Code:"},key;
    int j=0;
    char ch=addmenu(&j,&key);
    ofstream file1("C:\\library.dat",ios::app);
    if(!file1) cout<<"\ncan not open file";
    if(ch==13)
     {
      gotoxy(2,2+(2*j));textbackground(1);textcolor(14);cprintf("%s",add[j]);
      gotoxy(2,2);textbackground(3);textcolor(15);cprintf("%s",add[0]);
      gotoxy(8,2);cin.get(book1.name,20);cin.get();
      gotoxy(10,4);cin.get(book1.writer,20);cin.get();
      gotoxy(18,6);cin.get(book1.date,20);cin.get();
      gotoxy(9,8);cin>>book1.price;cin.get();
      gotoxy(13,10);cin.get(book1.publisher,20);cin.get();
      gotoxy(11,12);cin.get(book1.subject,20);cin.get();
      gotoxy(7,14);cin>>book1.id;cin.get();
      file1.write((char*)&book1,sizeof(struct book));
      file1.close();
     }
    }
    //********************************************************
    void library::searchmenu(int*j,char*key)
    {
     char add[3][20]={"Name :","subject :","Code:"};
     int i,flag=0;
     window(21,7,50,15);
     textbackground(1);
     clrscr();
     while(1)
      {
       for(i=0;i<3;i++)
        {
         textbackground(1);
         textcolor(14);
         if(i==*j)
         {
          textbackground(3);
          textcolor(15);
         }
         gotoxy(2,2+(2*i));
         cprintf("%s",add[i]);
        }
        gotoxy(2,2+(2*(*j)));
        *key=getch();
        switch(*key)
        {
         case up:if(*j==0)*j=2;else (*j)--;break;
         case down:if(*j==2)*j=0;else (*j)++;break;
         case tab:if(*j==2)*j=0;else (*j)++;break;
         case enter:break;
         case esc:break;
        }
       if(*key==13||*key==27)break;
      }
     }
    //*************************************************************
    void library::search ()
    {
     char add[3][20]={"Name :","subject :","Code:"},ch,n[20];
     int i,j,cod;
     searchmenu(&j,&ch);
    if(ch!=27)
     {
      switch(j)
      {
       case 0:gotoxy(8,2);cin.get(n,20);cin.get();i=1;break;
       case 1:gotoxy(11,4);cin.get(n,20);cin.get();i=2;break;
       case 2:gotoxy(7,6);cin.get(n,20);cin.get();i=3;break;
      }
     }
    int x=atol(n);
    show(&x,n,&ch);
    }
    //*************************************************************
    void library::show(int *x,char*n,char *ch)
    {
    char item[7][20]={
                      "Name :",
                      "Writer :",
                      "Date publisher :",
                      "Price :",
                      "publisher :",
                      "Subject :",
                      "Code:"
                     };
    if(*ch!=27)
    {
    ifstream file1("C:\\library.dat",ios::out);
    if(!file1) cout<<"\ncan not open file";
    int j=0;
    if((*x)>0) while(file1.read((char*)&book1,sizeof(struct book)))
            if(*x==book1.id)
            {
              j=1;
              booktemp=book1;
              break;
            }
    if(*x==0) while(file1.read((char*)&book1,sizeof(struct book)))
            if(strcmp(book1.name,n)==0||strcmp(book1.subject,n)==0)
            {
              j=1;
              booktemp=book1;
              break;
            }
    file1.close();
    window(10,5,70,20);
    textbackground(6);
    clrscr();
    if(j==0)
     {
      textcolor(1);
      gotoxy(6,7);
      cprintf("!!!  NOT FOUND THIS BOOK IN THE LIBRARY  !!!");
      gotoxy(15,10);
      cprintf("PRESS ANY KEY TO COMTINUE :");
     }
    else
    {
     for(int i=0;i<7;i++)
     {
      textcolor(1);
      gotoxy(2,(i+1)*2);
      cprintf("%s",item[i]);
     }
      gotoxy(8,2);cprintf("%s",book1.name);
      gotoxy(10,4);cprintf("%s",book1.writer);
      gotoxy(18,6);cprintf("%s",book1.date);
      gotoxy(9,8);cout<<book1.price;
      gotoxy(13,10);cprintf("%s",book1.publisher);
      gotoxy(11,12);cprintf("%s",book1.subject);
      gotoxy(7,14);cout<<book1.id;
    }
     getch();
    }
    }
    //**********************************************
    void library::deletmenu(char *key)
    {
     window(20,9,35,11);
     textbackground(1);
     textcolor(14);
     clrscr();
     textcolor(15);
     textbackground(3);
     gotoxy(2,2);cprintf("Book code :");
     gotoxy(2,2);
     *key=getch();
    }
    //********************************
    void library::delet()
    {
    char add[7][20]={
                    "Name :",
                    "Writer :",
                    "Date publisher :",
                    "Price :","publisher :",
                    "Subject :",
                    "Code:"};
     char ch;
     int code,i,f;
     ofstream file2("C:\\temp.dat",ios::in);
     if(!file2) cout<<"\ncan not open file";
     ifstream file1("C:\\library.dat",ios::out);
     if(!file1) cout<<"\ncan not open file";
     deletmenu(&ch);
     if(ch!=27)
     {
       gotoxy(13,2);
       cin>>code;
     }
     while(file1.read((char*)&book1,sizeof(struct book)))
      {
        if(book1.id!=code)
        file2.write((char*)&book1,sizeof(struct book));
        if(book1.id==code)
        {
          window(10,5,70,22);
          textbackground(1);
          textcolor(15);
          clrscr();
          gotoxy(10,2);cprintf("PLEASE ENTER NEW INFORMATION OF BOOK");cin.get();
            gotoxy(2,4);cprintf("%s",add[0]);cin.get(booktemp.name,20);cin.get();
            gotoxy(2,6);cprintf("%s",add[1]);cin.get(booktemp.writer,20);cin.get();
            gotoxy(2,8);cprintf("%s",add[2]);cin.get(booktemp.date,20);cin.get();
            gotoxy(2,10);cprintf("%s",add[3]);cin>>booktemp.price;cin.get();
            gotoxy(2,12);cprintf("%s",add[4]);cin.get(booktemp.publisher,20);cin.get();
            gotoxy(2,14);cprintf("%s",add[5]);cin.get(booktemp.subject,20);cin.get();
            gotoxy(2,16);cprintf("%s",add[6]);cin>>booktemp.id;cin.get();
            file2.write((char*)&booktemp,sizeof(struct book));
        }
      }//end of while
      file1.close();
      file2.close();
      remove("C:\\library.dat");
      rename("C:\\temp.dat","C:\\library.dat");
    }

  7. #17
    pnugirl
    • n/a

    پیش فرض

    یه برنامه هم بذارین که بتونه گراف رو وارد کنه

  8. #18
    karma آواتار ها
    • 381

    عنوان کاربری
    کاربر باشگاه
    تاریخ عضویت
    Sep 2008
    محل تحصیل
    بناب
    راه های ارتباطی

    پیش فرض دریافت و چاپ گراف

    کد:
    #include <iostream>
    #include <conio>
    void print(int[][100],int);
    void p();
    int v,i,j,e[100][100];
    char ch;
    int main()
    {
      p();
      cout<<"\n\nPlease enter the number of V:";
      cin>>v;
      while(1)
      {
        clrscr();
        p();
        cout<<"\n\nWhat do you want to do?\n\n";
        cout<<"1-Insert a new Yal\n2-Delete a Yal\n3-Print Graph\n4-Exit\n\n";
        cout<<"What is Your selection:";
        cin>>ch;
        switch(ch)
        {
          case'1':
            clrscr();
            p();
            cout<<"\n\nplease enter Yal:";
            cin>>i>>j;
            if(i>v||j>v)
            {
              cout<<"\n\nWarning!!! you must enter two number betwen 0-"<<v;
              getch();
            }
            else
              e[i][j]=1;
            break;
          case'2':
            clrscr();
            p();
            print(e,v);
            cout<<"\n\nplease enter your Deleted Yal:";
            cin>>i>>j;
            e[i][j]=0;
            break;
          case'3':
            print(e,v);
            getch();
            break;
          case'4':return 0;
        }
      }
      getch();
      return 0;
    }
    //*********************************************************
    void print(int graph[][100],int v)
    {
      int i,j;
      clrscr();
      p();
      cout<<"\n";
      for(i=0;i<v;i++)
      {
        cout<<i<<"  ";
        for(j=0;j<v;j++)
        {
           cout<<graph[i][j]<<" ";
        }
        cout<<"\n";
      }
      cout<<"\n   ";
      for(i=0;i<v;i++)
        cout<<i<<" ";
      cout<<"\n\nV(G)={";
        for(i=0;i<v;i++)
        {
          cout<<i;
          if(i<v-1)
            cout<<",";
        }
      cout<<"}";
      cout<<"\n\nE(G)={";
      for(i=0;i<v;i++)
      {
        for(j=0;j<v;j++)
        {
           if(graph[i][j]==1)
             cout<<"("<<i<<","<<j<<")";
        }
      }
      cout<<"}";
    }
    //*********************************************************
    void p()
    {
      gotoxy(55,23);
      cout<<"*** Writing By Hossein ***";
      gotoxy(1,1);
    }
    این برنامه ابتدا یک عدد را بعنوان تعداد رئوس از شما میگیره و سپس بسته به انتخاب خودتون می تونید یال به آن اضافه یا از آن حذف کنید.

  9. #19
    sunyboy آواتار ها
    • 33,773
    مدیـریت کــل باشگاه

    عنوان کاربری
    مدیــــریت کـــــل باشگاه
    تاریخ عضویت
    Sep 2008
    محل تحصیل
    علوم - فناوری
    شغل , تخصص
    وب مستر - طراح وب
    رشته تحصیلی
    مهندسی نرم افزار
    راه های ارتباطی

    پیش فرض محاسبه فاكتوريل 1000

    اين برنامه به روش ضرب متني عمل ميكنه كه در سورس طول حاصلضرب 5000 رقم فرض شده كه مي تونيد بيشتر بذاريد




    [php]#include <stdio.h>
    #include <string.h>
    #include <conio.h>
    #include <stdlib.h>
    char s[5000];
    void pp(int n);
    void main()
    {
    clrscr();
    long int i,k,m;
    printf("enter number:\t");
    scanf(" %ld",&m);
    itoa(1, s, 10);
    for(i=1;i<=m;++i){
    pp(i);
    }
    k=strlen(s);
    for(i=k;i>=0;--i)
    printf("%c",s[i]);
    getch();
    }
    ////////////////
    void pp(int n){
    long int r,i,j,k,l;
    r=0;
    for(i=0;s[i]!='\0';++i){
    k=(s[i]-48)*n+r;
    l=k-(k/10)*10;
    s[i]=l+48;
    r=k/10;
    }
    for(j=i;r>0;++j){
    l=r-(r/10)*10;
    s[j]=l+48;
    r=r/10;
    }
    s[j+1]='\0';
    }[/php]





    فروشگاه نمونه سوالات پیام نور با پاسخنامه تستی و تشریحی


    دانلود رایگان نمونه سوالات نیمسال اول 93-92 پیام نور

    دانلود رایگان نمونه سوالات نیمسال دوم 92-91 پیام نور مقطع کارشناسی

    دانلود رایگان مجموعه نمونه سوالات تمامی رشته های پیام نور نیمسال اول 90-91 دانشگاه پیام نور


    دانلود نمونه سوالات آزمون فراگیر کارشناسی ارشد تمامی دوره های دانشگــــاه پیــــام نور




    دانلود مجموعه نمونه سوالات ارشد فراگیر پیام نور




    برای دانلود رایگان نمونه سوالات پیام نور با جوابهای تستی و تشریحی در مقطع نمونه سوالات کارشناسی ارشد پیام نور - نمونه سوالات پیام نور کارشناسی - نمونه سوالات پیام نور دکترا- نمونه سوالات آزمونهای فراگیر پیام نور( دانشپذیری)

    به ادرس زیر مراجعه کنید

    نمونه سوالات رایگان پیام نور


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



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




  10. #20
    sunyboy آواتار ها
    • 33,773
    مدیـریت کــل باشگاه

    عنوان کاربری
    مدیــــریت کـــــل باشگاه
    تاریخ عضویت
    Sep 2008
    محل تحصیل
    علوم - فناوری
    شغل , تخصص
    وب مستر - طراح وب
    رشته تحصیلی
    مهندسی نرم افزار
    راه های ارتباطی

    پیش فرض Screen Saver

    یه نوشته تو صفحه حرکت میکنه در حالی که دائم رنگش عوض میشه... اگه به گوشه های تصویر خورد برمیگره....



    [php] *****************************/
    #include <stdio.h>
    #include <conio.h>
    #include <dos.h>
    #include <stdlib.h>
    void main()
    {
    int random_y1,random_y2,random_x1,random_x2,w_x,w_y,x, y;
    clrscr();
    randomize();

    do /***** Begin Loop *****/
    {
    w_x=wherex()-3;
    w_y=wherey();
    clrscr();
    gotoxy(w_x+x,w_y+y);
    textcolor(1+random(3));
    printf("www.forum.daneshjuha.org");
    /******** if text wherex=0 ********/
    if (wherex()<=7)
    {
    sound(200);
    random_x1=random(2);

    if (random_x1==1)
    {x=1;y=1;}
    if (random_x1==0)
    {x=1;y=-1;}
    }
    /******** if text wherex=80 ********/
    if (wherex()>=78)
    {
    sound(500);
    random_x2=random(2);

    if (random_x2==1)
    {x=-1;y=-1;}
    if (random_x2==0)
    {x=-1;y=-1;}
    }

    /******** if text wherey=0 ********/
    if (wherey()==1)
    {
    sound(800);
    random_y1=random(2);

    if (random_y1==1)
    {y=1;x=-1;}
    if (random_y1==0)
    {y=1;x=1;}
    }
    /******** if text wherey=25 ********/
    if (wherey()==25)
    {
    sound(1200);
    random_y2=random(2);

    if (random_y2==1)
    {y=-1;x=-1;}
    if (random_y2==0)
    {y=-1;x=1;}
    }
    delay(190);
    nosound();
    kbhit();
    }
    while(!kbhit());/***** End Loop *****/
    } __________________
    [/php]





    فروشگاه نمونه سوالات پیام نور با پاسخنامه تستی و تشریحی


    دانلود رایگان نمونه سوالات نیمسال اول 93-92 پیام نور

    دانلود رایگان نمونه سوالات نیمسال دوم 92-91 پیام نور مقطع کارشناسی

    دانلود رایگان مجموعه نمونه سوالات تمامی رشته های پیام نور نیمسال اول 90-91 دانشگاه پیام نور


    دانلود نمونه سوالات آزمون فراگیر کارشناسی ارشد تمامی دوره های دانشگــــاه پیــــام نور




    دانلود مجموعه نمونه سوالات ارشد فراگیر پیام نور




    برای دانلود رایگان نمونه سوالات پیام نور با جوابهای تستی و تشریحی در مقطع نمونه سوالات کارشناسی ارشد پیام نور - نمونه سوالات پیام نور کارشناسی - نمونه سوالات پیام نور دکترا- نمونه سوالات آزمونهای فراگیر پیام نور( دانشپذیری)

    به ادرس زیر مراجعه کنید

    نمونه سوالات رایگان پیام نور


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



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




صفحه 2 از 9 اولیناولین 1234 ... آخرینآخرین

برچسب برای این موضوع

مجوز های ارسال و ویرایش

  • شما نمی توانید موضوع جدید ارسال کنید
  • شما نمی توانید به پست ها پاسخ دهید
  • شما نمی توانید فایل پیوست ضمیمه کنید
  • شما نمی توانید پست های خود را ویرایش کنید
  •