Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~11.9K People Reached
About Me

student

Interests
C++ and Linux
Favorite Forums
Favorite Tags
Member Avatar for Dave Sinkula

With regard to C++ books, I'll just echo the advice here .The following books are recommended; read them in mostly the order listed." Accelerated C++ " Andrew Koenig & Barbara Moo " The C++ Standard Library " Nicolai Josuttis --- a "must have" " Effective C++ ", " More Effective …

Member Avatar for shahidali6
11
10K
Member Avatar for meiyantao

Hello,everybody! I'm writing a LAN communication programming,and I need to transport a file between different host computer. I know that the TCP is a kind of stream-oriented connection.But look at the fallowing codes: [code=cplusplus] void TripPlanner::sendRequest() { QByteArray block; QDataStream out(&block, QIODevice::WriteOnly); out.setVersion(QDataStream::Qt_4_1); out << quint16(0) << quint8('S') << fromComboBox->currentText() …

Member Avatar for meiyantao
0
181
Member Avatar for meiyantao

Hello,everybody! I write my first Python script in file [B]Fibonacci.py[/B] in Linux as the fallowing: [CODE]a,b = 0,1 while b < 10: print b a,b = b,a+b[/CODE] When I want to run it,I must input these command in the command line: > python Fibonacci.py I want to know what should …

Member Avatar for meiyantao
0
115
Member Avatar for meiyantao

I am sorry for that I have solved it, just missing a ";" when I define the class. I have re-edited this thread. So sorry for flippancy!

Member Avatar for meiyantao
0
208
Member Avatar for meiyantao

Hello! I want to implement a avltree using C++,and I have do most of it,except the remove() algorithm. My question is when should I rotate the tree in remove(). I hope that any body can represent the situation for me using the Pelple's language,because the implemented code depend on the …

Member Avatar for meiyantao
0
147
Member Avatar for meiyantao

Hi,sir.I encounterred a person who said that C++ is an unsafe language.I try the follow code ,but when I input an non-int type,the program will fall in a bad loop.(gcc4.1 in Linux) [CODE] #include <iostream> #include <string> using namespace std; class bot { private: int password; public: bot():password(567){} virtual ~bot(){}; …

Member Avatar for Narue
0
246
Member Avatar for meiyantao

Hi,sir,please look at this code. [code] #include <iostream> using namespace std; class A{ private: class B; public: int out(int x){ return outB(x)->a; } B * outB(int x); private: B* root; class B{ int a; B(int init_a) :a(init_a){} friend class A; }; }; A::B* A::outB(int x){ root = new B(x); return …

Member Avatar for meiyantao
0
175
Member Avatar for meiyantao

This codeblock comes from Mr Weiss's book "Data Sturucture and Algorithm Analysis in C++"(Third Edition). I have some questions about it. [code=c] /** *This is a member function from the BinarySearchTree class. *And It try to find whether there's a element equal to x in *the binary search tree. */ …

Member Avatar for WolfPack
0
165
Member Avatar for ongxizhe

Hey all. Does anyone knows where to get some good tutorials of programming C++ Graphical User Interface? If so, please kindly send a PM and include your contact or reply here. Your help willl be appreciated. Thank you. Xizhe

Member Avatar for ongxizhe
0
373
Member Avatar for meiyantao

I don't ensure whether "0" or "NULL" is better to be an empty point's value in C++. Could anybody can tell me,and why? Then how about it in C, why? Thank you!

Member Avatar for Narue
0
139
Member Avatar for meiyantao

I don't know how to sparate the interface and their implement.And I need some help from you.For example,I hope anybody can tell me,how to make these three files to work well. [CODE] //This file named main.cpp #include <iostream> #include "ABC.h" using namespace std; int main(void) { char y='y'; char e='e'; …

Member Avatar for meiyantao
0
167
Member Avatar for jenymaru08

how to make a program which the out put is: enter n=5 [code] 1 2 3 4 5 4 3 2 1 2 3 4 5 4 3 2 3 4 5 4 3 4 5 4 5 [/code] this is the code i use but an error occur [code=c] …

Member Avatar for meiyantao
0
178