Skip to main content

developerWorks >  Rational  >  Forums  >  Development Tools (RAD, RSA, RDA, RSM, RWD)  >  developerWorks

HOW TO WRITE STUB IN RTRT FOR ADA 95    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
SRA ONE

Posts: 1
Registered: Nov 12, 2009 05:12:32 AM
HOW TO WRITE STUB IN RTRT FOR ADA 95
Posted: Nov 12, 2009 05:21:17 AM
 
Click to report abuse...   Click to reply to this thread Reply
I REQUEST ANY ONE TO TELL ME HOW TO WRITE STUBS IN RTRT FOR ADA95 LANGUAGE FOR THE FOLLOWING TYPE PROG

PACKAGE PACK1

BEGIN

PROCEDURE ADD(I,K:IN INTEGER,G:OUT INTEGER);

FUNCTION MUL(I,K:IN INTEGER)RETURN INTEGER;

END PACK1;

PACKAGE BODY PACK1

BEGIN

PROCEDURE ADD(I,K:IN INTEGER,G:OUT INTEGER)
IS BEGIN
G:=I+K;

END ADD;
FUNCTION MUL(I,K:IN INTEGER)RETURN INTEGER IS
BEGIN
RETURN (I*K);
END BODY PACK1;


WITH PACK1;

PROCEDURE MAIN IS

RES1,RES2:INTEGER;

BEGIN

PACK1.ADD(X,Y,RES1);

RES2:=PACK1.MUL(X,Y);

END MAIN;



I LIKE TETS THE PROCEDURE MAIN BY WRITING STUBS FOR ADD AND MUL IN RTRT

USING ADA95 LANGUAGE

 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums