Language X++
| Date: | 04/20/05 |
| Author: | Tobias Nystrom |
| URL: | n/a |
| Comments: | 2 |
| Info: | n/a |
| Score: |
/*
X++ (Axapta) version of 99 Bottles of beer
Tobias Nystrom, http://www.gangstasoftware.com
*/
static void bottles99()
{
str lyrics1, lyrics2, lyrics3;
str s = "s";
int bottles;
;
lyrics1 = "%1 bottle%2 of beer on the wall%3 ";
lyrics2 = "%1 bottle%2 of beer. ";
lyrics3 = "Take one down, pass it around, ";
for (bottles = 99; bottles >= 1; bottles--)
{
info(strFmt(lyrics1, int2str(bottles), s, ","));
info(strFmt(lyrics2, int2str(bottles), s));
info(lyrics3);
if (bottles == 2) s = "";
if (bottles == 1) s = "s";
info(strFmt(lyrics1, int2str(bottles - 1), s, "."));
}
}
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
"The development environment used in Microsoft Axapta is called MorphX®. MorphX is an Integrated Development Environment, or IDE, because it integrates several different functions such as designing, editing, compiling and debugging within one common environment. MorphX includes editors for the Microsoft Axapta client of Microsoft Windows®, the Web and mobile devices, and it also uses IntelliMorph® technology and the X++® development language."