473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to add the mobile number in the employee information system in c language

Hello,
I am developing the project of "Employee Information System" using C language, In this project i want to add the mobile number for the each employee {Each Mobile number having 7 characters, Bcoz if we using the integer means, Any of one employee has no mobile number it’s not print the "0000000" format of mobile number} So if it okay means You will send the clear details about, "How to add the mobile number and also How to increase that to each employee ASAP.
Contact Mail ID : <removed>

Thanks & Regards,
B.Karthikeyan
Jan 21 '09 #1
4 2041
gpraghuram
1,275 Expert 1GB
Hi,
Whats ur requirement?
You want to know how to add this to a structure or wht u want to do?

Raghu
Jan 22 '09 #2
HI,

I store employee's 7digit phone number as string. I want to allocate numbers to them For each employee the phone number should be 1 value greater than previous employee.
So, I need to increment ph number by 1.
How to increment a string?
Regards,
Karthikeyan.B
Jan 22 '09 #3
osfreak
22
Get the last character of the string using a char pointer.

check if value is not '9' {
// value is not '9'
increment the value at the position

} else {
//value is '9'
replace the value of '9' to '0'

}
Jan 22 '09 #4
Banfa
9,065 Expert Mod 8TB
Convert the string to an integer, increment the integer and then convert the integer back to a string.

Alternatively if this is initialisation just hold the number as an integer and convert it to a string and increment it as you instantiate each employee.
Jan 22 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Stefan Finzel | last post by:
Hi, is there a way to change the display property on Windows Mobile 2003 SE Mobile/Pocket Internet Explorer? See following example. Please note: visibilty property has the same problem. Is...
19
by: xixi | last post by:
i want to use sql query to open a resultset, say i want the cursor point to whatever position i start with by giving a row number , so is there anyway i can use the sql function to do that, so...
0
by: Wiktor Zychla | last post by:
Hi there, I've just started to dig into mobile ASP.NET and I'd really wish to clarify few things. I have the experience with ASP.NET. 1) Some tutorials mention something called Microsoft...
0
by: Eddy_w | last post by:
Hello, I try to ping from my mobile device with a wireless connection to my pc. I found the class clsping on the internet and it works perfect with application from pc to pc but when i use it...
0
by: AmyHanson | last post by:
I am new to mobile development and am having some trouble sources for the tasks I need to perform. I have been looking around and I can find plenty of information on copying the file initiating on...
1
by: suthakar | last post by:
Hai, Is there any way to send sms from computer to mobile , we have some website like www.way2sms.com can we connect our program from ASP.NET to that link.. and send sms.. Actually...
2
by: ultraviolet2006 | last post by:
Hi folks! I have a question: I am Designing a Wap Site Using XHTML-MP Language,CSS and ASP (Active Server Page), the Problem is how to detect the Screen Size of the Mobile Visiting the site, so as...
7
by: cj2 | last post by:
I saw a MS demo a few years back where they developed a web page and the software automatically rendered it for different devices. Is this what I'm looking for? http://www.asp.net/mobile/ ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.