64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Blkfxx

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 …

Member Avatar for Stib08
0
169
Member Avatar for free radical

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 …

Member Avatar for free radical
0
191
Member Avatar for c++noobie

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, …

Member Avatar for c++noobie
0
110
Member Avatar for wasge

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 …

Member Avatar for wasge
0
229
Member Avatar for tux4life

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 …

Member Avatar for tux4life
0
231
Member Avatar for neutralfox

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 …

Member Avatar for BestJewSinceJC
0
151
Member Avatar for aashishn86

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

Member Avatar for aashishn86
0
118
Member Avatar for turbomen

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); …

Member Avatar for FlamingClaw
0
190
Member Avatar for drxs33

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 …

Member Avatar for Aia
0
78
Member Avatar for PinoyDev

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 …

Member Avatar for PinoyDev
0
191
Member Avatar for jtyler

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>" ); …

Member Avatar for jtyler
0
2K
Member Avatar for rabbithaveit

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

Member Avatar for jbennet
0
2K
Member Avatar for FTProtocol

[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; …

Member Avatar for FTProtocol
0
107
Member Avatar for nickfday

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

Member Avatar for nickfday
0
2K
Member Avatar for ddanbe

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 …

Member Avatar for Antenka
0
104
Member Avatar for daviddoria

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: …

Member Avatar for daviddoria
0
118
Member Avatar for theighost

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 …

Member Avatar for theighost
0
143
Member Avatar for charlie81

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 …

Member Avatar for breandan
0
91
Member Avatar for Soccerace

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 …

Member Avatar for Soccerace
0
70
Member Avatar for down with socks

[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", …

Member Avatar for down with socks
0
186
Member Avatar for BorlandNoob

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 …

Member Avatar for m610
0
97
Member Avatar for madeindadex305

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 …

Member Avatar for Ezzaral
0
142
Member Avatar for neutralfox

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 …

Member Avatar for leverin4
0
68
Member Avatar for C++ Obliviator

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] …

Member Avatar for C++ Obliviator
0
595
Member Avatar for neutralfox

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 …

Member Avatar for neutralfox
0
114
Member Avatar for jyotiu

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 …

Member Avatar for nickfday
0
135
Member Avatar for TheFueley

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 …

Member Avatar for TheFueley
0
185
Member Avatar for Ineedhelpplz

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 …

Member Avatar for csurfer
0
188
Member Avatar for viper34j

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 …

Member Avatar for Intrade
0
215
Member Avatar for llemes4011

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 …

0
76
Member Avatar for guest7

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 …

Member Avatar for guest7
0
102
Member Avatar for doha786

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 …

0
75
Member Avatar for shahji

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 …

Member Avatar for Tu22
0
101
Member Avatar for csurfer

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 …

Member Avatar for csurfer
0
144
Member Avatar for dier02

I want to click on a button and have it open another form. The other form is called Kindy.

Member Avatar for TransKim
0
139
Member Avatar for abu taher

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 …

Member Avatar for abu taher
0
79
Member Avatar for FallenPaladin

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 …

Member Avatar for ddanbe
0
145
Member Avatar for PinoyDev

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 …

Member Avatar for koolsid
0
142
Member Avatar for javaman2

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 …

Member Avatar for darkagn
0
150
Member Avatar for jackiejoe

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, …

Member Avatar for javaAddict
0
2K
Member Avatar for ssDimensionss

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 …

0
84
Member Avatar for JeyC

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 ???)

Member Avatar for Arrorn
0
135
Member Avatar for sharat87

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 = …

Member Avatar for sharat87
0
4K
Member Avatar for harrykokil

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...

Member Avatar for Arrorn
0
60
Member Avatar for grunge man

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> …

Member Avatar for grunge man
0
109
Member Avatar for Mtowns Finest

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. …

Member Avatar for Mtowns Finest
0
249
Member Avatar for doha786

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 …

Member Avatar for Ezzaral
0
198
Member Avatar for sreuben

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

Member Avatar for sreuben
0
189
Member Avatar for longmatt

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 …

Member Avatar for longmatt
0
113
Member Avatar for lilkid

[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 …

Member Avatar for lilkid
0
164

The End.