Question about Computers & Internet

1 Answer

C++ PROGRAMMING A PROGRAM THAT INSERTS A LIST OF WORKERS WITH THEIR,NAME, JOB,AGE AND SURNAMES USING C++ DATA STRUCTURES

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that has over 10 points.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 21 Answers

Dear Mr. Thephu,
here is the solution:
first, declare a structure
struct workers
{
char name[20],job[10],surname[20];
int age;
workers *next; // this is the pointer to the next node of
//type worker.
};
in the main program, declare a pointer to first worker node called head as :
workers *head;
head = new workers;
or (head =( workers *) malloc (sizeof(workers));
Then in the main program, whenever the user wishes to create a worker and join it to the list, u can include the following code:
head ->next = new workers;
cin >> head -> name >>job>>surname >> age;
if the user finishes the input include,
head -> next = NULL.

Posted on Feb 05, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

Tip

File organization tips: 9 ideas for managing files and folders


<p>The tips in this article can help you master file management by supplying some tips to help you better manage and organize computer files. After you've decided on a strategy for organizing and managing files and folders, we bet you'll see improved time management skills and increased productivity.<br /> The tips in this article can help you learn how to better manage and organize computer files. After you've decided on a strategy for organizing and managing files and folders, we bet you'll see improved time management skills and increased productivity.<br /><a></a> Tips to manage your files better Use these tips to help with organizing your computer files.<br /> <ol> <li><a></a> <b>Use Documents.</b> For many reasons, it's smart to take advantage of the Documents feature, which is called Documents in Windows 7 and in Windows Vista and is called My Documents in Windows XP. To open Documents in Windows 7 and Vista, click <b>Start</b>, and then click <b>Documents</b> to discover an easy way to store your personal documents.<br /> In Windows 7, the Documents feature is actually a virtual library. By default, the Documents library includes your My Documents or Documents folder and the Public Documents folder. You can customize the Documents library (in addition to the Music, Pictures, and Videos libraries that are also included by default) in Windows 7 to group files and folders from any location on your computer-without actually moving them. Or you can build your own libraries to easily organize your files. Learn more about <a href="http://windows.microsoft.com/en-us/windows7/Working-with-libraries">working with libraries</a>.<br /><br /> <img src="files_win7_libraries.jpg" /> <i>Libraries are a flexible way to organize your files in Windows 7 without moving them into one location.</i><br /> By using Libraries in Windows 7, Documents in Windows Vista, and My Documents in Windows XP, you can more easily:<br /> <ul> <li> <b>Find files.</b> Windows provides easy access to the Documents folder (and its subfolders) in many places, including the <b>Start</b> menu, the task pane in Windows Explorer, and common <b>File Open</b> and <b>File Save</b> dialog boxes, among other places. Read about the <a href="http://windows.microsoft.com/en-us/windows7/products/features/windows-search">search feature in Windows 7</a>, or read these <a href="http://windows.microsoft.com/en-US/windows-vista/Tips-for-finding-files">tips for finding files</a> in Windows Vista and Windows XP. <br /> <li> <b>Back up files.</b> You should back up files regularly. Documents and libraries can help make backups a snap. <br /> <li> <b>Keep files separate from programs.</b> By separating document files and program files you reduce the risk of accidentally deleting your documents when you install or upgrade programs. To move files or folders from one location to another, right-click the file or folder name in the existing location and then click <b>Cut</b>. Navigate to the new location, and then click <b>Paste</b>. You can also <a href="http://windows.microsoft.com/en-US/windows7/Move-and-copy-files-using-drag-and-drop">drag a file or folder</a> from one location to another. To display two folder windows simultaneously in Windows 7, hold down the Shift key when you click to open the second window.<br /></li></ul> <li><a></a> <b>Adopt consistent methods for file and folder naming.</b> When learning how to manage files and folders, it is important that you develop a naming scheme for the kinds of files you create most often and then stick to it. To change an existing file or folder name, right-click the name in the folder structure. Click <b>Rename</b>, and then type the new name. <br /> <li><a></a> <b>Keep names short.</b> Even though you can use long file names in Windows, you should not necessarily do so. Long file names can be harder to read.<br /> Let your folder structure do some of the naming. For example, rather than creating a file called Great American Novel Chapter One First Effort, you can build a structure like this:<br /><br /> <img src="files_win7_folders.png" /> <i>The folder structure can help you avoid using lengthy file names.</i><br /> <li><a></a> <b>Separate ongoing and completed work.</b> To keep the Documents folder from becoming too unwieldy, use it only for files you're actively working on. As a result, you can reduce the number of files you need to search through and the amount of data you need to back up. Every month or so, move the files you're no longer working on to a different folder or location, such as a folder on your desktop, a special archive folder, a flash drive, an external hard disk drive, or even a CD. <br /> <li><a></a> <b>Store like with like.</b> Restricting folders to a single document type (or predominantly one type) makes it easier for you to find files. For example, with all of your graphics in a single folder-or in a single library in Windows 7-it's easy to use the slide show feature in Windows Explorer to find the right picture for your newsletter. You can also use libraries in Windows 7 to group files together for easier searching without moving them into the same place or use the <b>Arrange by</b> command to sort files by criteria, such as author, date modified, and type. These criteria can change based on the file type (documents have different Arrange by criteria than photos, for example). <br /> <li><a></a> <b>Avoid large folder structures.</b> If you need to put so many subfolders in a folder that you can't see all of them at a glance, consider creating an alphabetic menu.<br /><br /> <img src="filestructure.gif" /> <i>Alphabetized folders can help you stay organized.</i><br /> <li><a></a> <b>Use shortcuts and shortcut links instead of multiple copies.</b> If you need to get to the same file from multiple locations, don't create copies of the file. <a href="http://windows.microsoft.com/en-US/windows7/Create-or-delete-a-shortcut">Create <i>shortcuts</i></a> to it instead. Shortcuts are links to files or programs and are represented by icons with an arrow in the lower-left corner. To create a shortcut, right-click the file and then click <b>Create Shortcut</b>. You can drag the shortcut to other locations. Microsoft Office 2010 includes some built-in shortcuts with the new Backstage view. To see Backstage view, open an Office file and then click the <b>File</b> tab. In Backstage view, click the <b>Recent</b> tab for a list of links to your recent documents. The <b>Recent</b> tab even includes a <b>Recover Unsaved Documents</b> option. In Backstage view, you can create, save, and send documents, inspect documents for hidden metadata or personal information, set options, and more. <br /> <li><a></a> <b>Quickly get to the items you use every day.</b> Jump Lists, a fun new feature in Windows 7, are lists of recently opened items, such as files, folders, or websites that are organized by the program that you use to open them. You can use a Jump List to open items, and you can even pin favorites to a Jump List. To see a Jump List for a particular program, just right-click the program button on the taskbar.<br /> <li><a></a> <b>Consider storing documents online.</b> You can also keep documents your company's <a href="http://sharepoint.microsoft.com/en-us/Pages/default.aspx">Microsoft SharePoint 2010</a> site or on <a href="http://explore.live.com/windows-live-skydrive">Windows Live SkyDrive</a> so that you can easily access them from outside the office, share them, and edit them online by using <a href="http://office.microsoft.com/en-us/web-apps/office-web-apps-FX101825822.aspx">Office Web Apps</a>.<br /></li></ol>

on Mar 05, 2011 | Computers & Internet

1 Answer

Hello i have a problem with my nokia 3110c whitch is : when i flash my phone with phoenix i got this result : Flashing started Creating product data items list Product data items list created Backup...


Now what is the condition of the phone ? If the phone has still problem, uninstall the previous file you have installed and re-install this one3110c file.Select the product code 0544311 or 0556977.This two files can use universal.Use fully charge battery or insert charger when message prompt.I hope there will be no error.Thanks good luck.

Aug 16, 2011 | Nokia N70 Cellular Phone

1 Answer

What do you mean recurrence relation in computer science? advantage and disadvantages in recurrence relation in computer science? what do you mean sequence? in computer science? what are the importance...


Recursion in computer science is a method where the solution to a problem depends on solutions to smaller instances of the same problem. The approach can be applied to many types of problems, and is one of the central ideas of computer science.Most computer programming languages support recursion by allowing a function to call itself within the program text. Some functional programming languages do not define any looping constructs but rely solely on recursion to repeatedly call code. Computability theory has proven that these recursive-only languages are mathematically equivalent to the imperative languages, meaning they can solve the same kinds of problems even without the typical control structures like "while" and "for".In computer science, a list or sequence is an abstract data structure that implements an ordered collection of values, where the same value may occur more than once. An instance of a list is a computer representation of the mathematical concept of a finite sequence, that is, a tuple. Each instance of a value in the list is usually called an item, entry, or element of the list; if the same value occurs multiple times, each occurrence is considered a distinct item.

Jun 30, 2011 | Computers & Internet

2 Answers

Covert lotus notes address book "names.nsf" to an excel file


I just stumbled on this one. Actually it's EASY! Open up your contacts list in Notes, go to the File menu, choose export. You can pick either "Structured Text", "Tabular Text", or "Comma Separated Value". All of these import well into either of those programs.

Apr 18, 2009 | Computers & Internet

1 Answer

Hi! can anyone help me?


hot to access ipcamera for linux fedora 8 is it possible or not

Mar 21, 2009 | Computers & Internet

1 Answer

I want circularlinklist program in c++


This C++ program is to perform the following operations
on a circular linked list
1)insertion
2)forward traversal
3)reverse traversal
4)search
->node structure :
a node contains
1) integer data
2) pointer to next node
-> This program works in microsoft VC++ environment
in windows xp
-> This program uses the following header files
1)iostream.h
********************************************************/
#include<iostream.h>
class cll
{
private:
int data;
cll *next;
public:
cll* insert_one(int,cll*);
cll* delete_one(int,cll*);
void ftraverse(cll*);
void rtraverse(cll*);
void search(int,cll*);
void function();
};
cll*hd;
void cll::function()
{
cout<<”******************************************\n”;
cout<<”program to implement a circular linked list \n”;
cout<<”******************************************\n”;
cll * head;
head=NULL;
cout<<”\n\nMENU :\n”;
cout<<”1)insertion\n”
<<”2forward traversal\n”
<<”3)reverse traversal\n”
<<”4)search\n”
<<”5)exit\n\n”;
cout<<”Enter your option :”;
int opt;
cin>>opt;
int d;
while(opt!=5)
{
switch(opt)
{
case 1:
cout<<”Enter data to the node :”;
cin>>d;
head=insert_one(d,head);
cout<<”inserted\n”;
break;
case 2:
cout<<”The forward traversal is :\n”;
ftraverse(head);
break;
case 3:
cout<<”The reverse traversal is :\n”;
hd=head;
rtraverse(head);
cout<<”NULL\n”;
break;
case 4:
cout<<”Enter the element to be searched :”;
int d;
cin>>d;
search(d,head);
break;
case 5:
break;
default:
cout<<”invalid option”;
break;
}
cout<<”\n\nMENU :\n”;
cout<<”1)insertion\n”
<<”2)forward traversal\n”
<<”3)reverse traversal\n”
<<”4)search\n”
<<”5)exit\n\n”;
cout<<”Enter your option :”;
cin>>opt;
}
}
cll* cll::insert_one(int d,cll* c)
{
cll*NEW;
NEW=new cll;
NEW->data=d;
NEW->next=NULL;
if(c==NULL)
{
c=NEW;
c->next=c;
}
else
{
cll*c1=c;
while(c1->next!=c)
c1=c1->next;
c1->next=NEW;
NEW->next=c;
}
return c;
}
void cll::ftraverse(cll* c)
{
if(c==NULL)
{
cout<<”\nlist empty\n”;
return;
}
else
{
cll *c1=c;
cout<<c1->data<<”->”;
c1=c1->next;
while(c1!=c)
{
cout<<c1->data<<”->”;
c1=c1->next;
}
cout<<”NULL\n”;
}
}
void cll::rtraverse(cll* c)
{
if(c->next==hd)
{
cout<<c->data<<”->”;
return;
}
else
rtraverse(c->next);
cout<<c->data<<”->”;
}
void cll::search(int d,cll* c)
{
cll*c1=c;
if(c==NULL)
{
cout<<”\nlist empty\n”;
return;
}
else
{
if(c->data == d)
{
cout<<”found\n”;
return ;
}
while(c->next !=c1)
{
if(c->data==d)
{
cout<<”found\n”;
return ;
}
c=c->next;
}
if(c->data ==d)
{
cout<<”found\n”;
return ;
}
cout<<” search unsuccess ful \n”;
}
}
void main()
{
cll list;
list.function();
}

Mar 05, 2009 | Computers & Internet

1 Answer

Unable to Save - Internal Error


Use your burning software or similar ones like NTI CD/DVD maker, Nero or EZCD Creator and start new DVD DATA job. At the blank layout screen, drag your cd drive letter into the layout. The software should ask something like "do you wish to load the previous image from cd drive?" Click on yes and you should see the folders and files re-appear. Change the name of one of the folders or files and then re-burn. This should re-create the DVD data structure so you can access it properly.

Jun 27, 2008 | Autodesk AutoCAD 2004 for PC

1 Answer

Pyton Programming


could you give me more info plz

May 12, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

185 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18386 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...