You are here:

C++/C++ Doubt

Advertisement


Question
How to increment the empid e001 to e002 by using the coding?

Please mail me the  coding to my email id...


Answer
Hello Meera.

I am not sure that I understand your question. If you have a variable called empid and it is an integer you can increment it by adding 1 to it like this:

empid = empid + 1;

or you can increment it with the increment operator (++) like this

empid++;

or

++empid;

If you send me a sample of the code you have so far, then I could help you more.

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Zlatko

Expertise

No longer taking questions.

Experience

No longer taking questions.

Education/Credentials
No longer taking questions.

©2016 About.com. All rights reserved.