Hi
I have a weird problem. I have a program that loads about 20-30MB worth of arrays using the new operator, the program does some processing, then it uses the delete operator to release the all of the said memory that was allocated. My understanding is the delete operator unallocates memory...
Does anybody know why template code will not compile unless the class declaration and actual class code is in the same file? In other words, if I separate the class into two files .h(header) and .cpp (source file), the code does not run.
Here is an example of that I'm talking about. I've tried...
Hello,
I'm new to Python.
When I open a fresh shell and type:
>>> import random
>>> print random.random()
the code works.
If I put those same two lines into a .py file and try to run the program (both from the command line or from a new window in Python's shell), I get an error message...
Hello,
I've got a run away thread!
I am making a very simple program which accepts connections on post 80 (HTTP), sends an HTTP header and a short webpage, then closes the connection. (Essentially, a very simple web server.) I have a TcpListener in a separate class which is accessed using a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.