| Author |
Easy translation in ada.
|
|
| news.videotron.ca 2004-11-19, 3:56 pm |
| 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;
}
}
| |
| Stefano Lanzavecchia 2004-11-19, 3:56 pm |
| "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
| |
| Apl quick fly Over 2004-11-19, 3:56 pm |
|
"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.
| |
| Apl quick fly Over 2004-11-23, 3:55 am |
|
"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.
|
|
|
|