Posts Tagged Cod sursa

How to: Define a Class in VB.NET

Class is an abstract representation of an entity. The object is a concrete manifestation of a class. The object is the structure that contains data and methods of handling data. An object contains data through fields and properties:
Read the rest of this entry »

, , , , , ,

1 Comment

How to: Evaluate a Mathematical Expression in Postfix Writing in C++

Postfix writing [...] is a form of representation of mathematical expressions in which arithmetic operatorsare written specified by operands.
Advantages of postfix writing over prefix and infix writing:

  • Highlights clear policy of making operations;
  • Brackets for forcing priority for implementing operators are not necessary;
  • Evaluations are easily performed by computer.

Read the rest of this entry »

, , , ,

1 Comment

How to: Create a DLL – Dynamic Link Library in C++ as Visual Studio 2008 Project

Using DLL ensure productivity and/or financial gain in the software development process by reusing the source code written C++. Routines and/or programming components included in a DLL are referenced in the application without the need of their re-implementation in these applications.
Read the rest of this entry »

, , , , , , , , ,

1 Comment

How to: Optimize the Memory Space by Heap Memory Allocation in C++

Memory allocation at the applications run-time enables the use of a storage space, expressed in number of bytes, having the size of heap memory required for data storing defined by the variables. Compile-time allocation allows the reservation and use of storage space with predefined size expressed in number of bytes. In this situation, software developers must anticipate the maximum size of memory space that can be used in the application.
Read the rest of this entry »

, , , , , , , , ,

No Comments

Evaluarea unei expresii matematice in scrierea postfixata in C++

Scrierea postfixata (forma poloneza inversa) [...] este o forma de reprezentare a unei expresii matematice aritmetice in care operatorii sunt scrisi, specificati dupa operanzi.
Avantaje ale scrierii postfixate fata de scrierile prefixata si infixata:

  • Evidentierea clara a ordinii de efectuare a operatiilor;
  • Parantezele pentru fortarea prioritatii de aplicare a operatorilor nu mai sunt necesare;
  • Evaluarile sunt usor de efectuat cu ajutorul calculatorului.

Read the rest of this entry »

, , , ,

1 Comment

How to: Define and Use the Pointers Variables in C++

The pointer type variables allow the accessing of memory areas with numerical content for the management of the values which represent memory addresses. The dimension of a pointer variable depends on the processor architecture.
In the C++ programming language, the definition template of a pointer variable is:
Read the rest of this entry »

, , , , ,

2 Comments

How to: Use a DLL – Dynamic Link Library in C++ as Visual Studio 2008 Project

The usage of the programming elements included in DLL’s [...] it is made in C++ applications by respecting the rules stated below.
The usage of a DLL in the C++ programming language in the Visual Studio programming environment, it is made in the following way:

  • Create a C++ project – type: Console application;
  • Define the content for the source file which uses elements included in the DLL;
  • Create the executable file.

Read the rest of this entry »

, , , ,

1 Comment

Utilizarea unei biblioteci DLL – Dynamic Link Library in C++ sub Visual Studio 2008

Utilizarea elementelor de programare incluse in biblioteci DLL [...] se realizeaza in aplicatii C++ cu respectarea anumitor reguli precizate mai jos.
Pentru a utiliza o biblioteca DLL in limbajul de programare C++ sub mediul de programare Visual Studio, se procedeaza astfel:

  • Crearea unui proiect C++ de tip Console application;
  • Definirea continutului pentru fisierul sursa care utilizeaza elemente incluse in biblioteca DLL;
  • Crearea fisierului executabil.

Read the rest of this entry »

, , , , , , , , ,

1 Comment

Crearea unei biblioteci DLL – Dynamic Link Library in C++ sub Visual Studio 2008

Utilizarea bibliotecilor DLL asigura productivitate si/sau castig financiar in procesul de dezvoltare software prin reutilizarea de cod sursa C++. Rutinele si/sau componentele de programare incluse intr-o biblioteca DLL sunt doar referite in aplicatii fara a mai fi nevoie reimplementarea lor in aceste aplicatii.

Read the rest of this entry »

, , , , , , , , ,

1 Comment

Gradul de optimizare a spatiului de memorie prin alocarea dinamica a memoriei in C++

Alocarea de memorie la momentul executiei unei aplicatii permite utilizarea unui spatiu de memorie, exprimat in numar de bytes, cu exact dimensiunea de memorie heap necesara pentru stocarea datelor definite prin intermediul variabilelor. Alocarea la momentul compilarii permite rezervarea si utilizarea unui spatiu de memorie cu dimensiune predefinita, exprimata in numar de bytes. In aceasta situatie, dezvoltatorul software trebuie sa anticipeze spatiul de memorie de dimensiune maxima care poate fi utilizat in cadrul aplicatiei.
Read the rest of this entry »

, , , , , , , , ,

No Comments