Source Code for Telephone Directory System | How to generate code in Rational Rose system

To generate the code for the Telephone Directory system using rational rose.
PROCEDURE:
Step 1: create the basic diagram use case diagram ,Activity Diagram, Sequence Diagram , collaboration Diagram.
Step 2: Choose menutool, set the default languate as Ansi C++ and click ok otherwise you can choose your source code like java, .. .
Visit the following link ow to generate code in Rational Rose Source code for Telephone Directory in C++ programming
Telephonedirectory.cpp:
#include "telephone directory.h"
//##ModelId=489194920177
telephone directory::search()
{
}
//##ModelId=489194970186
telephone directory::close()
{
}
//##ModelId=489194EA032C
telephone directory::update()
{
}
//##ModelId=48919501034B
telephone directory::insert()
{
}

Source code header file
Telephonedirectory.h:-
#ifndef TELEPHONE_DIRECTORY_H_HEADER_INCLUDED_B752DBCE
#define TELEPHONE_DIRECTORY_H_HEADER_INCLUDED_B752DBCE
//##ModelId=4891943E038A
class telephone directory
{
public:
//##ModelId=489194920177
search();
//##ModelId=489194970186
close();
//##ModelId=489194EA032C
update();
//##ModelId=48919501034B
insert();

private:
//##ModelId=489194560000
Long tel numbr;
//##ModelId=4891945D0196
String yellow pages;

//##ModelId=4891946601E4
string imp places;
//##ModelId=4891946E0232
int region codes;
};
#endif /* TELEPHONE_DIRECTORY_H_HEADER_INCLUDED_B752DBCE */
User.cpp:
#include "USER.h"
//##ModelId=489190B103C8
USER::insert()
{
}
//##ModelId=48919107030D
USER::find()
{
}
//##ModelId=4891910E036B
USER::update()
{
}
//##ModelId=4891911603D8
USER::modify()
{
}
Source code header file
User.h:-
#ifndef USER_H_HEADER_INCLUDED_B752C887
#define USER_H_HEADER_INCLUDED_B752C887
//##ModelId=4891908402DE
class USER
{
public:
//##ModelId=489190B103C8
insert();
//##ModelId=48919107030D
find();
//##ModelId=4891910E036B
update();
//##ModelId=4891911603D8
modify();

private:
//##ModelId=4891908E0290
string name;
//##ModelId=4891909602DE
int telphone number;
//##ModelId=4891909E00BB
string address;
//##ModelId=489190A202EE
string place;
//##ModelId=489190A502DE
string details;
};
#endif /* USER_H_HEADER_INCLUDED_B752C887 */
CONCLUSION Thus the Code for for the telephone directory was generated and the output was verified successfully.

Related post