Escape sequences
Escape sequences are used to define certain special characters within string literals.
The following escape sequences are available:
EscapesequenceDescriptionRepresentation
\'single quotebyte 0x27
\"double quotebyte 0x22
\?question markbyte 0x3f
\\backslashbyte 0x5c
\0null characterbyte 0x00
\aaudible bellbyte 0x07
\bbackspacebyte 0x08
\fform feed - new pagebyte 0x0c
\nline feed - new linebyte 0x0a
\rcarriage returnbyte 0x0d
\thorizontal tabbyte 0x09
\vvertical tabbyte 0x0b
\nnnarbitrary...
Wednesday, April 16, 2014
c++ Data Type Ranges
Type Name
Bytes
Other Names
Range of Values
int
4
signed
–2,147,483,648 to 2,147,483,647
unsigned int
4
unsigned
0 to 4,294,967,295
__int8
1
char
–128 to 127
unsigned __int8
1
unsigned char
0 to 255
__int16
2
short, short int, signed short int
–32,768 to 32,767
unsigned __int16
2
unsigned short, unsigned short int
0 to 65,535
__int32
4
signed, signed int, int
–2,147,483,648 to 2,147,483,647
unsigned __int32
4
unsigned, unsigned int
0 to 4,294,967,295
__int64
8
long long, signed long long
–9,223,372,036,854,775,808...
Common C++ Errors
1. Programming errors
These are generated when typographical errors are made by users.
2. Compiler errors
These are errors detected by the compiler that make the program un-compilable.
3. Linker error
These are errors generated when the executable of the program cannot be generated. This may be due to wrong function prototyping, incorrect header files.
4. Execution error
These errors occur at the time of execution....
Programming Lanquages
Programming languages are used to create software that causes a computer to perform various functions. However, all computer languages can be placed in one of four broad categories which share certain common technical characteristic.These categories also have implications for management and software support as well. These four categories are
Machine Language
Assembly-Level Language
Higher-Order Languages (HOLs)
Fourth-Generation Languages...
set operatoion
Union of set
if all elements of A & B are put to gather or form a one set the set form is called union set
eg
A={1,2,3}
B={4,5,6}
AUB={1,2,3,4,5,6} [A union B]
inter section of set
in all elements of A&B which are common to A&B is called intersection
eg
A={1,2,3,4}
B={1,4,5,6}
A∩B={1,4} A intersection B
different of set
the different is" if "A&B"wish is belongs to A and which is...
About SET
equality of two set
two set A&B are equal of all element"A elements are found in B&all B elements are found in A"
A={1,2,3,4,5}
B={1,2,3,4,5}
then A=B
disjoint set
two set A&B are disjoint if the don't have elements in common
A={a,b,c}
B={1,2,3}
finite & infinit set
if set has finite numbers of elements it is finite set othervice its an infinite set
eg
if M={x|x is positive integer below 100}
M={1,2......99}
its finite set because there is the end point
if N={x|x is a multiple of 5 and its...
Monday, April 14, 2014
SET
SET
set is a well defined collection or grouping of objects
elements or members
object in a set are called elements or members of the set
set are usually denoted by capital letters of the English alpha..(A,B,X,Z)
members usually denoted by simple letters(a,b,x,z)
Example
if capital A is a set of odd integer below 10 than we can show this set as A={1,3,5,7,9}
3 is a element of A= 3 belongs to...
Subscribe to:
Posts (Atom)