Search Results

Showing results 1 to 32 of 32
Search took 0.01 seconds.
Search: Posts Made By: meiyantao
Forum: C++ Nov 18th, 2007
Replies: 2
Views: 854
Posted By meiyantao
Forum: C++ Nov 18th, 2007
Replies: 2
Views: 854
Posted By 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...
Forum: Python Nov 16th, 2007
Replies: 1
Views: 6,857
Posted By meiyantao
Oh,I konw it. Just the same as shell;)
#!/usr/bin/python
[……]
Forum: Python Nov 16th, 2007
Replies: 1
Views: 6,857
Posted By meiyantao
Hello,everybody!
I write my first Python script in file Fibonacci.py in Linux as the fallowing:

a,b = 0,1
while b < 10:
print b
a,b = b,a+b
When I want to run it,I must input these...
Forum: C++ Nov 3rd, 2007
Replies: 4
Views: 1,098
Posted By meiyantao
Yes,I am so sorry for that I haven't found it.
Just beacause it didn't note me find the errors in head file but in the .cpp file:'(
Forum: C++ Nov 3rd, 2007
Replies: 4
Views: 1,098
Posted By 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!
Forum: C++ Aug 22nd, 2007
Replies: 2
Views: 4,134
Posted By meiyantao
Thank you very much!
But this page I have too,and I had read it.
Some important idears of my code referenced it,for example the "link[]". But my avltree's balance flag is different from it,so I...
Forum: C++ Aug 21st, 2007
Replies: 2
Views: 4,134
Posted By 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...
Forum: C++ Jun 13th, 2007
Replies: 11
Views: 2,036
Posted By meiyantao
This is a initialization member list which is always in the constructor to initialize the class' data member when it is declaring. There's some different from initializing it in the constructor. The...
Forum: C++ Jun 12th, 2007
Replies: 11
Views: 2,036
Posted By meiyantao
Ah,this thread is not about how to design the password,but how about the C++ 's safty. C and C++ can not prevent the memory from overflowing,so I want to know how to defend it by myself.

At...
Forum: C++ Jun 11th, 2007
Replies: 11
Views: 2,036
Posted By meiyantao
Forum: C++ Jun 11th, 2007
Replies: 11
Views: 2,036
Posted By 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)


#include...
Forum: C++ Jun 9th, 2007
Replies: 3
Views: 3,176
Posted By meiyantao
OK ,I have solved it.
Put the array initialization into the constructor {}, then everything is OK.
So,C++ don't allow to initialize the array data member in member initialization list.
Forum: C++ Jun 9th, 2007
Replies: 3
Views: 3,176
Posted By meiyantao
Yes,thank you! I have understood.

I also have a new question. Does the member initialization list can initialize an array like this:

1.class BinaryNode
2. {
3. int element;
4. ...
Forum: C++ Jun 9th, 2007
Replies: 3
Views: 3,176
Posted By meiyantao
Hi,sir,please look at this code.

#include <iostream>
using namespace std;

class A{
private:
class B;
public:
int out(int x){
Forum: C++ Jun 6th, 2007
Replies: 14
Views: 1,438
Posted By meiyantao
I believe that it is a good recommendation to stop using classes.
But I want to prictice OOP with C++ as well as implement the tree.

I want to write ALV tree whic will inherit form the...
Forum: C++ Jun 6th, 2007
Replies: 14
Views: 1,438
Posted By meiyantao
:sweat: En,this,that......English sometimes is more important than C++,Ha!

But I have another intresting questions:
What's the differences between struct and class(all member is public)?
Look...
Forum: C++ Jun 6th, 2007
Replies: 8
Views: 1,637
Posted By meiyantao
I will try to do it,thank you very much!
Forum: C++ Jun 6th, 2007
Replies: 14
Views: 1,438
Posted By meiyantao
I am sorry for that I can't understand what's this sentence's meaning? My English is poor.
Can you tell me what is your opinion in whether use "NULL" in C++?

Thank you very much !
Forum: C++ Jun 6th, 2007
Replies: 14
Views: 1,438
Posted By 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!
Forum: C++ Jun 6th, 2007
Replies: 47
Views: 7,479
Posted By meiyantao
I like qt which is a C++ GUI class libarary. Qt's assistant may be a good tutorial for you!
Good luck!
Forum: C++ Jun 5th, 2007
Replies: 8
Views: 1,637
Posted By meiyantao
[/QUOTE]

Yes,thank you.It's beautiful.Your code is most the same as Mr Weiss's. Ha,I am trying to implement all of his book,but I can't write them without looking his code.
Forum: C++ Jun 5th, 2007
Replies: 8
Views: 1,637
Posted By meiyantao
Forum: C++ Jun 5th, 2007
Replies: 8
Views: 1,637
Posted By meiyantao
This codeblock comes from Mr Weiss's book "Data Sturucture and Algorithm Analysis in C++"(Third Edition). I have some questions about it.

/**
*This is a member function from the BinarySearchTree...
Forum: C++ Jun 3rd, 2007
Replies: 7
Views: 1,480
Posted By meiyantao
Yes,thank you.I have fixed it.
I know not Dev-cpp could also used well in Linux.
In windows, I consider that it is a kind of GNU compiler which used gcc3.4 version.

I come from China,so my...
Forum: C++ Jun 3rd, 2007
Replies: 7
Views: 1,480
Posted By meiyantao
GUN should not pass the command:
g++ -o main main.cpp
like you said.

I also love GUN linux compiler than windows.Isn't Dev-cpp also a kind of GUN compiler?

Thanks
Forum: C++ Jun 3rd, 2007
Replies: 7
Views: 1,480
Posted By meiyantao
Thanks to you for help me!

Now the codes should works well. But I have another question: How to make my ABC.h work like the head files from the standard library?

When I compile my code,I must...
Forum: C++ Jun 3rd, 2007
Replies: 7
Views: 1,480
Posted By meiyantao
//I'm sorry for that the ABC.cpp file is the following file,not that I
//posted. It's a error when I copy it. I'm sorry for that!
#include "ABC.h"

char & ABC::read_a(){
return a;
}
...
Forum: C++ Jun 3rd, 2007
Replies: 7
Views: 1,480
Posted By 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.

//This file named...
Forum: C++ May 21st, 2007
Replies: 9
Views: 2,591
Posted By meiyantao
//I am sorry for that I hanvn't notice the char ' ' in your program. Now I rewrite my code in the following:
Forum: C++ May 19th, 2007
Replies: 9
Views: 2,591
Posted By meiyantao
//This is my code to solve your question.Want a go?
#include <iostream>
using namespace std;
int main()
{
int num;
cout<<"Enter a factorial ";
cin>>num;
for(int...
Forum: C++ May 19th, 2007
Replies: 54
Read Me: C++ Books
Views: 81,927
Posted By meiyantao
<<Professional C++>> is also a good book!
Showing results 1 to 32 of 32

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC