ASCII( American Standard Code for Information Interchange)

ASCII  abbreviated from American Standard Code for Information Interchange, is a character encoding standard (the Internet Assigned Numbers Authority (IANA) prefers the name US-ASCII). ASCII codes represent text in computers, telecommunications equipment, and other devices. Most modern character-encoding schemes are based on ASCII, although they support many additional characters.

ASCII was developed from telegraph code. Its first commercial use was as a seven-bit teleprinter code promoted by Bell data services. Work on the ASCII standard began on October 6, 1960, with the first meeting of the American Standards Association’s (ASA) (now the American National Standards Institute or ANSI) X3.2 subcommittee. The first edition of the standard was published in 1963, underwent a major revision during 1967, and experienced its most recent update during 1986. Compared to earlier telegraph codes, the proposed Bell code and ASCII were both ordered for more convenient sorting (i.e., alphabetization) of lists, and added features for devices other than teleprinters.

Originally based on the English alphabet, ASCII encodes 128 specified characters into seven-bit integers as shown by the ASCII chart above. The characters encoded are numbers 0 to 9, lowercase letters a to z, uppercase letters A to Z, basic punctuation symbols, control codes that originated with Teletype machines, and a space. For example, lowercase j would become binary 1101010 and decimal 106. ASCII includes definitions for 128 characters: 33 are non-printing control characters (many now obsolete) that affect how text and space are processed and 95 printable characters, including the space (which is considered an invisible graphic).

A June 1992 RFC and the Internet Assigned Numbers Authority registry of character sets recognize the following case-insensitive aliases for ASCII as suitable for use on the Internet: ANSI_X3.4-1968  (canonical name), iso-ir-6, ANSI_X3.4-1986, ISO_646.irv:1991, ASCII, ISO646-US, US-ASCII (preferred MIME name), us, IBM367, cp367, and csASCII.

Of these, the IANA encourages use of the name “US-ASCII” for Internet uses of ASCII (even if it is a redundant acronym, but the US is needed because of regular confusion of the ASCII term with other 8 bit based character encoding schemes such as Extended ASCII or UTF-8 for example). One often finds this in the optional “charset” parameter in the Content-Type header of some MIME messages, in the equivalent “meta” element of some HTML documents, and in the encoding declaration part of the prologue of some XML documents.

ASCII Table

asciifull

extend

Standard library header files in C++

Hello everyone we have seen Hello world program in C++

headerfiles

The first line of the program Hello World we can see its written #include.What is actually, well writing C/C++ program we need to write this.This is header file in C++.

In the C++ programming language, the C++ Standard Library is a collection of classes and functions, which are written in the core language and part of the C++ ISO Standard itself. The C++ Standard Library provides several generic containers, functions to utilize and manipulate these containers, function objects, generic strings and streams (including interactive and file I/O), support for some language features, and functions for everyday tasks such as finding the square root of a number. The C++ Standard Library also incorporates 18 headers of the ISO C90 C standard library ending with “.h”, but their use is deprecated. No other headers in the C++ Standard Library end in “.h”. Features of the C++ Standard Library are declared within the std namespace.

The C++ Standard Library is based upon conventions introduced by the Standard Template Library (STL), and has been influenced by research in generic programming and developers of the STL such as Alexander Stepanov and Meng Lee. Although the C++ Standard Library and the STL share many features, neither is a strict superset of the other.

A noteworthy feature of the C++ Standard Library is that it not only specifies the syntax and semantics of generic algorithms, but also places requirements on their performance.These performance requirements often correspond to a well-known algorithm, which is expected but not required to be used. In most cases this requires linear time O(n) or linearithmic time O(n log n), but in some cases higher bounds are allowed, such as quasilinear time O(n log2 n) for stable sort (to allow in-place merge sort). Previously sorting was only required to take O(n log n) on average, allowing the use of quicksort, which is fast in practice but has poor worst-case performance, but introsort was introduced to allow both fast average performance and optimal worst-case complexity, and as of C++11, sorting is guaranteed to be at worst linearithmic. In other cases requirements remain laxer, such as selection, which is only required to be linear on average (as in quickselect), not requiring worst-case linear as in introselect.

The C++ Standard Library underwent ISO standardization as part of the C++ ISO Standardization effort, and is undergoing further work regarding standardization of expanded functionality.

Download Standard C++ Library Reference from EBOOKS

Namepaces in C++

You all have seen in previous post (Helloworld program) we have used something called as namespace . What it is actually? What its use?

Namespaces provide a method for preventing name conflicts in large projects.

Symbols declared inside a namespace block are placed in a named scope that prevents them from being mistaken for identically-named symbols in other scopes.

Multiple namespace blocks with the same name are allowed. All declarations within those blocks are declared in the named scope.

 using namepace std;

It includes all C++ standard Libraries.

EXAMPLE:-

 

Hello World!!

Let’s make a Hello World Program in C++.

Open a Text Editor.(Sublime Text)

AND JUST FOLLOW THE STEPS:-

OPEN SUBLIME-

Code:-
#include<iostream>
using namespace std;
int main(){
cout<<“Hello World!!!”;
return 0;
}

COMPLING IN SUBLIME:-
Goto tools>build with>C++ single file run


Yup!!
You are Done

Let’s Start

For learning coding you need a system(desktop/laptop) with a good internet connection.Well internet is required because their are lot of websites with tutorials available which will help you.First thing you need is mindset yup!!! mindset it is important for anything you want to learn and remember one thing especially in this case “GIVING UP IS NOT AN OPTION” just try try and try thats how you learn.

For C++ programming all you need is a text editor(I use Sublime Text editor) and you are done.Well I recommend you all to use Sublime Text Editor.

download Sublime text editor-https://www.sublimetext.com/3

INSTALLING SUBLIME:-

ALMOST DONE!!!!