珞珈山水BBS电脑网络程序人生 → 单文区文章阅读

单文区文章阅读 [返回]
发信人: bigben (早起的鸟儿debug), 信区: Programm
标  题: Re: 汉语编程(zz)
发信站: 珞珈山水BBS站 (Fri Nov 11 23:02:38 2005), 转信

这个不支持变量的中文名啊,看java的

import java.io.*;
import java.util.*;

public class 猪头{
     private int 体重;
     private Random 随便吃点;
     public 猪头(){ 
             体重 = 200;
     }
     public void (int 食量){
             System.out.println("拱食");
             体重 += 食量;
     }
     public void (){
             System.out.println("睡啊睡");
             体重 --;
     }
     public void 养猪(){
             while(true){
                     吃(10);
                     睡();
             }
     }
     public static void main(String args[]){
             猪头 猪头甲 = new 猪头();
             猪头甲.养猪();
     }
}


【 在 oyljerry (勇敢的心→突出重围~) 的大作中提到: 】
: #include "stdafx.h"
: #define 主函数 _tmain
: #define 整数 int
: ...................

--
Hi, I'm a signature virus.
Copy me into your signature to help me spread.


※ 来源:·珞珈山水BBS站 bbs.whu.edu.cn·[FROM: 202.114.79.*]
[返回单文区目录]

武汉大学BBS 珞珈山水站 All rights reserved.
wForum , 页面执行时间:6.110毫秒