199,114 Archived Topics
Remove Filter ![]() | |
Hey all, I'm trying to use a 3 element array and keep it sorted. So when i get a new value that should be put at the start of the array, I shift values down in the array like this: [CODE]array[2] = array[1]; array[3] = array[2]; array[1] = result;[/CODE] However, … | |
Is there any way through which I can split a single string into substrings with 20 characters each. The first string should contain first 20 characters. The seconds string should contain the next set of 20 characters and so on. Is it possible to do what I'm thinking? | |
If I create a database that has 3 fileds per record; [I]String1[/I], [I]String2 [/I]& [I]ResultString[/I]. I want the user to enter in the first 2 strings then the program creates ‘[I]ResultString[/I]’ by adding the String2 to String 1 itself. Ie if you enter Big as [I]String1 [/I]and Cat as [I]String2 … | |
I have written a program, it uses a lot of replace funtions with huge amounts of texts. Resultingly, It takes hell lot of time to operate. Is there any way I can increase its speed? | |
[B]hi everybody im new here and new in vb also and i need some help to learn vb.can i find somebody to help me ? plz.thanx.[/B] | |
![]() | hi again i have been learning about algorithm solving and designing from the website [URL="http://www.ece.uci.edu/~chou/py02/python.html"]here[/URL] i sort of understood the first code but before i went on any further i wanted to understand it the code is [ICODE]def InsertionSort(A): for j in range(1, len(A)): key = A[j] i = j … |
OK im ok with some baisc codeing but i cose to go a little farther and write some more in detailed stuff so i started making a few fuctions. iv done this once before, but i cant remeber what i did diffrent. The function takes a file and reads each … | |
Does CWnd::GetClientRect() include the toolbar region? Whenever i use InvalidateRect(), i pass the entire client region for repaint, inorder to retain the client window contents : [code] InvalidateRect(NULL); [/CODE] But this affects my toolbars ( my application has two toolbars. ) - they disappear. I think it is because of … | |
I have tried several things, but I just can't get this to work. What I need is a snippet which scans a program for value X, and then simply assigns a varible within the python script to the X value. I'm new to Python, but not to programming. Please be … | |
Hello, I am trying to find out the folowing question: For what integer values of N is 10N lg N > 2N^2 ? a) 0 <= N <= 12 b) 1 < N <= 12 c) 0 < N < 12 d) 0 < N < 13 I think the … | |
Hi all! As a person who has not a Computer Science degree(I am a poor web developer!),but having much desire to learn as much as I can about CS topics,I have a (maybe easy ) question about the recursive algorithm that solves the "Towers of Hanoi" puzzle. I can understand … | |
Hi, I have a derived attribute in my table and I'm sorting the table in the descending order of this attribute. My query should retrieve all the tuples which have the maximum value for this derived attribute. If I use SELECT TOP 1, I'm only getting one of the required … ![]() | |
Hello... is there any way of making java listen or capture an F-key input? i mean, like, if the user presses F5, a new panel will come up and that sorts of things... thnx | |
Hi, my jsp page uses sun.net.smtp.SmtpClient to send email. It worked fine until the hosted location was moved to another server. Now it generates the sun.net.smtp.SmtpProtocolException and the hosting company can't find what's wrong with it so I'm here hoping somebody can help. The hosting company tried sending email from … | |
I have been having significant trouble starting this project where i need to create a databse library to access an sql database. I am working in vs2008 and I should be able to just edit my app.config file and use my ODBC connection drivers. If anyone could help explain this … | |
HI everybody, i'm a final year student, doing an SMS shopping system, and i intend to make it as open source so that everyone can benifit from that. the system should allow the users to buy products from a vendor, by sending sms, currently i am working on php, but … | |
Was wondering if you could take a look at the attached code. I have a form that is making a call back to the database and populating search form for parts. As you type in parts, it renders choices (screenshot2 attached). You can then click on a choice and it … | |
Ok ive actually got a bootstrapper going and can display text using int10h using the BIOS interrupts but im wondering is this the only way to tell the computer what to do at the lowest level, by communicating with the BIOS service interrupts, how does windows and stuff do it. | |
I have a bit of code my instructor sent me as an example to look at and it is giving me approx 100 errors when I compile it all of the form 'illegal character: \172' or 'illegal character: \8224'. This is a new one on me, was wondering if anyone … | |
Hi, I am trying to get Python to pick random letters from a given list. However I don't want any repetitions, I just can't seem to figure out how to skip on letters already chose. Any help would be greatly appreciated. Here is what I have so far [code] let … | |
I am writing some code just for fun and I have a question about class objects. Lets say I have [CODE] class Alpha with member functions getBeta getCharlie getDelta and so on now inside main when I want to make calls to these functions is it necessary to create an … | |
hi i want to upload photos. i have a upload button when the upload button is clicked a window will pop out and uploading image option are there. when the close window buttton is clicked in the pop up,i want to close the pop up and the path should be … | |
Hi all! Im making an upload script that uploads an image file, saves it and saves a thumbnail copy in a different directory. I have tried a couple of scripts and have found one which I think will work nicely but i cannot get it working. The script is below: … | |
Hi I'm trying to generate a random number betwen any numbers (eg from 1 to 100) and I've tried this code: [CODE=c]#include<stdio.h> #include<math.h> #include<time.h> #include <stdlib.h> int NumAleatori(int max) { int num; num=((int)ceil(((double)rand()/RAND_MAX)*(max+1)))%(max+1); return num; } void main () { int N,a; srand( (unsigned)time( NULL ) ); printf(“Enter an integer:\”); … | |
I have a list that uses Scriptaculous 'Sortable' to allow list items to be drag and dropped into another list. This works just fine, however I wish to update the contents of the first list using a drop menu/Ajax. The list populates with new content just fine, however this new … | |
Hi...I am making a speech recognition program for my own personal use, because I don't like the way the built in vista speech reco software works. Here are my questions: 1. when I open the app that I programmed in VB, it automatically opens vista's built in voice recognition software. … | |
I am having a problem with this project I am working on. The assignment is to create an application that will give a user the choice of displaying the roman numeral equivalence of a number between 1 and 10 or displaying a count of roman numerals from 1 to 10. … | |
hi, is there any buitin function like ismethod, to check whether the method exists in the class. for example, Class sample: def fun(): def meth() object = sample(). passing this object(class instance) and fun(function name of class) as inputs i need to find out, whether this function is a member … | |
I've been learning C++ in school for awhile now, and mainly using their version of C++. I decided to download Dev C++ so I could start making programs on my own. For the most part, they've been nothing short of cheezy and useless, tho fun (like a fortune teller that … | |
hi guys how r u doing .. this is my first post .. i have this code .. the problem it runs .. the following happens: when it says: geef een woord (= give a word ) i write the word .. then it says geef een letter ( = … | |
Does anyone have a solution to separate include template? I have the index.php calling for the control file and a template page. I'm wanting it to call up template1.php if you click on this, or else template2.php if you click on this. I don't know if I'm making sense. Example: … | |
Hi, I want to add button in my form to print when click how can i do this??????? thank you | |
heya... ok, so i was browsing the net to find out if there's a good text on this algorithm, but i don't seem to be able to find one. people are obviously using it, but, hey, there's no info on it. the part i get is the theory on how … | |
Is it easy to do this? | |
Dear Sir, My project uses Ms Access as back end tool and visual basic as front end tool. I have a problem when i run my project's tmgmt.exe file more than one time then it shows tmgmt.exe file entry into taskmanager's process tab. Suppose i used that file 4 times … | |
Just for anyone, who, like me, has got along using VB6 without the mousewheel whilst editing in the IDE. Until today I just assumed it wasn't an option. There is a simple fix in the form of a free addin from microsoft. [URL="http://support.microsoft.com/kb/837910"]http://support.microsoft.com/kb/837910[/URL] What a difference!!!!!!:$ | |
Hey everybody! My task is to implement a simple membership database for a sports club. The index.jsp is my 'welcome file' within I offer input fields, first and last name, a selection for sport and check boxes for payment. The index.jsp looks like this: [ICODE]<%@page contentType="text/html" pageEncoding="UTF-8"%> <?xml version="1.0" encoding="UTF-8" … | |
Could someone help me with this. How do i make a recursive program that returns sum of 1**3 + 2**3 + ... + n**3? | |
i dont know how to post a question so that, i can create my question in this link... my question is all about how to create an oracle code database in vb6, im a student and beginner programmer... | |
i am reading book AJAX and PHP Building Responsive Applications.. I've tryed to run code from that book but it doesn't seem to work.. probably i am missing something but i checked a lot of times and seems like everything is correct, thou application doesn't work correct! XML file [CODE]<?xml … | |
Hi, all programmers of this Forum, I am using MS Axcel 2002 and I am trying to format Excel Sheet from VB so as to make a border within the selected cell. My CB code is as under and when I run this, it select the specified rangge, but no … | |
when i ran a perl script on xampp i got this error [B]The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: sai2.pl If you think this is a server error, please contact the webmaster. [/B] | |
Hi there. First let me say I'm completely novice in Javascript. This is my second time posting this, as I put it in the wrong forum initially (sorry). Someone else wrote this and emailed it to me, I have just tried to used it. I know my way round html … | |
I have to doublecheck if this is the case. When using the fileSystemWatcher in the application where an event is checking for Changes in a file. With just starting the application where no changes events is fired at all the processor (AMD double core) Peeks at 50 % constantly. Is … | |
I'm working on a movie class for a project. I think I've got it reading in movies from a file. I want to test it using the overloaded subscript operator, but the Driver file will not let me enter a movie title to search for. I can't think of a … | |
On a previous thread, a member was nice enough to help me out. The script worked fine, until I added other variables. Now, it won't register in the database. My eyes are not working. Any ninjas? Thanks [B]reg.php[/B] [CODE]<?php require( 'config.php' ); $con = mysql_connect( $mySQLhost,$mySQLuser,$mySQLpass ) or die( 'Error: … | |
Ok, so I'm learning about procedures and functions in Oracle and I'm stuck here with my procedure. I have the function part down pretty good, but the whole returning variables with procedures through OUT mode is confusing me. My task is this: "Write a procedure that accepts a zipcode & … | |
Hello, Im trying to make some sort of reminder program that plays a wav every 30 seconds to remind me of what Im supposed to do. [code] #include <iostream.h> int main() { system("start alarm.wav"); } [/code] Thats what Ive got so far, now Im trying to figure out how to … | |
yea I know I spelled destructor wrong what can I say my fingers got in the way of my typing I have scoured the internet and tried several different ways to implement the destructor on my link list queue. I highlighted the troulesome code like this //***************************************** code //***************************************** here … |
The End.