什么是代码?请举例.......

来源:百度知道 编辑:UC知道 时间:2024/05/20 04:43:38
如何使用代码?

这就是代码
public class BackwardString {
public static void main(String[] args) {
System.out.print("请输入一句话:");
System.out.println();
String s = SavitchIn.readLine();
int n = s.length();
char a[] = new char[n];
for (int i = 0; i < n; i++) {
a[i] = s.charAt(i);
}
System.out.println(s + "倒序输出为:");
for (int i = n - 1; i > -1; i--) {
System.out.print(a[i]);
}
}
}

英文叫code

代码其实就是针对不同的软件应用的语言。
比如说一下是一段HTML超文本文档的代码,作用——检测进入此页面的访客系统信息:
<script language="JavaScript" type="text/javascript">
<!--
var newline = "\r\r"
var now = new Date()
var millinow=now.getTime()/1000
var hours = now.getHours()
var minutes = now.getMinutes()
var seconds = now.getSeconds()
var yourLocation="