Monday, February 22, 2010

Programs

1)Simple programs

#include
using namespace std;

int main ()
{
cout << "http://cplusplusindepth.blogspot.com/!";
return 0;
}
output:-
http://cplusplusindepth.blogspot.com/!
2)Variables and Data Types.
3)Very important:
The C++ language is a "case sensitive" language. That means that an identifier written in capital letters is not equivalent to another one with the same name but written in small letters
4)Introduction to strings:-
#include
#include
using namespace std;

int main ()
{
string mystring = "This is a cplusplus.blogspot.com";
cout << mystring;
return 0;
}
OutPut:- This is a cplusplus.blogspot.com
5)Constants:-
Constants are expressions with a fixed value.
6)Operators:-
(i)Assignment (=)
(ii)Arithmetic operators ( +, -, *, /, % )
(iii)Relational and equality operators ( ==, !=, >, <, >=, <= )
(iv)Logical operators ( !, &&, || )
(v)Conditional operator ( ? )
(vi)Comma operator ( , )
(vii)Bitwise Operators ( &, |, ^, ~, <<, >> )

7)

Simple Programs

#include
using namespace std;

int main ()
{
cout << "http://cplusplusindepth.blogspot.com/!";
return 0;
}
output:-
http://cplusplusindepth.blogspot.com/!

Sunday, February 21, 2010

c++

Welcome to my cplusplusindepth.blogspot.com
This is my first blog.