Just read that articel and you will find everything you need.
and next time, try to include some code and some guidelines to what you are trygin to do!
it´s a ton easyer that way rather than reading "please, help!"
i have a cobol program and there are around 3 functions in it..and these functions will have inner functions also..
i need to create a c++ program to list out these main functions and also the inner functions into a textfile..how do i do dat?
this is my sample cobol program
$ SET SOURCEFORMAT"FREE"
IDENTIFICATION DIVISION.
PROGRAM-ID. DriverProg.
AUTHOR. Michael Coughlan.
i have a cobol program and there are around 3 functions in it..and these functions will have inner functions
C and C++ do not support inner functions (local functions). But there are various ways to simulate the effect. In the end, it's just controlling scope, so as long as the signatures don't clash, just declare then at global scope like everything else.
i need to create a c++ program to list out these main functions and also the inner functions into a textfile..how do i do dat?
That's a little bit tricky. You're now in the business of parsing a COBOL program. Do you know anything about parsing?