当前位置:首页 » 操作系统 » c高仿qq源码

c高仿qq源码

发布时间: 2022-08-11 08:58:07

1. 求类似QQ的聊天软件 源代码 (最好是java的,C/C++也行)

很好很强大
你要的网络上没有,去csnd下载频道找吧

2. 请问那位大佬有c语言的qq机器人的代码或教我一下怎么写————真的感激不尽

//下面是冒泡排序算法
//输入待排序的数
for(int i=0; i<10; i++)
scanf("%d", &a[i])
//输出换行
printf("\n");
//冒泡排序
for(j=1; j<10; j++)
for(ij=0; i<10-j; i++)
if(a[i]>a[i+1])//按从小到大
{t=a[i];a[i]=a[i+1];a[i+1]=t;}//把小数交互到前,大数交换到后
//输出排序后的结果
printf("商品销售额排序之后:")

3. 求用C语言写一个类似QQ的聊天工具的源码

你为什么要用C语言编写聊天工具呢?直接下载一个使用就行了。
QQ聊天工具是腾迅公司好多员工日夜奋战的结果,那能让你一个人就能制作出来像它那样的。
大概过程应该是:用C语言实现网络中的文字信息交换,同时还要有数据库系统支持,再者要实现与Windows平台有很好的兼容性。

4. 用C语言编写一个类似QQ的聊天程序,谁能帮我写下源代码

我一个学软件工程的同学的qq:362226180
或者这个:284761810

5. 用C#制作QQ的源代码

到我空间里去吧,有篇文章《如何实现类似QQ的程序界面》,主要用到了Button控件和ListView控件。
可以到网络上搜索“牙刷也刷牙”点击第一个就找到我的空间了。【 在:“网页”里搜索“牙刷也刷牙”】
下面是我的空间的连接:
http://hi..com/%D1%C0%CB%A2%D2%B2%CB%A2%D1%C0

6. 如何用c语言编写QQ聊天程序(源代码)

1、首先,我们编写C语言的头文件#include <stdio.h>。

7. 谁能给我一个用java写的山寨QQ的源代码

这个东西做起来并没有什么难度,关键点是通信那一块。
建议消息用服务器转发的方式。每个登陆用户与服务器采用短连接通信。
其他没什么重要的了,你自己努力一下,2天大概就能做的很像样了。如果做的过程中有问题,可以问我。

如果你想做到T讯那样,就不现实了,倒不是说功能多,只因为他的通信方式要复杂很多。比如说跨局域网的UDP通信,那是很复杂的。你还要理解网络,理解路由器,才可以哦。

8. 如何用易语言编写仿聊天软件

易语言迷你QQ高仿源码例程程序结合易语言扩展界面支持库和易语言模块,高度模仿实现QQ简易功能。
本易语言例程还使用到易语言互联网支持库,易语言多线程支持库,正则表达式支持库。

9. 求一个山寨qq的源代码,要java语言的~谢谢

简单得很的那种要不要?就像用来应对考试一样。

importjava.io.*;
importjava.net.*;
importjava.util.*;
publicclassChatServer{
booleanstarted=false;
ServerSocketss=null;
List<Client>clients=newArrayList<Client>();
publicstaticvoidmain(String[]args){
newChatServer().start();
}
publicvoidstart(){
try{
ss=newServerSocket(8888);
started=true;
}catch(BindExceptione){
System.out.println("端口使用中....");
System.out.println("请关掉相关程序并重新运行服务器!");
System.exit(0);
}catch(IOExceptione){
e.printStackTrace();
}
try{
while(started){
Sockets=ss.accept();
Clientc=newClient(s);
System.out.println("aclientconnected!");
newThread(c).start();
clients.add(c);
}
}catch(IOExceptione){
e.printStackTrace();
}finally{
try{
ss.close();
}catch(IOExceptione){
e.printStackTrace();
}
}
}

classClientimplementsRunnable{
privateSockets;
privateDataInputStreamdis=null;
privateDataOutputStreamdos=null;
privatebooleanbConnected=false;

publicClient(Sockets){
this.s=s;
try{
dis=newDataInputStream(s.getInputStream());
dos=newDataOutputStream(s.getOutputStream());
bConnected=true;
}catch(IOExceptione){
e.printStackTrace();
}
}

publicvoidsend(Stringstr){
try{
dos.writeUTF(str);
}catch(IOExceptione){
e.printStackTrace();
}
}

publicvoidrun(){
try{
while(bConnected){
Stringstr=dis.readUTF();
System.out.println(str);
for(inti=0;i<clients.size();i++){
Clientc=clients.get(i);
c.send(str);
}
}
}catch(EOFExceptione){
System.out.println("Clientclosed!");
}catch(IOExceptione){
e.printStackTrace();
}finally{
try{
if(dis!=null)dis.close();
if(dos!=null)dos.close();
if(s!=null){
s.close();
//s=null;
}
}catch(IOExceptione1){
e1.printStackTrace();
}
}
}

}
}
客户端,开两个就能聊了……
importjava.awt.*;
importjava.awt.event.*;
importjava.io.*;
importjava.net.*;
{
Sockets=null;
DataOutputStreamdos=null;
DataInputStreamdis=null;
privatebooleanbConnected=false;
TextFieldtfTxt=newTextField();
TextAreataContent=newTextArea();
ThreadtRecv=newThread(newRecvThread());
publicstaticvoidmain(String[]args){
newChatClient().launchFrame();
}
publicvoidlaunchFrame(){
setLocation(400,300);
this.setSize(300,300);
add(tfTxt,BorderLayout.SOUTH);
add(taContent,BorderLayout.NORTH);
pack();
this.addWindowListener(newWindowAdapter(){
@Override
publicvoidwindowClosing(WindowEventarg0){
disconnect();
System.exit(0);
}

});
tfTxt.addActionListener(newTFListener());
setVisible(true);
connect();

tRecv.start();
}

publicvoidconnect(){
try{
s=newSocket("127.0.0.1",8888);
dos=newDataOutputStream(s.getOutputStream());
dis=newDataInputStream(s.getInputStream());
System.out.println("connected!");
bConnected=true;
}catch(UnknownHostExceptione){
e.printStackTrace();
}catch(IOExceptione){
e.printStackTrace();
}

}

publicvoiddisconnect(){
try{
dos.close();
dis.close();
s.close();
}catch(IOExceptione){
e.printStackTrace();
}

}

{
publicvoidactionPerformed(ActionEvente){
Stringstr=tfTxt.getText().trim();
tfTxt.setText("");

try{
dos.writeUTF(str);
dos.flush();
}catch(IOExceptione1){
e1.printStackTrace();
}

}

}

{
publicvoidrun(){
try{
while(bConnected){
Stringstr=dis.readUTF();

taContent.setText(taContent.getText()+str+' ');
}
}catch(SocketExceptione){
System.out.println("bye!");
}catch(IOExceptione){
e.printStackTrace();
}

}

}
}

10. 使用C或者C++编写一个类似QQ的局域网/因特网聊天软件。

你邮箱多少,我发给你 。我有一套非常好的类似于QQ的源代码

热点内容
如何导出薯仔缓存视频 发布:2024-04-30 14:39:36 浏览:469
图论环的算法 发布:2024-04-30 14:39:35 浏览:640
算法课项目 发布:2024-04-30 14:23:34 浏览:244
路由器无线密码从哪里看 发布:2024-04-30 13:41:07 浏览:764
安卓由哪个公司提供 发布:2024-04-30 12:27:03 浏览:417
服务器2个cpu的内存如何安装 发布:2024-04-30 12:19:02 浏览:329
如何搭建outlook服务器 发布:2024-04-30 10:46:50 浏览:638
美图忘记密码手机如何刷机 发布:2024-04-30 10:45:43 浏览:193
sql字符设置 发布:2024-04-30 10:39:03 浏览:308
androidram 发布:2024-04-30 10:36:06 浏览:281