Skip to main content

Getting Started with C++

Upper case can only be used for identifiers. They should be unique in program but same name identifier in upper case and lower case are same.

Reserve words have to be used in context of their predefined meanings and cannot be used as identifier.

Each C++ function should have main functions because it is the first function
Group of 4 bits is null
Normalization is a process in which decimal point is shifted from its place to and shifted to most non significant non zero that mantissa x with base of number system and raised to powers required no. which is known as exponent. This is a general, used in representing real nos. in the computers.

The Sequence of directories name separated by a path separator in order to access a file or direct a path name can also include the drive and direct and subsequent directories needed to read the file.
Switches - Change the Output
X. XLS
Library *
M*i
<<<<<<<< .................... >>>>>>

Sum of First 5 Natural Numbers

10 a = 1
20 b = 2
30 c = 3
40 d= 4
50 e= 5
60 S = a+b+b+c+d+e
70 Print S

<<<<<<<< .......................... >>>>>>>>>>>

Square of Cube of any given number

10 a = 2
20 S = a*a
30 c = a*a*a
40 Print S, c

<<<<<<<< ............ >>>>>>>>>

Program to know which is greater
1) Read a
2) If a = 10
Print 'Yes you are right"
+. -. *,/, %
Write an alorthim
Find No, in postive or negative
odd and even

1. Read a
2. If a > = 0
Print
"It is positive"
else
print "It is negative"

Comments

Also read

Does India need communal parties?

I think, it was Tan's post on this blog itself, Republic Day Event, where this question was raised. My answer. YES. we need communal parties even in Independent, Secular India. Now let me take you, back to events before 1947. When India was a colony of the British Empire. The congress party, in its attempt to gain momentum for the independence movement, heavily used Hinduism, an example of which is the famous Ganesh Utsav held in Mumbai every year. Who complains? No one. But at that time, due to various policies of the congress, Muslims started feeling alienated. Jinnah, in these times, got stubborn over the need of Pakistan and he did find a lot of supporters. Congress, up till late 1940's never got bothered by it. And why should we? Who complains? No one. But there were repercussions. The way people were butchered and slaughtered during that brief time when India got partitioned, was even worse than a civil war scenario. All in the name of religion. And there indeed was cr...

Spill the Tea: When an online relationship feels more real

Anaya’s online relationship feels intense, intimate, and real — until she meets him in person. At a roadside tea stall, she admits she prefers digital intimacy to real-world vulnerability. This Spill the Tea story explores online friendships, emotional loneliness, and the quiet cost of choosing a screen over a life. Anaya rang the bell without calling first. When I opened the door, she was already stepping in, as if the decision had been made long before.  I asked her to sit. She chose the edge of the sofa, not leaning back. I went to the kitchen and opened the cupboards, scanning for something to put in front of her. I found a bar of chocolate. I broke it into uneven pieces and placed them on a small plate. She took one. The foil crackled in the quiet room.  “I’ll make tea,” I said. She looked at the plate and then at me. “No,” she said. “Don’t make it here.” I thought she meant she didn’t want tea. She shook her head. “Let’s go out. Tapri chai .” She said it lightly, ...

Debate : Do the ends justify the means...

Note : Give it all a fair thought before you jot down... Flaming and religion-bashing will not be tolerated. Your participation is gladly appreciated. I dunno if you folks remember this incident; a couple of yrs back, the UPSC exam had a question where the emainee had to assert his views on *revolutionary terrorism* initiated by Bhagat Singh. As is typical of the government, hue and cry was not far behind... Anyway, let us look at some facts -   Bhagat Singh was an atheist, considered to be one of the earliest Marxist in India and in line with hi thinking, he renamed the Hindustan Republican Party and called it the Hindustan Socialist Revolutionary Party. Bhagat Finally, awaiting his own execution for the murder of Saunders, Bhagat Singh at the young age of 24 studied Marxism thoroughly and wrote a profound pamphlet “Why I am an Atheist.” which is an ideological statement in itself. The circumstances of his death and execution are worth recounting. Although, Bhagat Singh had a...