1.spä¸cpçåºå«
2.JAVAç¼åçè天工å
·
3.cp是聊天什么意思
spä¸cpçåºå«
spä¸cpçåºå«å¦ä¸ï¼1ãæå¡å 容ä¸åï¼SPï¼SPæå¡å 容å æ¬çº¯ææ¬çä¿¡ï¼SMSï¼ã个æ§åå¤åªä½å½©ä¿¡ã彩éãææºæ¸¸æï¼CPï¼CPæå¡å 容æ¯ç½ç»å 容æå¡ï¼å æ¬æç´¢å¼æãèæ社åºãçµåé®ç®±ãæ°é»å¨±ä¹ï¼å æ¬æåãå¾åãé³é¢åè§é¢çåç§åªä½å 容ã
2ãæå¡éå¾ä¸åï¼SPï¼SPæ¯å©ç¨çä¿¡ã彩信ãWAPçæ¹å¼ï¼éè¿çµè®¯ç½ç»è¿è¥åæä¾çå¢å¼æ¥å£ï¼åç¨æ·æä¾ä¿¡æ¯æå¡ï¼CPï¼éè¿è¿è¥åæä¾çå¢å¼æ¥å£ä¸ºç¨æ·æä¾æå¡ã
3ãé¢å对象ä¸åï¼SPï¼é¢åææäºèç½ç¨æ·ï¼CPï¼é¢åææºç¨æ·ã
sp许å¯è¯çç»è¥èå´ï¼
1ãæ°é»å ¬å类平å°ä¾å¦ï¼æ°é»ç½ç«ãçµåå ¬åçã客æ·ç«¯æå¡ãææºæ¥ãåºç¨ååºãæç´¢å¼æã
2ã社交åªä½ç±»APPï¼ä¾å¦ï¼SaaSã社交ç½ç«ãå客ãæ客ãå¾®åãèæ社åºãè天室ãç½ç»å¨çº¿æ¸¸æã
3ã综ååºç¨ç±»æå¡APPï¼å³æ¶éä¿¡ï¼ææ¬ãå¾çãé³è§é¢ï¼ã交äºå¼è¯é³æå¡ãåºäºäºèç½ç端å°ç«¯ååå®æ¶è¯é³ä¸å¡ãå®å ¨è½¯ä»¶ãä¿¡æ¯ä¿æ¤ååå¾æ¦æªãå ææ°è½¯ä»¶æå¡çã
4ã微信ç¨åºå¹³å°è½å°ï¼å°æ¸¸æãéè¿å家信æ¯ãè´ç©ä¿¡æ¯ãååºä¼æ æ´»å¨çå¢å¼çµä¿¡ä¸å¡SPç»è¥è®¸å¯è¯å为跨å°åºè¯ï¼å ¨ç½SPè¯ï¼åçç½è¯ï¼å°ç½SPè¯ï¼ãæè°çå ¨ç½SPè¯æ¯ç»è¥å ¨å½èå´SPä¸å¡èµè´¨ï¼å°ç½SPè¯æ¯ç»è¥å ¬å¸æå¨ç份çSPä¸å¡èµè´¨ã
以ä¸å 容åèï¼ç¾åº¦ç¾ç§-SP
JAVAç¼åçèå¤©å·¥å ·
//以ä¸å¼å ¥å
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.applet.*;
public class regit extends JApplet implements ActionListener,ItemListener//æ¥å£
{
String s=null;
//对象ç声æ
JLabel labelname,labelpass,labelsxe,labeladdress,labelmail,labelphone;//æ ç¾
JTextField textname,textaddress,textmail,textphone;//ææ¬æ¡
JRadioButton r1,r2;//åéæ纽
ButtonGroup bg;//ç»
JPasswordField textpass;//å¯ç å
JButton buttonregit,buttonreset;//注åæ纽 éåæ纽
JPanel p;//é¢æ¿
String sex;//å®ä¹æ§å«å符串
URL url;//ç»ä¸èµæºå®ä½
BufferedWriter out1,out2;//æµ
BufferedReader in;
//å¸å±æ¹å¼
GridBagLayout gbl;
GridBagConstraints gc;
AppletContext co;//æ¥å£
//åå§å
public void init()
{
//new 对象
labelname=new JLabel("ç¨ æ· å:");
labelpass=new JLabel("ç¨æ·å¯ç :");
labelsxe=new JLabel("æ§å«:");
labeladdress=new JLabel("å°å:");
labelmail=new JLabel("çµåé®ä»¶:");
labelphone=new JLabel("èç³»çµè¯:");
textname=new JTextField(); textname.setForeground(Color.red);
textname.setToolTipText("请å¨è¿è¾å ¥ä½ çç¨æ·å");
textaddress=new JTextField();textaddress.setForeground(Color.red);
textaddress.setToolTipText("请å¨è¿è¾å ¥ä½ çå°å");
textmail=new JTextField(); textmail.setForeground(Color.red);
textmail.setToolTipText("请å¨è¿éè¾å ¥ä½ çE-mailå°å");
textphone=new JTextField(); textphone.setForeground(Color.red);
textphone.setToolTipText("请å¨è¿è¾å ¥ä½ ççµè¯å·ç ");
r1=new JRadioButton("ç·"); r1.setBackground(new Color(,,));//设置é¢è²
r2=new JRadioButton("女"); r2.setBackground(new Color(,,));//设置é¢è²
bg=new ButtonGroup();
bg.add(r1);bg.add(r2);//å å ¥ç»,å®ç°åé
textpass=new JPasswordField();
textpass.setToolTipText("å¨è¿éè¾å ¥å¯ç ");
textpass.setForeground(Color.red);
buttonregit=new JButton("注å"); buttonregit.setBackground(new Color(,,));//设置é¢è²
buttonregit.setToolTipText("ç¹å»æ纽å®æ注å");
buttonreset=new JButton("å¡«å"); buttonreset.setBackground(new Color(,,));//设置é¢è²
buttonreset.setToolTipText("ç¹å»æ纽å·æ°éå");
gbl=new GridBagLayout(); ///////////////////////////////////////
gc=new GridBagConstraints(); //////éç¨GridBagLayoutå¸å±æ¹å¼////////
p=new JPanel();
p.setLayout(gbl);
p.setBackground(new Color(,,));
this.getContentPane().add(p);//å å ¥é¢æ¿
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=2;
gc.gridy=2;
gbl.setConstraints(labelname,gc);
p.add(labelname);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=4;
gc.gridy=2;
gbl.setConstraints(textname,gc);
p.add(textname);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=2;
gc.gridy=4;
gbl.setConstraints(labelpass,gc);
p.add(labelpass);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=4;
gc.gridy=4;
gbl.setConstraints(textpass,gc);
p.add(textpass);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=2;
gc.gridy=6;
gbl.setConstraints(labelsxe,gc);
p.add(labelsxe);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=4;
gc.gridy=6;
gbl.setConstraints(r1,gc);
p.add(r1);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=5;
gc.gridy=6;
gbl.setConstraints(r2,gc);
p.add(r2);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=2;
gc.gridy=8;
gbl.setConstraints(labeladdress,gc);
p.add(labeladdress);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=4;
gc.gridy=8;
gbl.setConstraints(textaddress,gc);
p.add(textaddress);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=2;
gc.gridy=;
gbl.setConstraints(labelmail,gc);
p.add(labelmail);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=4;
gc.gridy=;
gbl.setConstraints(textmail,gc);
p.add(textmail);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=2;
gc.gridy=;
gbl.setConstraints(labelphone,gc);
p.add(labelphone);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=4;
gc.gridy=;
gbl.setConstraints(textphone,gc);
p.add(textphone);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=2;
gc.gridy=;
gbl.setConstraints(buttonregit,gc);
p.add(buttonregit);
gc.anchor=GridBagConstraints.NORTHWEST;
gc.gridx=4;
gc.gridy=;
gbl.setConstraints(buttonreset,gc);
p.add(buttonreset);
/////////////////////////////////////////////
co=this.getAppletContext();
/////////////////////////////////////////////
buttonregit.addActionListener(this);//æ纽äºä»¶ççå¬
buttonreset.addActionListener(this);//æ纽äºä»¶ççå¬
r1.addItemListener(this);//éæ©äºä»¶ççå¬
r2.addItemListener(this);//éæ©äºä»¶ççå¬
textphone.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
//注åæ纽äºä»¶
if(e.getSource()==buttonregit)
{
String s1=textname.getText(); ////////////////////
String s2=new String(textpass.getPassword());////////////////////
String s3=textaddress.getText(); // å®ä¹å符串 //
String s4=textmail.getText(); ////////////////////
String s5=textphone.getText(); ////////////////////
//å¤æ注åèµæ ä¿¡æ¯ æ¯å¦ä¸ºç©º
if(s1.length()==0 || s2.length()==0 ||s3.length()==0 ||s4.length()==0 ||s5.length()==0)
{
int error=JOptionPane.INFORMATION_MESSAGE;
JOptionPane.showMessageDialog(null,"èµæä¸è½ä¸ºç©ºï¼è¯·éæ°æ³¨åï¼","ã温馨æ示ã",error);
return;//å¼¹åºå¯¹è¯æ¡å¹¶è¿å
}
try//åå ¥å°txtæ件
{
in=new BufferedReader(new FileReader("d:\\迷离è§çº¿è天室\\password.txt"));
}
catch(Exception ee){ }
String ss=s1;
try
{
while((s=in.readLine())!=null)
{
if(s.startsWith(ss))
{
JOptionPane.showMessageDialog(null,"ç¨æ·åå·²ç»åå¨ï¼è¯·æ´æ¢ååï¼");
textname.setText("");//设置为空ï¼éæ°è¾å ¥
textpass.setText("");
textaddress.setText("");
textmail.setText("");
textphone.setText("");
return;
}
}
}
catch(Exception ee){ }
///////////////////////////以ä¸ä»£ç å¤ææ¯å¦æåå
{
try
{
out1=new BufferedWriter(new FileWriter("d:\\迷离è§çº¿è天室\\password.txt",true));
out2=new BufferedWriter(new FileWriter("d:\\迷离è§çº¿è天室\\message.txt",true));
}//å建æ件
catch(Exception ee)
{ }
try
{
out1.write(s1+"#"+s2);//å
out1.newLine();
out2.write("ç¨æ·åï¼"+s1);
out2.newLine();
out2.write("å¯ç ï¼"+s2);
out2.newLine();
out2.write("æ§å«ï¼"+sex);
out2.newLine();
out2.write("å°åï¼"+s3);
out2.newLine();
out2.write("çµåé®ä»¶ï¼"+s4);
out2.newLine();
out2.write("çµè¯ï¼"+s5);
out2.newLine();
out1.flush();
out2.flush();//æ¸ çç¼å²
out1.close();
out2.close();
}
catch(Exception ee)
{ }
JOptionPane.showMessageDialog(null,"注åæåï¼");
try
{
String qss="http://localhost/chatroom/chatjiemian.htm";
url=new url(/qss);//è¿æ¥ä¸ç½å
co.showDocument(url);
}
catch(Exception exx)
{ }
}
}
//////////////////////以ä¸ä¸ºå车äºä»¶
if(e.getSource()==textphone)
{
String s1=textname.getText(); ////////////////////
String s2=new String(textpass.getPassword());////////////////////
String s3=textaddress.getText(); // å®ä¹å符串 //
String s4=textmail.getText(); ////////////////////
String s5=textphone.getText(); ////////////////////
//å¤æ注åèµæ ä¿¡æ¯ æ¯å¦ä¸ºç©º
if(s1.length()==0 || s2.length()==0 ||s3.length()==0 ||s4.length()==0 ||s5.length()==0)
{
int error=JOptionPane.INFORMATION_MESSAGE;
JOptionPane.showMessageDialog(null,"èµæä¸è½ä¸ºç©ºï¼è¯·éæ°æ³¨åï¼","ã温馨æ示ã",error);
return;//å¼¹åºå¯¹è¯æ¡å¹¶è¿å
}
try//åå ¥å°txtæ件
{
in=new BufferedReader(new FileReader("d:\\迷离è§çº¿è天室\\password.txt"));
}
catch(Exception ee){ }
String ss=s1;
try
{
while((s=in.readLine())!=null)
{
if(s.startsWith(ss))
{
JOptionPane.showMessageDialog(null,"ç¨æ·åå·²ç»åå¨ï¼è¯·æ´æ¢ååï¼");
textname.setText("");//设置为空ï¼éæ°è¾å ¥
textpass.setText("");
textaddress.setText("");
textmail.setText("");
textphone.setText("");
return;
}
}
}
catch(Exception ee){ }
///////////////////////////以ä¸ä»£ç å¤ææ¯å¦æåå
{
try
{
out1=new BufferedWriter(new FileWriter("d:\\迷离è§çº¿è天室\\password.txt",true));
out2=new BufferedWriter(new FileWriter("d:\\迷离è§çº¿è天室\\message.txt",true));
}//å建æ件
catch(Exception ee)
{ }
try
{
out1.write(s1+"#"+s2);//å
out1.newLine();
out2.write("ç¨æ·åï¼"+s1+"å¯ç ï¼"+s2+"æ§å«ï¼"+sex+"å°åï¼"+s3+"çµåé®ä»¶ï¼"+s4+"çµè¯ï¼"+s5);//å
out2.newLine();
out1.flush();
out2.flush();//æ¸ çç¼å²
out1.close();
out2.close();
}
catch(Exception ee)
{ }
JOptionPane.showMessageDialog(null,"注åæåï¼");
try
{
String qss="http://localhost/chatroom/chatjiemian.htm";
url=new url(/qss);//è¿æ¥ä¸ç½å
co.showDocument(url);
}
catch(Exception exx)
{ }
}
}
if(e.getSource()==buttonreset)//å·æ°éåäºä»¶
{
textname.setText("");
textpass.setText("");
textaddress.setText("");
textmail.setText("");
textphone.setText("");
}
}
//////////////////////////////////////////
//
public void itemStateChanged(ItemEvent ex)
{
if(ex.getSource()==r1)
{
sex=new String("ç·");
}
else if(ex.getSource()==r2)
{
sex=new String("女");
}
}
}
cp是什么意思
CPA是一种广告计费模式,顾名思义按照行为(Action)作为指标来计费,室源什意思这个行为可以是码c码聊注册、咨询、划源通达信大阳线选股公式源码放入购物车等等。天室广告公司和媒体公司常用CPA、聊天livegbs 源码 csdn下载CPC(Cost Per Click)、室源什意思CPM(Cost Per Mille,码c码聊或者Cost Per Thousand;Cost Per Impressions)一起来衡量广告价格。划源
扩展资料:
CPM弹窗形式广告:就是天室当有人访问你这个网站的时候弹出广告的次数来计费(同一个IP用户小时内反复弹出只计费一次。)。聊天最常见的室源什意思就是一些页游的广告。
CPS销售提成形式广告:淘客就是码c码聊凤凰国际棋牌源码这种类型的广告形式,或者一些聊天室软件、划源网页游戏、天室交友平台等。开发源码赚钱这个人通过你的推广链接注册后在里面消费了多少钱然后按一定的比例给你提成。
CPC点击形式广告:就是有人访问你网站时点击你网页上的广告的次数来计费。最常见的全仓买入源码就是这种右下角弹出的小广告,有人点了就得钱。(相同IP用户小时内反复点击只计费一次。)
CPV富媒体形式广告:这种就是在网站上经常能看到的漂浮在网页两边、中间、右下角等地方的广告,这种是按展示量来计费的。(同样的,相同IP用户小时内反复展示的只计费一次。)
百度百科—CPA
2024-11-25 02:04949人浏览
2024-11-25 01:37256人浏览
2024-11-25 01:221405人浏览
2024-11-25 01:13703人浏览
2024-11-25 00:592094人浏览
2024-11-25 00:331405人浏览
1.如何使用apache ignite如何使用apache ignite Apache Ignite内存数据组织是高性能的、集成化的以及分布式的内存平台,他可以实时地在大数据集中执行事务和计算,和
1.怎样在Eclipse中快速查看各种源代码?2.怎么在Eclipse中查看Android API源码以及support包源码怎样在Eclipse中快速查看各种源代码? 在Eclipse中,虽然源
1.openssh哪个源2.SSH框架总结框架分析+环境搭建+实例源码下载)3.有哪些读源代码的软件?4.一种Web端SSH服务webssh2)openssh哪个源 OpenSSH的源是官方的Op