[ create a new paste ] login | about

Link: http://codepad.org/5jgrhQR3    [ raw code | output | fork ]

C++, pasted on Mar 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 #include<iostream>
    #include<string>
    using namespace std;
    int main()
    {
     const int MAXITEM = 16 ;
     string familyname[MAXITEM] = {"computer" ,"microchip" ,"RAM", "ROM" ,              "HHD",                "LCD","Desktop",
     "Tower" , "Mouse", "keyboard","soundcard","Lan card" ,"Videocard" , "Ports"  ,"USB     ports" , "Cables"};
     cout << "displaying all" << endl << endl ;
     for(int i = 0; i < MAXITEM ; i++)
     {
        cout << familyname[i] << endl <<endl ;
     }

 return 0;
     }


Output:
displaying all

computer

microchip

RAM

ROM

HHD

LCD

Desktop

Tower

Mouse

keyboard

soundcard

Lan card

Videocard

Ports

USB     ports

Cables



Create a new paste based on this one


Comments: