The following resources contain additional information on Data
Structures and Algorithms. Please use them to get more in-depth
knowledge on this topic.
পৃষ্ঠাসমূহ
Labels
Search Your Article
CS
Pageviews
Monday, January 30, 2017
Discuss Data Structures & Algorithms
Data Structures are the programmatic way of storing data so that data
can be used efficiently. Almost every enterprise application uses
various types of data structures in one or the other way. This tutorial
will give you a great understanding on Data Structures needed to
understand the complexity of enterprise level applications and need of
algorithms, and data structures.
D Programming - Overview
D programming language is an object oriented multi-paradigm system
programming language developed by Walter Bright of Digital Mars. It's
development started in 1999 and was first released in 2001. The major
version of D(1.0) was released in 2007. Currently, we have D2 version of
D.
D - Environment
Try it Option Online
You really do not need to set up your own environment to start learning D programming language. Reason is very simple, we already have set up D Programming environment online, so that you can build and execute all the available examples online at the same time when you are doing your theory work.
D - Basic Syntax
D is quite simple to learn and lets start creating our first D program!
First D Program
Let us write a simple D program. All D files will have extension .d. So put the following source code in a test.d file.import std.stdio;
D - Variables
A variable is nothing but a name given to a storage area that our
programs can manipulate. Each variable in D has a specific type, which
determines the size and layout of the variable's memory; the range of
values that can be stored within that memory; and the set of operations
that can be applied to the variable.
D - Data Types
In the D programming language, data types refer to an extensive
system used for declaring variables or functions of different types. The
type of a variable determines how much space it occupies in storage and
how the bit pattern stored is interpreted.
D - Enums
An enumeration is used for defining named constant values. An enumerated type is declared using the enum keyword.
The enum syntax
The simplest form of an enum definition is the following:enum enum_name { enumeration list }Where,
D - Literals
Constant values that are typed in the program as a part of the source code are called literals.
Literals can be of any of the basic data types and can be divided into Integer Numerals, Floating-Point Numerals, Characters, Strings and Boolean Values.
Literals can be of any of the basic data types and can be divided into Integer Numerals, Floating-Point Numerals, Characters, Strings and Boolean Values.
D - Operators
An operator is a symbol that tells the compiler to perform specific
mathematical or logical manipulations. D language is rich in built-in
operators and provides the following types of operators:
D - Loops
There may be a situation, when you need to execute a block of code
several number of times. In general, statements are executed
sequentially: The first statement in a function is executed first,
followed by the second, and so on.
D - Decisions
Decision making structures require that the programmer specify one or
more conditions to be evaluated or tested by the program, along with a
statement or statements to be executed if the condition is determined to
be true, and optionally, other statements to be executed if the
condition is determined to be false.
Subscribe to:
Posts (Atom)