½»»»Á¬¸ö¶ÔÏóµÄÖµ£¨C/C++?JAVA£©
ÈçºÎ½»»»Á½¸ö±äÁ¿µÄÖµ£º
CÓïÑÔÖеĴ«Öµ´úÂëÈçÏ£º
int change(int x,int y)
{
int temp=x;
x=y;
y=temp;
}
CÓïÑÔÖеĴ«Ö·´úÂëÈçÏ£º
int change(int *p,int *q)
{
int temp=*p;
*p=*q;
*q=temp;
}
ʹÓÃC++ÖеÄÒýÓÃÀàÐÍ´úÂëÈçÏÂ:
int change(int &x,int &y)
{
int temp=x;
x=y;
y=temp;
}
JAVAÖдúÂëͬÉÏ£»
ÉÏÊö´úÂ빲ͬµãÊǶ¼ÊÇʹÓõĶîÍâ±äÁ¿temp;ÈçºÎ²»Ê¹ÓöîÍâ±äÁ¿Íê³ÉÁ½¸öÊýµÄ½»»»ÄØ£¿
int change(int x,int y)
{
x=x+y;
y=x-y;
x=x-y;
}
ÀýÈ磺x=3£¬y=4
µÚÒ»²½£ºx=x+y=3+4=7;
µÚ¶þ²½£ºy=x-y=7-4=3;
µÚÈý²½: x=x-y=7-3=4;
Èç´ÖÍê³ÉÁËÁ¬¸öÊýµÄ½»»»£¬²¢ÇÒÿÓÐʹÓöîÍâµÄ¿Õ¼ä.
Ïà¹ØÎĵµ£º
Java Servlet API˵Ã÷Îĵµ£¨2.1a°æ£©£¨Èý£©
Èí¼þ°ü£ºjavax.servlet.http
Ëù°üº¬µÄ½Ó¿Ú£ºHttpServletRequest£»HttpServletResponse£»HttpSession£»HttpSessionBindingListener£»HttpSessionContext¡£
Ëù°üº¬µÄÀࣺCookie£»Http ......
Java Servlet API˵Ã÷Îĵµ£¨2.1a°æ£©£¨ËÄ£©
ÊõÓï±í\r
bytecode
×Ö½ÚÂ룺ÓÉJava±àÒëÆ÷ºÍJava½âÊͳÌÐòÉú³ÉµÄ»úÆ÷´úÂë¡£
cookie
ÓÉWeb·þÎñÆ÷½¨Á¢µÄÊý¾Ý£¬¸ÃÊý¾Ý´æ´¢ÔÚÓû§µÄ¼ÆËã»úÉÏ£¬ÌṩÁËÒ»¸öWebÕ¾µã¸ú×ÙÓû§µÄ²ÎÊý²¢ ......
1¡¢Á½Äê¼°ÒÔÉÏJ2EEʵ¼Ê¿ª·¢¾Ñé
2¡¢ÊìϤJAVA WEB¿ª·¢£¬°üÀ¨JAVASCRIPT¡¢JSP¡¢SERVLET¡¢WEBSERVICE¡¢PORTLETµÈ£»
3¡¢ÊìϤ³£Óÿò¼Ü(È磺 STRUTS2/SPRING/HIBERNATE/IBATISµÈ)£»
4¡¢ÖÁÉÙÊìϤһÖÖÖ÷Á÷¹ØϵÊý¾Ý¿âϵͳ£¬ÀýÈçORACLE¡¢MYSQL¡¢MSSQLµÈ
1.ÊìÁ·ÕÆÎÕJava¡¢HTML¡¢JavaScriptµÈÓïÑÔ£»
2.ÊìÁ·ÕÆÎÕJSP/Ser ......
Ò».ÖØÔØ£º¼´Í¬Ãû·½·¨²»Í¬²ÎÊý£»¶à̬£ºÍ¬Ãûͬ²Î·½·¨£¬ÔÚ¾ßÓм̳йØϵµÄÀàÖеĶ¯Ì¬Ñ¡Ôñ
¶þ.ÖØÔØ´«Èë²ÎÊýÊý¾ÝÀàÐÍСÓÚ·½·¨ÉùÃ÷²ÎÊýÀàÐÍʱ£¬»á±»×Ô¶¯ÌáÉý¡£char ÀàÐͻᱻֱ½ÓÌáÉýΪint¡£ÐéÄâ»ú¾ÍÊÇÓÃint±íʾcharµÄ¡£
Èý.static·½·¨ÄÚ²¿²»Äܵ÷Ó÷Çstatic·½·¨£¬·´Ö®¿ÉÒÔ¡£
ËÄ.¶ÔÓÚ·½·¨¾Ö²¿±äÁ¿£¬Èç¹ûδ³õʼ»¯¾Íµ÷Ó㬱àÒë´íÎó¡ ......
//ÎļþµÄ´ò¿ª
import java.awt.FileDialog;
import java.awt.event.*;
import java.io.*;
import java.io.File;
import java.io.FileReader;
public class FileOpen {
private FileDialog filedialog_open;
private String fileopen = null, filename = null;// ÓÃÓÚ´æ·Å´ò¿ªÎļþµØÖ· ºÍÎļþÃû
private File fi ......