I've programmed a c++ heap structure (left-balanced binary tree) using array. Now I'm searching for the best algorithm to search element that is in this array.
I'm aware that HEAP uses minimal space as a binary tree (no pointers). Now I have a question on practical usage of it - where is it used...
Why is this a problem in Visual Studio 6.0? The problem just crashes (Report Error to Microsoft). The size shouldn't be a problem - I think we've all seen arrays longer than 1000*1000.
Thank you for help!
Well, this's been buging me for quite a while. The structure is like this.
<body>
<form name="something">
<SOME HTML THINGYS)
<script language="JavaScript">
DoSomething(this.formsname); //how to get this' forms name?
</script>
</form>
<SOME HTML THINGYS>
<A BUNCH OF...
As you probably noticed, especially people living outside US or UK, noticed that google.com started working in your native language - German, French, Italian, even Slovenian... Now I'm wondering, how is it possible for them to know what kind of language settings am I using on my PC? Is that...
I'm having problems with java.awt.*;.
I would kindly ask if somebody has a simple application that uses canvas to draw a point at (x,y) position? Please, I'm in a hurry :|
Regards, Rastko
Greetz!
I have a minor problem - i'm doing a fractal programm (only to put it on the screen, not saving it) in Linux and I would like to know if there's any graphics library there with resolution as high as possible and with colors as many as possible.
Please help, I have a deadline ;|
How to do that. My experience show that the type of output depends on ODBC version of Access driver.
The following function (FormatDateTime)...
<%
response.write(FormatDateTime(date(),vbgeneraldate))
%>
... isn't appropriate due to the fact that it doesn't switch day and month at all.
Is there...
Well, I'm just asking if somebody has run into similar problems.
I'll simplify it.
I have first.php with form named "value", and submit which redirects to second.php. On the second, I retrieve the "value" and first 4 chars are removed. I tried both POST and GET, and it's...
first.php
<form>
<loop>
movie[]
</loop>
submit > second.php
second.php
for ($i = 0; $i < count($movie); $i++) {
echo $_POST['movie[$i]']; //this doesn't work
}
What could replace the $_POST['movie[$i]'] and is not $movie[$i]? Thanks for answer.
This is my SQL query:
SELECT * FROM News WHERE (id IN (SELECT news_id FROM LinkingCategoriesNews WHERE news_id = 1) AND active= 1) OR (id = 82) ORDER BY date DESC
I suppose that it should firstly select all News that have ID's in LinkingCategoriesNews. That works, but it is problem that it...
Regards!
I have a server and a service (page) on it, that recieves GET.X and GET.Y coordinate and returns a gif image.
A client page therefore looks simply like this:<some html> <img src="server/service.exe?x=123.23&y=134.63"></some html>.
Now, I don't want for the visitors to see...
What's wrong with my function. It hangs upon usage. Thank you for help!
float calculateSumOfArray(float *table) {
int index;
index = 0;
float sum;
sum = 0;
while ((table+index) != NULL) {
sum = sum + *(table+index);
index++;
}
return sum;
}
My script looks like simply this:
char string[100], *pointerToString;
pointerToString = string;
string = "124.35";
float myFloat;
myFloat = atof(string);
That doesn't work, I don't know why. I have tried to include all the libraries I could imagine, and still nothing. What could be...
Regards!
With a little bit of help of our Tek-tips forums I've managed to transfer data from one server to another. Now I'm trying to transfer images - from server1.com to server2.com.
I already have HTML forms (input="file") that can upload the picture to server2.com, but I want this...
Regards!
With a little bit of help of our Tek-tips forums I've managed to transfer data from one server to another. Now I'm trying to transfer images - from server1.com to server2.com.
I already have HTML forms (input="file") that can upload the picture to server2.com, but I want this...
I'm running MySQL 3.23.49 on my Windows XP machine. Now I'm having troubles with tables names which start with capital letters.
For instance, the following syntax...
CREATE TABLE Test (
Test_field VARCHAR( 30 ) NOT NULL
) COMMENT = 'Test table';
... creates a table named test with Test_field...
Is there a possibility of sending data from PHP using POST. To see, what I mean, I'll try to describe an example.
I have two servers.
On nr.1 database with data and nr.2 with no data.
Now I want to have a page named nr1.com/transmit.php, where I click transmit and page redirects to...
This should be simple!
How could I do Response.Write(""This is a quote of Shakespeare"") so that the output would be "This is a quote of Shakespeare" ? Thank you in advance!
Could somebody write a solution that would get the parameters by reference so that the code:
<?
$string = "this is cool";
function by_reference($something) {
$something = "this is new";
}
by_reference($string);
echo $string;
?>
Would output "this is new" and...
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.