#include <QtCore/QCoreApplication>[pre]#include <qdatastream.h>[/pre][pre]#include<windows.h>[/pre][pre]#include<iostream>[/pre][pre]using namespace std;[/pre][pre]#include<QtNetwork/QTcpServer>[/pre][pre]#include<QtNetwork/QTcpSocket>[/pre][pre]#include<QtNetwork/qabstractsocket>[/pre][pre]#include<QtNetwork/qhostaddress>[/pre][pre][/pre][pre]int main(int argc, char *argv[])[/pre][pre]{[/pre][pre] QCoreApplication a(argc, argv);[/pre][pre] quint16 i;[/pre][pre] QTcpServer Server;[/pre][pre] Server.listen(QHostAddress::Any,9393);[/pre][pre] QTcpSocket *ClientSocket=new QTcpSocket;[/pre][pre] ClientSocket=Server.nextPendingConnection();[/pre][pre] QDataStream in(ClientSocket);[/pre][pre] in>>(quint16 & i);[/pre][pre] cout<<*b<<endl;[/pre][pre] return a.exec();[/pre][pre]}[/pre][pre] [/pre][pre]到倒数第四行出现错误[/pre][pre]expected primary-expression before ‘&’token[/pre]