I am sort of new to EA, please bear with me if
this is a dumb question...
I have a simple C program (below) in a file named
temp.c and I am trying to import it into EA
(Registered Professional Edition.) What I did was
to create an empty class diagram, right-click on
it, and then did an "Import from source
file(s)..." C and then selected temp.c. So far so
good. I got these messages:
Reverse engineer classes:
--importing C:\Temp\test.c
Adding: Class - test
Resolve relationships:
--relationships for test
--linking with existing attributes
--resolve generalizations
--resolve realisations
Complete!
I can see that I now have a class named "test"
with two operations:
-main(int,char*):int
-mysum(int,int):int
Question:
Where is the "code?" I expected to see activity
diagram(s) for main() and mysum() that indicate
their internal workings. I don't seem to be able
to find them. Am I missing a step, doing something
wrong, or am I just plain missing the point of EA?
Somehow I get the feeling that I am missing a very
fundamental point here.
I tried to create an Activity diagram but it seems
that you cannot import into it?
How do you "Load" a program in EA, edit it, and
then write it back? I've looked around a lot on
the internet and have not found much help on this.
========
int main (int argc, char * argv[])
{
int var_1;
int var_2;
int var_3;
real var_4;
var_1=8;
var_2=9;
var3=mysum(var_1,var_2);
}
int mysum(int x, int y)
{
int result;
result=x+y;
return result;
}