Code Comments
Programming Forum and web based access to our favorite programming groups.Can anyone translate this pseudocode in Ada :) ? I made it in C++, but
having no documentation or reference on ada, it would be really nice if some
could spare 10 min of their life :)
I have to rewrite this pseudocode in Ada
///////////
k= (j+13)/27
loop: if k>10
then goto out
k=k+1
i=j+k-1
goto loop
out:
Ada
///////////????
in C++
//////////////
void main(){
int k=0, i=0, j=0;
k=(j+13)/27;
while(true){
if(k>10)
break;//goto out;
k=k+1;
i=j+k-1;
}
}
Post Follow-up to this message"news.videotron.ca" <ada@ada.com> wrote in message news:BYpnd.60618$De5.765695@wagner.videotron.net... > Can anyone translate this pseudocode in Ada :) ? I made it in C++, but > having no documentation or reference on ada, it would be really nice if > some > could spare 10 min of their life :) I doubt you'll be able a lot of support (plenty of sympathy though) if you ask this question in comp.lang.apl. I browsed through an ADA manual a while ago but I don't remember enough to be able to help you. Sorry... -- WildHeart'2k4
Post Follow-up to this message"Stefano Lanzavecchia" <wildstf@hotmail.com> wrote in message news:306pvcF2rud0oU1@uni-berlin.de... > "news.videotron.ca" <ada@ada.com> wrote in message > news:BYpnd.60618$De5.765695@wagner.videotron.net... > > I doubt you'll be able a lot of support (plenty of sympathy though) if you > ask this question in comp.lang.apl. I browsed through an ADA manual a while > ago but I don't remember enough to be able to help you. Sorry... > -- > WildHeart'2k4 > > just a good url link about Ada would be nice :) with basic exemples.
Post Follow-up to this message"Stefano Lanzavecchia" <wildstf@hotmail.com> wrote in message news:306pvcF2rud0oU1@uni-berlin.de... > "news.videotron.ca" <ada@ada.com> wrote in message > news:BYpnd.60618$De5.765695@wagner.videotron.net... > > I doubt you'll be able a lot of support (plenty of sympathy though) if you > ask this question in comp.lang.apl. I browsed through an ADA manual a while > ago but I don't remember enough to be able to help you. Sorry... > -- > WildHeart'2k4 > > just a good url link about Ada would be nice :) with basic exemples.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.