64,152 Solved Topics
Remove Filter ![]() | |
Please help, got this code below that i need to add to a program im making and for some reason i cant work out why it doesnt work. [code] program dbase1; uses Crt; const fileName = 'C:\TEMP\NAMES.TXT'; maxRecords = 100; var name : array [1..maxRecords] of String; address : array … | |
Hello, I need to prompt the user if they want to actually execute the program or not. Like, "Do you want to run the program, y=yes and n=no" Then user enters y or n and the program either runs or quits. I was thinking that would be like: [code] char … | |
I recently learned a little bit about sorting algorithm efficiency. I looked at the merge sort and saw how it could be implemented using a scratch array to store the result until it was finished. It then talked about in place algorithms but didn't offer one for a merge sort, … | |
Hi. I'm newbie in C language (and in programming in general) and I don't know if this is possible. Imagine you have an integer variable called "number" with a number, and when you executes a function, this function creates a variable called "audio1" and increments number (number ++; ). The … | |
Can someone please take a look at my code to ensure there aren't any memory leaks or (array) overrides or anything else which could be a bad practice in my code ... Here's my code: [CODE=C++] #include <iostream> using namespace std; template <typename T> void create2DMatrix(int rows, int cols, T … | |
Hello, I need your help again guys. I am trying to make a pop up form name setIPInterface (when the user click on a button in the form "ClientInterface"), for a user to input an ip address in a textfield and when the user click on the button "Set", the … | |
hi ! how can i use multiple submit buttons in the same form i want to pass form values to different pages depending on which of the two submit button is clicked... thank's | |
I have designed an age calculator which given a person's age, works out given a person's age, works out how many days they have lived for, and how many hours they have lived for. My answer: var age, month, day, hour: integer; begin writeln ('How old are you?'); readln (age); … | |
i have this kinda game, which inputs an integer.. but my problem is, when the user inputs a char variable, the program stops. it should say that the user entered an invalid box number. but it stops scanning when the user enters a char variable. help me pls... here is … | |
Good day!. I want to copy all the folder contents to a certain location. To be specific, i have a folder named (webproject) relative on my vb program path.When the form load, i want to copy all the content of this folder(webproject) to C:\wamp\wwww\onlineweb\.I just really dont know how to … | |
Table does not display any border when php outputs data from MySQL. I'm trying to set the following styles for table: border-width: thin border-style: solid Below is the snippet of code I'm having trouble with. print( "<table border-width = thin border-style = solid cellpadding = 1 width = 1400px>" ); … | |
Id like it so that when you click the 'x' button to close the program it doesnt just end. How do I apply code to the 'x' button? All help is appreciated, thanks in advance -Russell aka Rabbit | |
[CODE] using System; using System.Collections.Generic; using System.Text; namespace bPod { public class PodCastFunctions : Form1 { public void ClearOriginal() { newpodcastButton.Visible = false; addpodcastButton.Visible = false; finalisepodcastButton.Visible = false; overviewButton.Visible = false; this.Height = 183; this.Width = 671; this.BackgroundImage = Properties.Resources.NewPCast; podcastdescLabel.Visible = true; podcastdescTextBox.Visible = true; podcastnameLabel.Visible = true; … | |
I want to pass a php variable into xml script. Essentially what I want to achive is: var xmlvariable= '$phpvariable'; Is there a simple solution to this? Many Thanks Nick | |
I want to set binary values on and of at will. So I derived from the CheckBox class to change it's appearance. Instead of a checkmark I like to implement a [B]0[/B] or [B]1[/B] here. This is the code of my class so far: [CODE=csharp]class BinarycheckBox : CheckBox { public … | |
I am trying to write a pretty straight forward algorithm (agglomerative clustering), but the details are getting pretty hairy. (A cluster is simply a group of points. The idea is to take a list of points and decide which are "grouped" or "clustered" close together.) Here is the outline: Input: … | |
Hi, I am making a site, in firefox it looks fine, but in IE its a mess, take a look at the first page, you will see that the images are not filling the space as they do with the firefox, although they have the same deminsions. The site is … | |
I want to change a while loop to a for loop but not sure how to do it. This is the loop. [CODE][LIST=1] [*]public static void main(String[] args) [*] { [*] String input = JOptionPane.showInputDialog( [*] "Please enter a number, 0 to quit:"); [*] int n = Integer.parseInt(input); [*] int … | |
I writing a program to read several data lines in from a file then using functions to process the data. One of the function is giving me an error that i can't figure out. The following code works fine with "1/2". However there is a case when the '/' sign … | |
[CODE] def translate(response): """Translates an English word into Pig Latin.""" # Initial lists and strings vowels = ["a", "e", "i", "o", "u", "A", "E", "I", "O", "U", "y", "Y"] consonants = ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", … | |
I am trying to count a few different types of characters in a string and I am running into a few problems. I need to be able to count the vowels and blanks/spaces and then just everything esle and I am having problem with the everything else(by everything else i … | |
Let's assume that your classes are working, and you have created an "A" object, and added 4 boxes. (5 x 5, 4 x 10, 2 x 4, and 6 x 12). Now choose the method for displaying all the box sizes. The following text might be displayed: box: 5 x … | |
Hello friends, I am currently developing a chat application and I am having a small problem. When the user send a message, the message appears in a text area, like in MSN and when the user receives a message the message again appears in the text area, its just a … | |
I'm working on a rather big program. Everything works fine:) , until I added this simple code: [CODE]int counter_x = 0; int* x = new int; for (int a = 1; a < plain_len; a++) //plain_len: int { int b = a; while ( b != 0 ) { x[counter_x] … | |
Hello everyone, I am having a small problem, does someone know how to break a long string into small groups of 3 characters. I've tried it but its not working. Here's a sample of my code: [code] int begindex =0, endindex = 3; String plaintext = null; String block; StringBuffer … | |
Hi All, I am displaying an image from database using php .... the problem is that i want to give a row of colors beneath the image .... so that when a user clicks on one of the color .... the image should change accordingly ... in my case i … | |
Hello all, I am trying to make a linked list (class-based). I'm not sure if I went actually did it right. I get a compiler error on the segment of code that deals with printing the linked list to stdout. Here is the seqment in question. [code=cpp] // print contents … | |
Hello, I have been given an assignment in which I am to write an assembly language version of the following binary search function & use a suitable main program written in C to test my function. The function in C in which I had to translate to assembly is: [CODE]int … | |
I'm an experienced web developer in the confines of a .net environment. I'll looking to start working on a desktop application, but I'd like to steer away from .net. The programming language should meet the following criteria: - High level Object Oriented (higher than C, more like C#) - Not … | |
I wrote a level-editor for a game that I wrote, and I need to save the image on the screen to a file so i don't draw a bunch of tiles to the screen each frame. I have no idea how to save it. I could just screenshot it and … | |
Hi, I am getting the following error when I am trying to initialize a 2 dimensional vector with 0's. I am not to figure out the reason. Any help is appreciated. [ICODE] std::vector<int> truth_table; std::vector<vector<int> > truth_table_col; double no_of_twos = 7; double base_two = 2; cout << "No of 2's … | |
i have code to find next string after a particular string that shows result correctly.. right now i want to make an array to show the list of my output's name. [CODE] FileReader fr; BufferedReader br; String result=""; String word= new String(); String target = "friend"; try{ //read large text … | |
I am trying to create a macro which could copy information from a datasheet and past it into sheets which are named as one of the Cells in column A. I have a datasheet which contains five columns full of data. Column A contains the Client references. There are 200 … | |
We know #define statements are executed before the program is compiled (preprocessor directives) and so the characters used should have no other meaning (say keywords),but still the following statement is not possible and is erroneous why ? [code=c]#define int float[/code] How many passes would the preprocessor directives run for as … | |
I want to click on a button and have it open another form. The other form is called Kindy. | |
I made simple database project. just add a data and see it. but when I run it another computer it show a massage. massage is below: 'E:\Vb6\New folder\db1.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected the server on … | |
Hi, I'm hopeing someone will be willing to help me with somthing that is probably quite simple. I'm trying to bind a combobox to a data table, however it is supposed to be a foriegn key field, as such I need the items list to be populated from a different … | |
Good day.! I want to check all the textbox and combo box if its null or not. Once they click on the button, if one txtbox or combo box is null it will give a message that incomplete entry. I have already posted this thread, but i noticed that when … | |
hey again i hate to be a bother but i still can't get this to work my driver program(the second code) won't call the add method or the minus method to subtract input i tried to do this in my code below and have failed if you have any suggestions … | |
Having a problem with getting my array into a TextArea, I originally wanted to use a JTable but found the Table Model and what to do too difficult for what I want so my question is I have my array and now I want to display it inside a TextArea, … | |
ok i know this is the command for reading an integer but where does it read the integer from? I got a factorial program, heres the beginning of it: [ICODE] .data prompt: .asciiz "you want n! for which value of n?\n" .align 4 n: .space4 i: .word 1 fact: .word … | |
Are there python commands to achieve the following : 1. Create new text files 2. Write certain text to these file (similar to DOS Echo> command ???) | |
Hello everyone! just dumped bytes forums and joined daniweb... hope its a good decision :P anyway, could you guys take a second to look at the following code... [code=python] import subprocess as sp cmd = "awk '{print $0}'" ex = sp.Popen(cmd.split(' '), stdin = sp.PIPE, stdout = sp.PIPE, stderr = … | |
how do I trigger a function after x seconds in pygame?? i have seen the "pygame.time.set_timer(event,ms), but i want to trigger a function instead of an event. hoping for a quick reply thanks... | |
i have a parse error and i just cant figure out what it is because it seems my code is right but maby im wrong any advise is apreciated aswell heres my code [CODE] <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="en" lng="en"> <head> <title> Background Colors </title> … | |
Hello - I'm new to PHP, only been learning it for about a month, but I think I am starting to get the hang of it. I am working on a project that involves the Google Maps API which uses markers that are populated by values from a MySQL database. … | |
i m very new in java. now facing prob to get char/string after a particular string from txt file. suppose i have few text files in one folder and every txt files contain some line like my first friend jocky, second friend vicky and so on.....:$ my program should open … | |
Hi, I have an oracle sql query that return many rows. The result will be shown in an html table in column format. I have html table that with the static header. I need to generate dynamic rows depending upon the result of the queries. Thanks, Reuben | |
Hi guys, I am going mad. I am trying to code an algorithm in C++ and already at a very early stage there appears an error that I just don't understand... These are the error messages sent by the VC++ compiler: [code] \surface_watershed_matlab\surf_watershed.cpp(138) : error C2653: 'CMesh' : is not … | |
[ATTACH]9597[/ATTACH] ok i want to read this file into a dictionary and this is the output d={"flight":T34712, From:ABERDEEN, scheduled 0800, remark landed} etc flight is the key do i have to parse the text file i know i cant put it straight into the dictionary as i get this output … |
The End.