Professional Documents
Culture Documents
CREATED BY :
MATHEMATICS DEPARTEMENT
FACULTY OF MATHEMATICS AND SCIENCES
STATE UNIVERSITY OF MEDAN
2018
CHAPTER I
PRELIMINARY
C ++ is also used for hardware design, where the design was initially depicted in C
++, then analyzed, architecture constrained, and scheduled to create a hardware level transfer
register of high-level language descriptions via synthesis.
Languages start as additions to C, first add classes, then virtual functions, operator
overloading, multiple inheritance, templates, and exception handling among other features.
After years of development, C ++ standard programming languages were ratified in 1998 as
ISO / IEC 14882: 1998. This standard is amended with a technical error corrected in 2003,
ISO / IEC 14882: 2003. The standard when extending C ++ with new features is authorized
and published by ISO in September 2011 as ISO / IEC 14882: 2011 (informally known as C
+ +11).
CHAPTER II
SUMMARY
5. Card resilience.
The size of the smart card card with ID-1 format based on ISO / IEC 7810 is 85.60mm x
54mm and has 0.76mm ± 0.08mm card thickness and 3.18mm angle radius.
G. Understanding Socket
Socket is an abstraction in which an application sends and receives data such as by
opening a file through an application to read and write data. A socket allows an application to
'plug in' to a network and communicate with other applications residing on the same network.
Information written to a socket by an application within a machine can be read by other
applications in different machines and so on. Sockets come in different forms depending on
the protocol used and the different stack on a protocol. The main forms of sockets in TCP / IP
are stream sockets and datagram sockets. Stream sockets inside TCP (under IP) are used as
end-to-end protocols and provide reliability in byte delivery. Datagram sockets use UDP
(under IP) and provide the ability to send individual data up to 65,500
bytes. Streams and datagram sockets are also supported by other protocols.
A socket that uses the TCP / IP protocol can be uniquely identified by an internet address,
end-to-end protocol (TCP or UDP) and port number. When the first socket is created, the
socket already has the associated protocol but not the internet address or port number. Before
a socket is bound by a port number, the socket can not receive messages from applications
outside the network.
H. TCP Client
The task of the TCP Client is to start a communication with a server that passively waits to be
contacted.
Basically TCP Client has 4 basic stages:
1. Create a TCP socket using a socket. 2. Establish a connection to the server using connect.
3. Communicate using send () and recv ().
4. End the connection with close ().
A TCP socket must be connected to another socket before various data can be sent. The client
starts a connection when a server passively waits for a connected client.
I. TCP Server
The task of TCP Server is to set up the final communication and passively wait for a
connection from the client.
Basically TCP Server has 4 basic phases:
1. Create a TCP Socket using a socket.
2. Assign port number to socket with bind.
3. Notify the system to allow any connections made to the port using listen.
4. Repeatedly:
a. Call accept to get new socket
for each client connection.
b. Communicate with clients through the new socket
using send and recv.
c. Close client connections using close.
A server must do a bind to a
address on a socket and then using a socket
as a channel to receive sockets
others connected to the client.
J. QT Framework
Qt framework was first published in May 1995. Developed by Haavard Nord
(Trolltech's CEO) and Eirik Chambe-Eng (Trolltech's Chief Troll). Haavard and Eirik met at
the Norwegian Institute of Technology in Trondheim and they both graduated with a master's
degree in computer science. Haavard had an interest in the development of C ++ UI in 1988
when he was hired by a Swedish company to develop a framework for C ++ GUI. In 1990,
Haavard and Eirik worked together on a C ++ database application for ultrasound images.
The system should be able to run with GUI on Unix, Macintosh, and Windows. In 1991,
Haavard began writing a class that eventually became Qt. In 1993, Haavard and Eirik built
the first kernel graph for Qt and could be implemented with their widgets. The Q letter is
flattened as the class prefix because the letter looks good on
Haavard's Emacs font. The "t" is added from the word toolkit. In 2005, Qt version 4 was
released with 500 classes and more than 9,000 functions. Qt 4 is the first Qt edition available
as open source on all platforms that support it.
CHAPTER III
CLOSING
1. CONCLUSION
C ++ is one programming language that is easy to learn and object-oriented. The C ++
language has an easy-to-understand language structure. In running the program from C ++
language required a compiler that is useful to compile the code that we write into the form of
machine language so that the program can run.
2. SUGESTION
We recommend that in making the program code note the upper and lowercase letters,
because C + + is case sensitive. In addition, we also must pay attention to the compiler used
to run the program so that the program runs according to our wishes without any errors.
Weaknesses and Advantages of journals:
Advantages:
1. This journal uses an easy-to-understand language.
Weakness:
1. For beginners this journal has a program that is difficult to understand.