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 C--

Date:04/20/05
Author:Philipp Winterberg
URL:http://www.winterbergs.de/
Comments:3
Info:n/a
Score: (3.07 in 115 votes)
/* C-- version of 99 Bottles of beer (Bottles.c--) */
/* See http://www.cs.utexas.edu/users/tbone/c--/   */
/* Philipp Winterberg, http://www.winterbergs.de   */

? include "WRITE.H--"
         
int b;
main ()           
{
b = 99;
do {           
    WRITEINT(b);                            
    WRITESTR(" bottle(s) of beer on the wall,\n");
    WRITEINT(b);                            
    WRITESTR(" bottle(s) of beer.\n");
    WRITESTR("Take one down, pass it around,\n");
    b--;
    WRITEINT(b);                            
    WRITESTR(" bottle(s) of beer on the wall.\n\n");
   } while (b > 0);
}

Download Source | Write Comment

Alternative Versions

Comments

>>  Honk said on 06/28/05 08:41:07

Honk Is this another method of faking C++?

>>  BigZaphod said on 06/28/05 22:47:17

BigZaphod C-- is actually sort of lower level than C. It isn't a fake language if that is what you were getting at. Check out the URL mentioned in the comments in the source code and you'll see it is not only legit, but also has been around awhile.

>>  cheese said on 06/07/08 06:54:29

cheese Why do you declare 'b' globally? Why not inside the main function?

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: