473,399 Members | 3,038 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,399 software developers and data experts.

program to print company name on giving mobile no..??

hiiiiiiiii..

i am lerning c language...i have some problem...

i want to make program in c language...
in which user enter his name ,address,mobile number..

when he enter mobile no..in output screen..it show the name of mobile no company..like airtel,reliance.vodafone,hutch..

kindly help me please...
Aug 28 '10 #1
2 2195
whodgson
542 512MB
How are the mobile numbers related to the company names?
Aug 29 '10 #2
weaknessforcats
9,208 Expert Mod 8TB
What you need is a struct for the mobile. In that struct you have the mobile number aand the company. You create a variable for the mobile number.

Then design a struct for your user. In that struct add a member that it a pointer to a mobile. Then when you create a user variable you add insert the address of the mobile variable.

This allows you to add values to the user struct variable and when you get ot the mobile number you can call a function that creates a mobile variable and then asks for the number and the company. The function returns the address of the mobile variable it created and you put that address in the mobile pointer inside the user struct variable.
Aug 29 '10 #3

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

Similar topics

1
by: James Tcheng | last post by:
I've created a simple calculator program for the Pocket PC, and have deployed successfully (installed via a simple copy of the .cab file generated in Build, Build Cab File menu to my Pocket PC). ...
1
by: James Tcheng | last post by:
I've created a simple calculator program using VB.NET -> Smart Device, and successfully deployed to my PDA. When I delete the program from my PDA, it lists the program as "My Company Calculator"....
6
by: BobAchgill | last post by:
How can I change the name of install directory to be??: Program Files\My Company Name\
5
by: ThunderMusic | last post by:
Hi, I want to find the computer name and the company name from the network indentification informations. For the computer name, I found System.Net.Dns.GetHostName(), but I fgound nothing for...
15
by: dspfun | last post by:
Hi, Is it possible to print the function name of the calling function? For example, f1() and f2() both calls f3(), in f3() I would like to print the name of the function calling f3() which...
1
by: Rob | last post by:
I am doing a simple setup deployment.... everything is fine but the program installs to the Program Files\Default Company Name.... I hear that is derived from the "Manufacturer".... Where do...
1
by: coltsith | last post by:
How do you change the company name so when the user does something like, for example, try to uninstall the program, it says: My Company Name Here -- My Program Name Here rather than ...
0
by: =?Utf-8?B?TWljaGVs?= | last post by:
Hello, When creating a setup project for my VB.NET application, the setup installs my program in c:\program files\default company name\Program name. I can rename then name of the map "Default...
5
Sandboxer
by: Sandboxer | last post by:
Two issues I need help with on the same report: 1) I created a report called "Contacts". I grouped it by Company, then by the contact's role (marketing, invoicing, etc.). When I print the...
10
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm trying to use the new VB 2008 right now and I want to know how to preset the company name and copyright informtion in Assembly Information. In my current VB 2005, company name...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.