Search:
Type: Posts; User: deyili
Search :
Search took 0.01 seconds.
Qt is a powerful framework, you can develop whatever you want with it.
As Qt isn't designed for games, so It's not so productive as some game frameworks, such as XNA of microsoft.
you will get endless loop if the input isn't integer.
add "cin.ignore(); " after "cin.clear();"
good bye, Enjoy your trip home。
I think C# is easier to start with.
If you are not using MFC or .NET, you should start from socket。
what do you have in your driver ?
It depends on what features will be put in this application.
WPF(Silverlight) forms are represented with XAML, XAML is actually a kind of xml.
you could put the line into a STL string, and call its member function "find()" .
firstly:
obj_array = new CEntity[map_size];
you store object in array instead of point, so pls change into this:
obj_array = new CEntity*[map_size];
Secondly:
as for the compiling error,...
and if you want build a server, here is an example for you:
1 #include "unp.h"
2 int
3 main(int argc, char **argv)
4 {
5 int listenfd, connfd;
6 pid_t childpid;
7 ...
As far as i know, Actionscript of flash has some built-in class for socket programming.
such as class "Socket" in namespace "flash.net.Socket", here is an example:
package {
import...
There is a system call for changing wallpaper? I don't know yet.
yes, you are right. but how do we do when global data sharing is inevitable ?
vecvec[0].erase(it);
break;
if you are using Vc++, this may help you.
http://support.microsoft.com/default.aspx?scid=kb;en-us;237870
you can use _MFC_VER and _DEBUG
examples:
#if _MSC_VER < 1202
//EVC 4.0 complier is cross 1200 - 1202
#else if _MSC_VER >= 1400
//Visual C++ 2005 complier is 1400
...
add "extern classobject *var1;" in file2.cpp will be ok.
using global variables in cpp is a very bad behavior!!
you should use the singleton pattern instead.
template <typename T>
class Row
{
public:
const T& operator []( int i);
//..........
};
template <typename T>
December 21st, 2010 02:30 AM
you miss the line: using namespace std;
December 21st, 2010 02:17 AM
It's better to split code into header and source files!
Click Here to Expand Forum to Full Width