199,112 Archived Topics
Remove Filter ![]() | |
[URL="http://img218.imageshack.us/my.php?image=sketchmh1.gif"][URL=http://img513.imageshack.us/my.php?image=sketchlw8.gif][IMG]http://img513.imageshack.us/img513/8739/sketchlw8.th.gif[/IMG][/URL][/URL] I have something like this : The reallocation of a piece of memory that works like a circular queues I've made a sketch explaining this ,I hope , very clearly I just need a clue,a tip,something that will get me started , because right now I'm stucked Thx | |
I was experimenting with the nested list example in thread: [URL]http://www.daniweb.com/techtalkforums/post246791-72.html[/URL] and was trying to search a nested list like that: [code]nested_list = [1 ,'Dick', 2, ['Mary', 7, 9, [700, 777, 'Paul']], 13] if 'Paul' in nested_list: print 'found Paul' else: print 'Paul not found' [/code]It always tells me that … | |
I want to make a Tkinter button respond to a left and right mouse click differently. How can I do this? | |
How do you best swap the key:value pair of a dictionary? | |
Hi everyone I have one master table with the following structure incm_id Category SubCategory 1001 Expenses A 1002 Expenses B 1003 Income C 1004 Income D I have a child table where i am capturing amount value for the above table and structure is something like id fk_incm_id Amount 10001 … | |
Here is the code that I have written please check what is wrong, as I am not able to display Images on canvas. I am trying to create game. package PuyoPuyo; import java.awt.Canvas; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.Toolkit; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JButton; import javax.swing.JFrame; import … | |
Hi All :mrgreen: , was mucking about with a small programme I have which makes a triangle pattern when entering in a number. It uses nested For loops. I now want to create the same thing using functions as im only just beginning to learn the C language. I have … | |
im writing a program that calculates the users age when the current date is entered and the birth date is entered ive been thinking for about 2 hours and i cant figure out how to calculate the age this is what i have so far, im stuck at calcYears cuz … | |
I made an application in vc++ on VS2005, but it doesn't work on non-development PCs. I did the same program on vs 0.6 and it worked very well. but perhaps there is another way to do it, say with a setup or something of the kind? | |
Hey, I've got a sendmail problem on a dedicated server, shall I post the configs or what do you suggest? Problem is, that all coming in via smtp is sent through fine, but messages I try to send via PHP mail() are not going through, error in root is "deferred: … | |
Ok that might sound stupid, but Id like to know how to get box with error message.... I dont know how to explain what i realy want so here is a screenshot. [IMG]http://www.trendmicro.com/vinfo/images/worm_cydog_a_img1.gif[/IMG] This is error box...How to make it... Can you send me link with sources od this boxes … | |
Hey everyone, I hope you are having a nice Saturday. I have a question about a guestbook. Actually mine has been down for aobut 8 months because I don't know how to install a new one. I was getting a lot of spam and it didn't have the option to … | |
What could I include in this function: [code] MessageBox( NULL, "Dolgcas s tabo, ko si tok zabit...grem js", "Message", MB_OK | MB_ICONINFORMATION );[/code] what can I insert instead of frist NULL? [php] MessageBox( NULL (here what could I insert instead of NULL), "Dolgcas s tabo, ko si tok zabit...grem js", … | |
Here is some more code that I tried, but failed to get to work. Anybody know what I'm doing wrong? I put in some displays to see if the onChange command was trying to execute the function, and it was.:eek: [ TAG !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <%@LANGUAGE="Javascript"%> <html> <head> <title>Load Dropdown</title> <script language="JavaScript"> … | |
I have a vb.net app. running currently with internet explorer only browsers. I constructed some texts based on the inputs from the user and need to (a) save it on the client file system (b) send the saved file to the printer attached to the client system for printing. The … | |
:?: How do you put a bitmap (or possibly jpeg) image on the screen in Turbo C++ ? I just want to display the picture on the screen for about 15 seconds or so and then move on to another screen. Please Help. | |
[COLOR=#0000ff]errr..juz to let u know how my design looks like (these below are the names given to the buttons in case u are wondering) btn11 btn12 btn13 btn21 btn22 btn23 btn31 btn32 btn33 btnPlayer1 btnPlayer2 using[/COLOR][COLOR=#000000] System;[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] System.Collections.Generic;[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] System.ComponentModel;[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] System.Data;[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] System.Drawing;[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] System.Text;[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] System.Windows.Forms;[/COLOR] [COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] … | |
Anyone interested in making a dark humored, post appocyliptic, Isometric RTS with me , kinda like fallout tactics but on a big scale (hundreds of guys) ive done some concept art and have planned all the storyline i just need help actually making it. Any goood books that come with … | |
i am using a couple of methods to calculate the distance between any 2 points on the earths surface. the methods are the law of cosines, and the haversine formula. the law of cosines formula uses the C++ functions acos, sin and cos, all found in math.h: acos(sin(lat1).sin(lat2)+cos(lat1).cos(lat1).cos(long2−long1)) the haversine … | |
Does anyone know , how to do the conversion from Ascii to long double? Please provide one example. Many Thanks. | |
Hi, I did get the problem fixed with my "break" not working properly but now my ValueError will not work properly. If you enter a number that is not a floating number it should create a value error(as a matter of fact it did before I fixed my other problem … | |
HI EVERY ONE I want TASM code to show the real time in the screen in a sample way thanks :-| | |
Here is VB6 Code:[code=VB]Attachement = objMail.Attachments.Add("D:\message.doc.pgp")[/Code] I am trying to automatically attach a file with outlook email......objMail.Attachments.Add method is unable to read the file "message.doc.pgp" very first time when the code execute.....On second n later executions it start recognizing the file n work fine but y not the first time. … | |
Hello everyone. I always run Perl scripts on a web server with [code] #!/usr/bin/perl -T [/code] at the top (i.e. taint mode on). I try to do the same when testing scripts on my local machine and this often works fine. But somtimes (when running from the command line) I … | |
Does anyone knows how can I count how many digits are there in a binary number? Any ideas??? | |
I'd like a free tool that I can give different pieces of information and have it go and peruse my code base and generate a report. Is there such a tool out there? I'm thinking something along the lines of a spider that can fill in form data (when instructed) … | |
Can anyone please give me some links for some video tutorials for Delphi. I browsed a lot(google), and only found sites, which are paid. Even a Delphi (amateur) tutorial which is not hard to understood would help me. thanks | |
Dear All I admit that I am new to this all. I am trying to run a simple login function. I have two jsp files, login.jsp and welcome.jsp and I have one servelet login.java My project name is onjava (I am doing this from an example from the web). My … | |
hello!!! i need a tutorial or source code of any graphical programm (animation is preferred) in c++ using borland turbo c compiler v3. i shall be very thank full to any one who help me in this regard. thanks! | |
when I initialize the array in this way: const int size = 10; int myArray[size]; it works well. But I have to initialize it in this way: const int size =pow(2, Depth()+1)-1; int myArray[size]; in this case it throw an error which is "expected constant expression" What should I do??? … | |
I would like to be able to close one of my layers which is in a div tag. I have used css to specify an image in this layer and it will have a link in it aswell. I would like to have another text link that allows the user … | |
Hi everybody, for example I have such a tree in c++: 23 / \ 1 45 \ / \ 2 31 52 \ \ 3 234 \ 5 I can print this tree in this way by using breadthFirst-level method: 23, 1, 45 2, 31, 52 3, 234 5 But … | |
How do you put a bitmap (or possibly jpeg) image on the screen in Turbo C++ ? I just want to display the picture on the screen for about 15 seconds or so and then move on to another screen. Please Help. | |
Hi, I am trying to extend my "Student with the best GPA" program so that it allows the user to sort a file of students based on gpa, name, or credits. The program needs to prompt for the input and output files and also the field to sort on (gpa, … | |
I don't know if this too OT but so many people ask.I just got Sam's C++ in 21 days and it's great.Don't let the name fool you because the book is huge and I don't think I'll finish it in 21 days;). This is the best C++ book I have … | |
I have designed my own version of cout called gcout that works like cout but in graphics mode. But I don't know the idea behind how to make a caret (or a cursor that blinks). Does this caret thing have to do something with threading in turbo c++? If so … | |
[COLOR=blue]Write a program that, when run, will print out its source code. This source code, inWrite a program that, when run, will print out its source code. This source code, in turn, should compile and print out itself. turn, should compile and print out itself.[/COLOR] :p | |
I am having a problem getting my "break" to work correctly in this program. Can anyone help me see what I am doing wrong? This is my program: [code]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self): … | |
I need help with my scheduling and I need a block of code to compare time . | |
Just have small program to practice with Calendar. However I come accross something unusual. Once you set date for 1st April 2007 or 1st June 2008 for example you get wrong number of the week. example bellow show code set to date 1st June 2008 [code] import java.util.*; import java.text.DateFormat; … | |
I try read a story text file using c. the problem is i want one paragraf in one variabel. i am confuse how much i should alocate the buffer size? [code] #include <stdio.h> int main() { char buf[255]; <<HOW MUCH SHOULD WE ALOCATE TE BUFFER? FILE* fp = fopen("somefile.txt","r"); if( … | |
Hey, I came across this question, this is the 1st time I write a XML file, and I have no idea if my work is correct, or if thats how its supposed to be.......please give me your feedback: Consider the following XML file that describes a pizza: An order for … | |
I want to save a file on client machine. i even used the commnad "Path.GetTempPath()" but it gives the address of server's temp folder. can someone help me????? | |
Hi to all! I would like to ask you which coding convention do you use? Regards, | |
ok here I want to know how to make colorated output in C and C++... For example: I want to print this string "zelena". The color must be green. Now how to get green output using [B]printf() [/B]in C and [B]cout << "zelena"; [/B] | |
I need some scripts to finish my site, anybody cn help me get them?? 1- Add comment script. 2- print this topic script. 3- send this topic to a friend script. 4- vote script. I will be thankfull if any body helped me in this | |
Hello ladies and gents, Was wondering if any of you could help me out with the following, sometime ago I had to reinstall MS V++ EE and ever since then, when I enter for instance 'std::' or 'cin.' I don't get a list with all the possibilities it has, normally … | |
I'm working on calendar application, similar to one provided with instalation of Tomcat. There you have class1 with methods which provide data for class 2. I have no problem to compile class1, but getting errors while compiling class2. This apply also to Tomcat examples if you try to recompile them. … | |
Hey Everybody, I'm thinking about starting to learn Ruby and then RoR. Could anyone recommend me with any good books, sites, tutorials, etc. I'm pretty new with programming and coding, and I don't really know any other languages except a little HTML here and there. Thanks, Tom | |
I'm using a PHP script called rwf_mail.php ([url]http://www.robertswebforge.com/scripts/rwf_mail.shtml)[/url]. It creates a form that can be emailed. It consists of the php file and a plain html file to display the form. So in the HTML page, I have code similar to: [code=HTML]<input size=50 name="NAME"><br>[/code] The PHP script pulls the $fields{"NAME"} … |
The End.