Programare Orientata pe Obiecte

Imagine preview
(9/10 din 1 vot)

Acest curs prezinta Programare Orientata pe Obiecte.
Mai jos poate fi vizualizat un extras din document (aprox. 2 pagini).

Arhiva contine 200 fisiere doc, pdf, ppt, bmp, htm, cpp, h, exe, txt, rar, ncb, ilk, res, aps, rc, ico de 326 de pagini (in total).

Profesor: Ciprian Lupu

Iti recomandam sa te uiti bine pe extras si pe imaginile oferite iar daca este ceea ce-ti trebuie pentru documentarea ta, il poti descarca.

Fratele cel mare te iubeste, acest download este gratuit. Yupyy!

Domeniu: Automatica

Extras din document

Introducere

C1: Deosebiri intre C si C++

• *.c => *.cpp

• #define _cplusplus

d.p.d.v. al fisierelor

d.p.d.v. al

compilatorului

Exista medii de dezvoltare (Borland C)

care au un compilator unic pentru

programele scrise in C si C++ (care

trebuie informate)!

3

C1: Deosebiri intre C si C++

1. Comentarii

in C :

/* citire data */

getdate(&data);

sunet();

printf("n Azi suntem in:

%d.%d.%dnn",data.zi,data.luna,data.an);

/* deschidere fisier

fhandler=fopen("C:DATEREMEMBER.DAT","a");

fclose(fhandler);*/

in C++ :

int stare_Panel = 0;

// butoane (8): Scenariu, Salvare, Configurare, Declansare, Analiza,

// Adnotari, Ajutor, Iesire

// stari (4): Initiala, Declansare, Analiza, Simulare

int StariButoane[4][8] =

{{0,1,1,0,0,0,0,0},{1,1,0,1,0,0,0,0},{0,1,0,1,1,0,0,0},{1,1,1,1,1,1,1,1}};

// int StariButoane[2][3] = {{1,2,3},{4,5,6}};

// = {{0,1,1,0,0,0,0,0},{1,1,0,1,0,0,0,0},{1,1,0,1,0,0,0,0}};

int g_NotepadExeHandle;

Daca linia este prea lunga si se trece automat pe

linia urmatoare si comentariu “nu mai are efect”!

4

C1: Deosebiri intre C si C++

2. Pozitia declaratiilor in program

in C :

la inceput

in C++ :

oriunde in program

5

C1: Deosebiri intre C si C++

in C :

main()

{

char c,x;

int notifyCount = 42; /* Wait for at least 50 bytes in queue */

int eventChar = 13; /* Wait for LF */

int eventMask = LWRS_RXFLAG;

int comPort = 5;

handle = LoadPanel (0, "Reg_Test_62_RS232.uir", BI);

DisplayPanel (handle);

SetCtrlAttribute(handle,BI_indic_com_man,ATTR_DIMMED,1);

// Deschidere port serial

OpenComConfig (5, "COM5", 9600, 0, 8, 1, 512, 512);

SetComTime (5, 0.50);

// initializare comcallback

InstallComCallback (comPort, eventMask, notifyCount, eventChar,

MessageReceived, NULL);

SetIdleEventRate (50);

InstallMainCallback (GetData,(void *)&x , 1);

RunUserInterface();

}

Fisiere in arhiva (200):

  • Programare Orientata pe Obiecte
    • C1.pdf
    • C10.pdf
    • C11.pdf
    • C12.pdf
    • C2.ppt
    • C4.pdf
    • C5.pdf
    • C6.pdf
    • C7.pdf
    • C8.pdf
    • C9.pdf
    • Laboratoare
      • l1.rar
      • l3.rar
      • Laboratoare
        • Cpp2.cpp
        • Cpp2.dsp
        • Cpp2.dsw
        • Cpp2.ncb
        • Cpp2.opt
        • Cpp2.plg
        • Debug
          • Cpp2.pch
          • vc60.idb
          • vc60.pdb
        • LAB10
          • APP1~1.HTM
          • APP1~1.JAV
          • APP2~1.HTM
          • APP2~1.JAV
          • APP3~1.HTM
          • APP3~1.JAV
          • LAB10.DOC
          • LAB10.TXT
        • LAB1_
          • LAB1.ASC
          • LAB1.DOC
        • LAB2_
          • Debug
            • stack.obj
            • TSTACK.exe
            • TSTACK.ilk
            • TSTACK.obj
            • TSTACK.pch
            • TSTACK.pdb
            • vc60.idb
            • vc60.pdb
          • LAB2.ASC
          • LAB2.DOC
          • STACK.CPP
          • STACK.H
          • Text2.txt
          • TSTACK.CPP
          • TSTACK.DSP
          • TSTACK.DSW
          • TSTACK.ncb
          • TSTACK.OPT
          • TSTACK.PLG
        • LAB3_
          • LAB3.ASC
          • LAB3.DOC
          • STACK.CPP
          • STACK.H
          • STACK_H.DOC
          • STACK_~1.DOC
          • TSTACK.CPP
          • TSTACK~1.DOC
        • LAB4_
          • Debug
            • IO1.exe
            • IO1.ilk
            • IO1.obj
            • IO1.pch
            • IO1.pdb
            • vc60.idb
            • vc60.pdb
          • IO1.CPP
          • IO1.DSP
          • IO1.DSW
          • IO1.ncb
          • IO1.OPT
          • IO1.PLG
          • IO2.CPP
          • IO3.CPP
          • LAB4.ASC
          • LAB4.DOC
        • LAB5_
          • LAB5.ASC
          • LAB5.BMP
          • LAB5.DOC
        • LAB6
          • graphic
            • Cpp1.cpp
            • Cpp1.dsp
            • Cpp1.dsw
            • Cpp1.ncb
            • Cpp1.opt
            • Cpp1.plg
            • Debug
              • Cpp1.exe
              • Cpp1.ilk
              • Cpp1.obj
              • Cpp1.pch
              • Cpp1.pdb
              • figures.obj
              • graphic.exe
              • graphic.ilk
              • graphic.obj
              • graphic.pch
              • graphic.pdb
              • graphic.res
              • StdAfx.obj
              • vc60.idb
              • vc60.pdb
            • figures.cpp
            • figures.h
            • graphic.aps
            • graphic.cpp
            • graphic.dsp
            • graphic.dsw
            • graphic.h
            • graphic.ICO
            • graphic.ncb
            • graphic.opt
            • graphic.plg
            • graphic.rc
            • ReadMe.txt
            • resource.h
            • small.ico
            • StdAfx.cpp
            • StdAfx.h
          • LAB6.ASC
          • LAB6.DOC
          • mostenire
            • clase.cpp
            • clase.dsp
            • clase.dsw
            • clase.h
            • clase.ncb
            • clase.opt
            • clase.plg
            • Debug
              • clase.obj
              • clase.pch
              • clase.pdb
              • main.obj
              • mostenire.exe
              • mostenire.ilk
              • mostenire.pch
              • mostenire.pdb
              • vc60.idb
              • vc60.pdb
            • main.cpp
            • mostenire.dsp
            • mostenire.dsw
            • mostenire.ncb
            • mostenire.opt
            • mostenire.plg
            • resource.h
            • Script1.rc
            • Script2.rc
          • polimorfism
            • clase.h
            • Debug
              • main.obj
              • polimorfism.exe
              • polimorfism.ilk
              • polimorfism.pch
              • polimorfism.pdb
              • vc60.idb
              • vc60.pdb
            • main.cpp
            • polimorfism.dsp
            • polimorfism.dsw
            • polimorfism.ncb
            • polimorfism.opt
            • polimorfism.plg
        • LAB7
          • LAB7.ASC
          • LAB7.DOC
          • RATIONAL.CPP
          • RATIONAL.DOC
          • RATIONAL.H
          • RATION~1.DOC
          • RATMAIN.CPP
          • RATMAIN.DOC
        • LAB8_
          • Debug
            • MATRICE.pch
            • mymatrix.obj
            • mymatrix.pch
            • mymatrix.pdb
            • tmatrix.obj
            • vc60.idb
            • vc60.pdb
          • LAB8.DOC
          • MATRICE.CPP
          • MATRICE.DSP
          • MATRICE.DSW
          • MATRICE.H
          • MATRICE.ncb
          • MATRICE.OPT
          • MATRICE.PLG
          • mymatrix.cpp
          • mymatrix.dsp
          • mymatrix.dsw
          • mymatrix.ncb
          • mymatrix.opt
          • mymatrix.plg
          • TMATRICE.CPP
          • tmatrix.cpp
        • LAB9
          • HEXASC~1.JAV
          • LAB9.DOC
          • LAB9.TXT
          • MYCLAS~1.JAV
        • Laborator suplimentar.txt
        • New Folder
          • Cpp2.cpp
          • header.h
        • proiec.cpp
      • Laboratoare.rar
    • poo3.pdf

Alte informatii

toate cursurile si lab-urile in parte rezolvate