Help with search function?

So I've got this part down
___________________________________

#include <iostream>
#include <string>
using namespace std;

struct Node
{
int rank;
string name;
string state;
int founded;
string type;
int us_employees;
Node *link;
};
typedef Node* NodePtr;

void head_insert(NodePtr& head, int r, string n, string s, int f, string t, int ue);
void showlist(NodePtr head);
void search(NodePtr head);
void searchstate(NodePtr head);
void searchyear(NodePtr head);

int main()
{
NodePtr head;
head = new Node;

head->rank = 10;
head->name = "DPR Cons.";
head->state = "CA";
head->founded = 1990;
head->type = "Private";
head->us_employees = 1356;
head->link = NULL;

head_insert(head, 9, "Robert W. Baird", "WI", 1919, "Private", 2704);
head_insert(head, 8, "Intuit ", "CA", 1983, "Public", 7728);
head_insert(head, 7, "Saleforce.", "CA", 1999, "Public", 6739);
head_insert(head, 6, "Genentech", "CA", 1976, "Private", 11998);
head_insert(head, 5, "Quicken Loans", "MI", 1985, "Private", 8386);
head_insert(head, 4, "Edward Jones", "MO", 1922, "Private", 38015);
head_insert(head, 3, "BCG ", "MA", 1963, "Private", 2552);
head_insert(head, 2, "SAS ", "NC", 1976, "Private", 6588);
head_insert(head, 1, "Google ", "CA", 1998, "Public", 42162);

cout << "The Top 10 Employers 2014 " << endl;
showlist(head);
______________________________________________________________________________

//but right here I should have the search code right? I'm forgetful about this part, any aid from anyone?

show the source for head_insert() please.
To add to @Jaybob66. Put all your code between codetags, its under "format" <>, makes it easier to read code - http://www.cplusplus.com/forum/articles/12974/
Topic archived. No new replies allowed.