Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language X++

Date:04/20/05
Author:Tobias Nystrom
URL:n/a
Comments:3
Info:n/a
Score: (3.00 in 43 votes)
/* 
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

Alternative Versions

Comments

>>  cbuilder said on 06/28/05 09:06:15

cbuilder It looks like you invented the programming language X++.

>>   said on 04/07/06 10:11:45

>>  xue said on 09/29/09 05:41:47

xue please are there any other IDE or compiler tools for x++, I dont want to use x++ in M$ AX. I'm just sourcing some tools to code with x++.
C++Builder is for c++, and visual c++ is for c++ too, so MorphX in axapta is for x++, if Morphx is C++ Builder, are there any Visual c++ for x++?

A1 like A2 = A (A1 is C++ builder, A2 is visual c++, A is c++)
B1 like ? = B (B1 is Morphx, B2 is ??, B is x++)

Thanks!

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!

Name:

eMail:

URL:

Security Code:
  
Comment: