পৃষ্ঠাসমূহ
Labels
Search Your Article
CS
Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.
At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.
What We Offer:
-
📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.
-
💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.
-
🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.
-
🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.
✔ Latest world News
Our Vision
To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.
Why Choose Us?
✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing
We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.
📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.
Pageviews
Saturday, January 28, 2017
C Language - Overview
C - Environment Setup
Try it Option Online
We have set up the C Programming environment on-line, so that you can compile and execute all the available examples on line. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to modify any example and execute it on-line.
C - Basic Syntax
C - Data Types
C - Variables
C - Constants & Literals
Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal. There are enumeration constants as well.
Constants are treated just like regular variables except that their values cannot be modified after their definition.
C - Storage Classes
C - Operators
C - Decision Making
C - Loops
C - Functions
You can divide up your code into separate functions. How you divide up your code among different functions is up to you, but logically the division is such that each function performs a specific task.
C - Scope Rules
C - Arrays
C - Pointers
C - Strings
The following declaration and initialization create a string consisting of the word "Hello". To hold the null character at the end of the array, the size of the character array containing the string is one more than the number of characters in the word "Hello."
C - Structures
C - Unions
C - Bit Fields
struct { unsigned int widthValidated; unsigned int heightValidated; } status;
C - typedef
typedef unsigned char BYTE;
C - Input & Output
C - File I/O
A file represents a sequence of bytes, regardless of it being a text file or a binary file.
C - Preprocessors
C - Header Files
C - Type Casting
(type_name) expression
C - Error Handling
C - Recursion
void recursion() { recursion(); /* function calls itself */
C - Variable Arguments
C - Memory Management
C - Command Line Arguments
C Programming Questions and Answers
C - Quick Guide
C - Language Overview
C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC PDP-11 computer in 1972.C - Useful Resources
Discuss C
C++ Library -
Introduction
This data type represents the file stream generally, and has the capabilities of both ofstream and ifstream which means it can create files, write information to files, and read information from files.
C++ Library -
Introduction
iomanip is a library that is used to manipulate the output of C++ program. Using C++, header providing parametric manipulators as shown below −
C++ Library -
Introduction
The C++ standard libraries provide an extensive set of input/output capabilities which we will see in subsequent chapters. This chapter will discuss very basic and most common I/O operations required for C++ programming.Input-Output base classes and types for the IOStream hierarchy of classes as shown below −
C++ Library -
Description
It is used to input-Output forward declarations,this header provides forward declarations for the types of the standard input/output library.
C++ Library -
Description
It is used in standard Input / Output Streams Library.Declaration
Following is the declaration for iosstream function.
C++ Library -
Description
The Istream used for header providing the standard input and combined input/output stream classes.Class templates
C++ Library -
Introduction
It is an output stream objects can write sequences of characters and represent other kinds of data. Specific members are provided to perform these output operations.
C++ Library -
Introduction
It is a string stream for header.Class Templates
Following are the Class Templates for sstram.| S.N. | Class Templates | Definition |
|---|---|---|
| 1 | basic_istringstream | It is an input string stream |
| 2 | basic_ostringstream | It is an output string stream |
| 3 | basic_stringstream | It is a basic string steam |
| 4 | basic_stringbuf | It is a string stream buffer |
C++ Library -
Introduction
It is a stream buffer and it is to be used in combination with input/output streams.Class templates
| S.N. | Class | Definition |
|---|---|---|
| 1 | basic_streambuf | It is a basic stream buffer |
| 2 | wstreambuf | It is used in base buffer class in stream |
C++ Library -
Introduction
These are types that encapsulate a value whose access is guaranteed to not cause data races and can be used to synchronize memory accesses among different threads and he atomic library provides components for fine-grained atomic operations allowing for lockless concurrent programming. Each atomic operation is indivisible with regards to any other atomic operation that involves the same object.
C++ Library -
Introduction
It implements the complex class to contain complex numbers in cartesian form and several functions and overloads to operate with them.
C++ Library -
Introduction
It is a standard exception class. All objects thrown by components of the standard library are derived from this class. Therefore, all standard exceptions can be caught by catching this type by reference.
C++ Library -
Introduction
Function objects are objects specifically designed to be used with a syntax similar to that of functions. Instances of std::function can store, copy, and invoke any Callable target -- functions, lambda expressions, bind expressions, or other function objects, as well as pointers to member functions and pointers to data members.
C++ Library -
Introduction
It is a Numeric limits type and it provides information about the properties of arithmetic types (either integral or floating-point) in the specific platform for which the library compiles.
C++ Library -
Introduction
It is a localization library and a set of features that are culture-specific, which can be used by programs to be more portable internationally.
C++ Library -
Introduction
It defines general utilities to manage dynamic memory in header.Allocators
| S.N. | Allocator & description |
|---|---|
| 1 | allocator
It is a default allocator. |
C++ Library -
Introduction
It is a header describes functions used to manage dynamic storage in C++.The header also defines some specific types and the set_new_handler / get_new_handler pair of functions as shown below −
C++ Library -
Introduction
It is used to generalized numeric operations and this header describes a set of algorithms to perform certain operations on sequences of numeric values. In C++, It includes common mathematical functions and types, as well as optimized numeric arrays and support for random number generation.
C++ Library -
Introduction
It is a standardized way to express patterns to be matched against sequences of characters. some of typical regex parameters are as shown below −
C++ Library -
Introduction
It is an exception classes and this header defines a set of standard exceptions that both the library and programs can use to report common errors.
C++ Library -
Introduction
String is a class and all objects that in string represent sequences of characters.Declaration
Following is the declaration for std::string.typedef basic_string<char> string;
C++ Library -
Introduction
Thread is a sequence of instructions that can be executed concurrently with other such sequences in multithreading environments, while sharing a same address spac.
C++ Library -
Introduction
These are objects that pack elements of -possibly- different types together in a single object, just like pair objects do for pairs of elements, but generalized for any number of elements. It is closely related to the pair class (defined in header ): Tuples can be constructed from pairs, and pairs can be treated as tuples for certain purposes.
C++ Library -
Introduction
It defines in header and related to operators typeid and dynamic_cast.Declaration
Following is the declaration for std::type_info.class type_info;
C++ Library -
Introduction
It contains utilities in unrelated domains.- Pairs − these objects can hold two values of different types: pair, make_pair, piecewise_construct, piecewise_construct_t.
C++ Library -
Introduction
It is a library for arrays of numeric values and this header declares the valarray class and its auxiliary classes and functions.
C++ Library -
Introduction
Arrays are sequence container of fixed size. Container is a objects that holds data of same type. Sequence containers store elements strictly in linear sequence.
C++ Library -
Introduction
Bitset represents a fixed-size sequence of N bits and stores values either 0 or 1. Zero means value is false or bit is unset and one means value is true or bit is set. Bitset class emulates space efficient array of boolean values, where each element occupies only one bit.
C++ Library -
Introduction
Deque is acronym for Double Ended Queue. It is a sequence container that can change it's size runtime. Container is an object that holds data of same type. Sequence containers store elements strictly in linear sequence.
C++ Library -
Introduction
forward_list is a popularly used sequence container. Container is an object that holds data of same type. forward_list container is implemented as singly linked-list, hence it provides unidirectional sequential access to it's data.
C++ Library -
Introduction
List is a popularly used sequence container. Container is an object that holds data of same type. List container is implemented as doubly linked-list, hence it provides bidirectional sequential access to it's data.List doesn't provide fast random access, it only supports sequential access in both directions. List allows insertion and deletion operation anywhere within a sequence in constant time.
C++ Library -
Introduction to queue
Queue is a data structure designed to operate in FIFO (First in First out) context. In queue elements are inserted from rear end and get removed from front end.Queue class is container adapter. Container is an objects that hold data of same type. Queue can be created from different sequence containers.
C++ Library -
Introduction
A set is an Associative container which contains a sorted set of unique objects of type Key. Each element may occur only once, so duplicates are not allowed.There are four kind of Associative containers: set, multiset, map and multimap.
C++ Library -
Introduction
Stack is a data structure designed to operate in LIFO (Last in First out) context. In stack elements are inserted as well as get removed from only one end.Stack class is container adapter. Container is an objects that hold data of same type. Stack can be created from different sequence containers.
C++ Library -
Introduction to unordered_map
Unordered map is dictionary like data structure. It is a sequence of (key, value) pair, where only single value is associated with each unique key. It is often referred as associative array. It enables fast retrieval of individual elements based on their keys.
C++ Library -
Introduction
It is an associative container that store unique elements in no particular order, and which allow for fast retrieval of individual elements based on their value.
C++ Library -
Introduction to algorithm
The algorithm library provides several functions that can be used for a variety of purposes, for instance searching, sorting, counting, manipulating and so on. These functions operate on ranges of elements and the range is defined as [first, last).C++ - Overview
C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features.
C++ Environment Setup
Try it Option Online
You really do not need to set up your own environment to start learning C++ programming language. Reason is very simple, we already have set up C++ Programming environment online, so that you can compile and execute all the available examples online at the same time when you are doing your theory work.
C++ Basic Syntax
Comments in C++
C++ supports single-line and multi-line comments. All characters available inside any comment are ignored by C++ compiler.
C++ Data Types
Variable Scope in C++
- Inside a function or a block which is called local variables,
- In the definition of function parameters which is called formal parameters.
- Outside of all functions which is called global variables.
C++ Constants/Literals
Constants can be of any of the basic data types and can be divided into Integer Numerals, Floating-Point Numerals, Characters, Strings and Boolean Values.
C++ Modifier Types
The data type modifiers are listed here:
Storage Classes in C++
Operators in C++
C++ Loop Types
C++ decision making statements
C++ Functions
You can divide up your code into separate functions. How you divide up your code among different functions is up to you, but logically the division usually is so each function performs a specific task.
Numbers in C++
C++ Arrays
C++ Strings
- The C-style character string.
- The string class type introduced with Standard C++.
C++ Pointers
As you know every variable is a memory location and every memory location has its address defined which can be accessed using ampersand (&) operator which denotes an address in memory.
C++ References
C++ Date and Time
C++ Basic Input/Output
C++ Data Structures
Structures are used to represent a record, suppose you want to keep track of your books in a library. You might want to track the following attributes about each book:
C++ Classes and Objects
C++ Inheritance
C++ Overloading (Operator and Function)
Polymorphism in C++
C++ polymorphism means that a call to a member function will cause a different function to be executed depending on the type of object that invokes the function.
Data Abstraction in C++
Data abstraction is a programming (and design) technique that relies on the separation of interface and implementation.
Data Encapsulation in C++
- Program statements (code): This is the part of a program that performs actions and they are called functions.
- Program data: The data is the information of the program which affected by the program functions.
Interfaces in C++ (Abstract Classes)
The C++ interfaces are implemented using abstract classes and these abstract classes should not be confused with data abstraction which is a concept of keeping implementation details separate from associated data.
Friday, January 27, 2017
C++ Files and Streams
This tutorial will teach you how to read and write from a file. This requires another standard C++ library called fstream, which defines three new data types:
C++ Exception Handling
Exceptions provide a way to transfer control from one part of a program to another. C++ exception handling is built upon three keywords: try, catch, and throw.
C++ Dynamic Memory
- The stack: All variables declared inside the function will take up memory from the stack.
- The heap: This is unused memory of the program and can be used to allocate the memory dynamically when program runs.
Namespaces in C++
C++ Templates
A template is a blueprint or formula for creating a generic class or a function. The library containers like iterators and algorithms are examples of generic programming and have been developed using template concept.
C++ Preprocessor
All preprocessor directives begin with #, and only white-space characters may appear before a preprocessor directive on a line. Preprocessor directives are not C++ statements, so they do not end in a semicolon (;).
C++ Signal Handling
C++ Multithreading
C++ Web Programming
What is CGI?
- The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between the web server and a custom script.
- The CGI specs are currently maintained by the NCSA and NCSA defines CGI is as follows:
- The Common Gateway Interface, or CGI, is a standard for external
gateway programs to interface with information servers such as HTTP
servers.
- The current version is CGI/1.1 and CGI/1.2 is under progress.
C++ Questions and Answers
C++ Quick Guide
C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features.
C++ Object Oriented
The core of the pure object-oriented programming is to create an object, in code, that has certain properties and methods.
C++ STL Tutorial
C++ Standard Library
- The Standard Function Library: This library consists of general-purpose,stand-alone functions that are not part of any class. The function library is inherited from C.
- The Object Oriented Class Library: This is a collection of classes and associated functions.
C++ Useful Resources
Discuss C++
Computer Programming - Overview
Introduction to Computer Program
Before getting into computer programming, let us first understand computer programs and what they do.Computer Programming - Basics
Computer Programming - Environment
When we say Environment Setup, it simply implies a base on top of which we can do our programming. Thus, we need to have the required software setup, i.e., installation on our PC which will be used to write computer programs, compile, and execute them.
Computer Programming - Basic Syntax
Computer Programming - Data Types
Computer Programming - Variables
For example, assume you want to store two values 10 and 20 in your program and at a later stage, you want to use these two values. Let's see how you will do it. Here are the following three simple steps −
Computer Programming - Keywords
Computer Programming - Operators
Computer Programming - Decision
Computer Programming - Loops
#include <stdio.h> main() {
Computer Programming - Numbers
Computer Programming - Characters
Computer Programming - Arrays
#include <stdio.h>
Computer Programming - Strings
Computer Programming - Functions
Computer Programming - File I/O
Computer Files
A computer file is used to store data in digital format like plain text, image data, or any other content. Computer files can be organized inside different directories. Files are used to keep digital data, whereas directories are used to keep files.Computer Programming - Summary
Computer Programming - Quick Guide
Computer Programming - Overview
Introduction to Computer Program
Before getting into computer programming, let us first understand computer programs and what they do.Computer Programming - Useful Resources
Discuss Computer Programming
COBOL - Overview
COBOL - Environment Setup
Try it Option Online
We have set up the COBOL Programming environment online, so that you can compile and execute all the available examples online. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to modify any example and execute it online.
COBOL - Program Structure
A brief introduction of these divisions is given below:COBOL - Basic Syntax
Character Set
'Characters' are lowest in the hierarchy and they cannot be divided further. The COBOL Character Set includes 78 characters which are shown below:COBOL - Data Types
- Data Name
- Level Number
- Picture Clause
- Value Clause
COBOL - Basic Verbs
COBOL - Data Layout
- Redefines Clause
- Renames Clause
- Usage Clause
- Copybooks
COBOL - Condition Statements
COBOL - Loop Statements
- Perform Thru
- Perform Until
- Perform Times
- Perform Varying
COBOL - String Handling
- Inspect
- String
- Unstring
COBOL - Table Processing
COBOL - File Handling
COBOL - File Organization
COBOL - File Access Mode
- Sequential Access
- Random Access
- Dynamic Access
COBOL - File Handling Verbs
- Open
- Read
- Write
- Rewrite
- Delete
- Start
- Close
COBOL - Subroutines
COBOL - Internal Sort
COBOL - Database Interface
- Embedded SQL
- DB2 Application Programming
- Host Variables
- SQLCA
- SQL Queries
- Cursors
COBOL Interview Questions
COBOL Questions and Answers
COBOL - Quick Guide
COBOL - Overview
Introduction to COBOL
COBOL is a high-level language. One must understand the way COBOL works. Computers only understand machine code, a binary stream of 0s and 1s. COBOL code must be converted into machine code using a compiler. Run the program source through a compiler.COBOL - Useful Resources
Discuss COBOL
Clojure - Overview
Before we talk about Clojure, let’s just have a quick description of LISP programming language.
Clojure - Environment
Try it Option Online
We have set up the Clojure Programming environment on-line, so that you can compile and execute all the available examples on line. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to modify any example and execute it on-line.
Clojure - Basic Syntax
Hello World as a Complete Program
Write ‘Hello world’ in a complete Clojure program. Following is an example.Clojure - REPL
Clojure - Data Types
Built-in Data Types
Following is a list of data types which are defined in Clojure.- Integers − Following are the representation of Integers available in Clojure.
- Decimal Integers (Short, Long and Int) − These are used to represent whole numbers. For example, 1234.
- Decimal Integers (Short, Long and Int) − These are used to represent whole numbers. For example, 1234.
Clojure - Variables
Clojure - Operators
Clojure has the following types of operators −
- Arithmetic operators
- Relational operators
- Logical operators
- Bitwise operators
Clojure - Loops
Clojure - Decision Making
Clojure - Functions
Clojure - Numbers
Clojure supports integer and floating point numbers.
- An integer is a value that does not include a fraction.
- A floating-point number is a decimal value that includes a decimal fraction.
Clojure - Recursion
Clojure - File I/O
- Reading files
- Writing to files
- Seeing whether a file is a file or directory
Clojure - Strings
Clojure - Lists
Clojure - Sets
Example
Following is an example of the creation of sets in Clojure.(ns clojure.examples.example (:gen-class))
Clojure - Vectors
Clojure - Maps
Clojure - Namespaces
(:require [clojure.set :as set])
Clojure - Exception Handling
Clojure - Sequences
(ns clojure.examples.example (:gen-class))
Clojure - Regular Expressions
Following is an example of a regular expression.
Clojure - Predicates
Clojure - Destructuring
Let’s look at an example of what exactly Destructuring means and how does it happen.
Clojure - Date and Time
Following are the methods available for the date-time class.
Clojure - Atoms
Clojure - Metadata
Clojure - StructMaps
The following operations are possible in Clojure with regards to StructMaps.
Clojure - Agents
Clojure - Watchers
Clojure - Macros
Clojure - Reference Values
Following are the operations available for reference values.
Clojure - Databases
You will find a zip file which has the necessary drivers for Clojure to have the ability to connect to databases. Once the zip file is extracted, ensure to add the unzipped location to your classpath.
Clojure - Java Interface
Clojure - Concurrent Programming
Clojure - Applications
Clojure - Automated Testing
Testing for Client Applications
In order to use testing for Clojure framework, you have to use the dependencies located at https://github.com/slagyr/speclj#manual-installationClojure - Libraries
Clojure - Quick Guide
Clojure - Overview
Clojure is a high level, dynamic functional programming language. Clojure is designed based on the LISP programming language and has compilers which makes it run on both Java and .Net runtime environment.Clojure - Useful Resources
Discuss Clojure
Thursday, January 26, 2017
C Library -
C Library -
All the functions accepts int as a parameter, whose value must be EOF or representable as an unsigned char.
All the functions return non-zero (true) if the argument c satisfies the condition described, and zero(false) if not.
C Library -
C Library -
C Library -
These limits specify that a variable cannot store any value beyond these limits, for example an unsigned character can store up to a maximum value of 255.
C Library -
C Library -
C Library -
C Library -
C Library -
A function of variable arguments is defined with the ellipsis (,...) at the end of the parameter list.
C Library -
C Library -
C Library -
C Library -
C Library -
Discuss C Standard Library
C Tutorial
Audience
This tutorial is designed for software programmers with a need to understand the C programming language starting from scratch. This tutorial will give you enough understanding on C programming language from where you can take yourself to higher level of expertise.C - Useful Resources
AWK - Overview
AWK - Environment
Installation Using Package Manager
AWK - Workflow
AWK - Basic Syntax
AWK - Basic Examples
1) Amit Physics 80 2) Rahul Maths 90 3) Shyam Biology 87 4) Kedar English 85 5) Hari History 89
AWK - Built-in Variables
Standard AWK variables
The standard AWK variables are discussed below.AWK - Operators
AWK - Regular Expressions
This chapter covers standard regular expressions with suitable examples.
AWK - Arrays
Its syntax is as follows −
AWK - Control Flow
AWK - Loops
AWK - Built-in Functions
AWK - User Defined Functions
Given below is the general format of a user-defined function −
AWK - Output Redirection
AWK - Pretty Printing
AWK - Quick Guide
AWK - Overview
AWK is an interpreted programming language. It is very powerful and specially designed for text processing. Its name is derived from the family names of its authors − Alfred Aho, Peter Weinberger, and Brian Kernighan.AWK - Useful Resources
Discuss AWK
Assembly - Introduction
What is Assembly Language?
Each personal computer has a microprocessor that manages the computer's arithmetical, logical, and control activities.Each family of processors has its own set of instructions for handling various operations such as getting input from keyboard, displaying information on screen and performing various other jobs.
Assembly - Environment Setup
Try it Option Online
We already have set up NASM assembler to experiment with Assembly programming online, so that you can execute all the available examples online at the same time when you are doing your theory work.
Assembly - Basic Syntax
- The data section,
- The bss section, and
- The text section.
Assembly - Memory Segments
Interestingly, if you replace the section keyword with segment, you will get the same result. Try the following code −
Assembly - Registers
Assembly - System Calls
Assembly - Addressing Modes
Assembly - Variables
Assembly - Constants
Assembly - Arithmetic Instructions
The INC Instruction
The INC instruction is used for incrementing an operand by one. It works on a single operand that can be either in a register or in memory.Assembly - Logical Instructions
The format for these instructions −
Assembly - Conditions
Assembly - Loops
MOV CL, 10 L1: <LOOP-BODY>
Assembly - Numbers
Assembly - Strings
- Explicitly storing string length
- Using a sentinel character
Assembly - Arrays
Assembly - Procedures
Assembly - Recursion
Assembly - Macros
- A macro is a sequence of instructions, assigned by a name and could be used anywhere in the program.
- In NASM, macros are defined with %macro and %endmacro directives.
- The macro begins with the %macro directive and ends with the %endmacro directive.
Assembly - File Management
- Standard input (stdin),
- Standard output (stdout), and
- Standard error (stderr).
Assembly - Memory Management
Assembly - Quick Guide
Assembly - Introduction
What is Assembly Language?
Each personal computer has a microprocessor that manages the computer's arithmetical, logical, and control activities.Assembly - Useful Resources
Discuss Assembly Programming
Arduino - Overview
The key features are −
Arduino - Board Description
Arduino - Installation
In this section, we will learn in easy steps, how to set up the Arduino IDE on our computer and prepare the board to receive the program via USB cable.
Arduino - Program Structure
Sketch − The first new terminology is the Arduino program called “sketch”.
Arduino - Data Types
Arduino - Variables & Constants
Arduino - Operators
Arduino - Control Statements
Arduino - Loops
A loop statement allows us to execute a statement or group of statements multiple times and following is the general form of a loop statement in most of the programming languages −
Arduino - Functions
Standardizing code fragments into functions has several advantages −
Arduino - Strings
There are two types of strings in Arduino programming −
Arduino - String Object
What is an Object?
An object is a construct that contains both data and functions. A String object can be created just like a variable and assigned a value or string. The String object contains functions (which are calledArduino - Arrays
Arduino - I/O Functions
Arduino - Advanced I/O Function
analogReference() Function
Configures the reference voltage used for analog input (i.e. the value used as the top of the input range). The options are −Arduino - Character Functions
Arduino - Math Library
Arduino - Trigonometric Functions
Arduino - Due & Zero
Important features −
Arduino - Pulse Width Modulation
Arduino - Random Numbers
- randomSeed(seed)
- random()
randomSeed (seed)
Arduino - Interrupts
Suppose you are sitting at home, chatting with someone. Suddenly the telephone rings. You stop chatting, and pick up the telephone to speak to the caller.