43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for chebude

I am stuck with large text files which I have to merge and further work with my model. I tried to follow the previous thread in text merging [url]http://www.daniweb.com/forums/thread38625.html[/url] Here is the script which I used: [CODE= python] one = open("one.txt",'r') two = open("two.txt",'r') ofh = open("out.txt",'w') # read in …

Software Development python
Member Avatar for chebude
0
137
Member Avatar for yssirhc

I've stored an array in an html hidden input and now need to transfer that array to my delphi function. I've tried: [code=delphi] var fileArray : array of string; fileArray := formvar('fileArray', ''); [/code] but this gives an incompatible types error when I compile. How can I convert the string …

Software Development delphi pascal
Member Avatar for yssirhc
0
4K
Member Avatar for billgone

Can anyone please help me make a program that does following: i enter first string then i enter the second string i.e. first string: "abcxyzefg" second string:"xyze" and the program should the write a new string without the second string in the first one i.e "abcfg" thank you

Software Development c c# c++
Member Avatar for Mazzin
0
81
Member Avatar for PinoyDev

good day! I want to pass the value that contains tha table name and load its data.But my sql turns error.Below is my code. [code=vb] Combo2.Text = "first_year" sql = "select * from " & Combo2.Text & "'" rs.Open sql, conn, adOpenKeyset, adLockOptimistic, adCmdText [/code] Im using mysql as backend …

Software Development sql visual-basic
Member Avatar for PinoyDev
0
76
Member Avatar for siddhant3s

Well, first of all I will speak much so that you guys can target my problem better. Hello, I am a poster from the C++ forum. Hence, I am a well established C++ programmer. Now I want to learn Python. First of all, should I? I mean, keeping in mind …

Software Development c++ machine-learning python
Member Avatar for sneekula
0
773
Member Avatar for killhha

i am trying to use an if statement which will say some thing if points is greater than or equal to 15 AND less than 20. like this: [code] if points >= 15 and < 20 then writeln('Nice!'); [/code] but this code doesnt work. how would i do it?

Software Development pascal
Member Avatar for FlamingClaw
0
157
Member Avatar for Grn Xtrm

Hello. I'm working on a class hierarchy that starts with an abstract class called GeometricObject. I want to use this class to create classes of different types of triangles. I want to these classes to inherit the perimeter method from the Triangle class. Here's what I have so far. abstract …

Software Development java
Member Avatar for Grn Xtrm
0
914
Member Avatar for GDICommander

I need help with the code below. At root->removeChild(nodeToRemove), I have a NOT_FOUND_ERR code. It is not supposed to return this code, because I look in the DOM Tree with IsInDocument. Can someone tell me what's wrong with this code. I'm becoming blind with this code. [CODE] DOMNode* nodeToRemove; if …

Software Development c++
Member Avatar for GDICommander
0
165
Member Avatar for LindseyV

Hi there. I am writing a program in Access 2003 and I trying to update a forum with new strings. To explain better. The forum window is already up and I hit a button to process a command. Now I need the fields in the forum to update without saving …

Software Development visual-basic
Member Avatar for LindseyV
0
75
Member Avatar for dev_kc

I have been asked to use data grid in my proj,bt i dnt knw hw to use this,please help... On click of search btn,the data should be displayed in the grid and textbox,I know how to display in the text box,but dnt knw anything abt this grid........ PLEASE HELP:S

Software Development visual-basic
Member Avatar for arvin2006
0
76
Member Avatar for tendolm

I want to apply heat on a tube surface (3D). The heat is to be applied on a straight line on the tube. The equation of line is x= 87.5 y = 126.1620 + (-1*1004.0820) z= 166.1620 + (-1*-1004.0880) Since x is constant is given asposition holder, real x[ND_ND]; For …

Software Development c++
Member Avatar for tendolm
0
308
Member Avatar for karthik.c

hi guys im trying to write a makefile which contains :two cpp files and two header files. now i've put cppfiles in a folder called source whose path is: /root/workspace/source and header files in a folder called header whose path is: /root/workspace/makedemo/header my makefile is in the path:/root/workspace/makedemo my makefile …

Software Development c++
Member Avatar for karthik.c
0
156
Member Avatar for spec80

Hi, I have a couple of classes and I am trying to do the following: I have a main class that contains a boolean value called "display" that displays various messages throughout the class depending on true/false values. Main class example: [CODE]public static void main (String[] args) { boolean display; …

Software Development java
Member Avatar for spec80
0
1K
Member Avatar for azStudent

Why would I get a Segmentation Fault error? It compiles fine with g++, but gives an error when it runs. [code] void blowUp(char *board, int *boardSkin, int row, int column) { //set the board's 'skin' to 1, (meaning it will be displayed) *(boardSkin +(row * columns) + column) = 1; …

Software Development c++
Member Avatar for azStudent
0
143
Member Avatar for Avaviel

Here is the [url=http://dl.getdropbox.com/u/297962/Lab7.zip]whole project[/url], in a zip file. I'm having trouble getting the delete function to work. I can delete head just fine, but when I try to delete either something at the end, or something in the middle, it does not work out. I'm sure it has something …

Software Development c++ linked-list
Member Avatar for Avaviel
0
114
Member Avatar for thacravedawg

I am trying to make an application that sorts a database with user input and returns a form. This form then accepts some user input, and then needs to be sorted in another event. I am using ado.net, and am attempting to complete this task by cloning a dataset and …

Software Development dataset
Member Avatar for thacravedawg
0
120
Member Avatar for slik33

So I made all the functions for a project where I was supposed to take input from the user through a menu and make an array and do various things with it. Two things I couldnt figure out were how to Lock and unlock the array, and then I also …

Software Development c++
Member Avatar for Narue
0
124
Member Avatar for konczuras

Hello Everybody! I've the following issue, and just cannot figure it out myself: I've a button, which's width and height can be set by numericupdowns. To prevent the button's text truncating, I've also set the minimumvalues, like this: [CODE]NumericUpDownWidth.Minimum = Convert.ToInt32(Button1.Width); NumericUpDownWidth.Value= Convert.ToInt32(Button1.Width); NumericUpDownHeight.Minimum = Convert.ToInt32(Button1.Height); NumericUpDownHeight.Value= Convert.ToInt32(Button1.Height);[/CODE] The one …

Software Development
Member Avatar for ddanbe
0
135
Member Avatar for FREEZX

I need to make a program that will extract numbers from a file sorted like bowling cones, like this: 1 2 5 2 2 7 1 6 4 8 2 9 4 7 3 and than calculate the maximum a bowler can score if the ball can go down on …

Software Development c++
Member Avatar for FREEZX
0
112
Member Avatar for serkan sendur

why would one choose using byte[] instead of char[] or vica versa

Software Development
Member Avatar for serkan sendur
0
4K
Member Avatar for joed13k1941

Hey. Thanks for all of the help with my other questions. This forum has been very helpful. In this program, there is a note: "chocolate" may refer to either the ice cream or the sauce; assume it refers to the ice cream if an ice cream flavor has not yet …

Software Development c++
Member Avatar for star4ker
0
446
Member Avatar for papuccino1

I made a small program for a Doctor's office, but I had to manually install SQL Server on the PC and manually create the Database and Tables. How do professionals make a program dynamically create a database? Do they even [B]use[/B] databases? Thank you for the info dudes.

Software Development
Member Avatar for papuccino1
0
140
Member Avatar for swinefish

I'm busy working on a simple XML formatter. Now I've got the app doing everything I want, except that I have to give it the absolute path of the XML file I'm using. Is there any way to get te relative path of such a file if it is known …

Software Development xml
Member Avatar for swinefish
0
85
Member Avatar for ITech

hi, i want aregular expression which allows numbers and one period eg 325.50, 25.20 and allow only two didgits after the period

Software Development
Member Avatar for Rashakil Fol
0
90
Member Avatar for turbomen

To create a game of Heads or Tails against the computer. Write a program that asks the user for Heads or Tails, then simulates a toss of a coin and then tells the user whether they have guessed correctly. DISPLAY a title for the program Issue the statement that stops …

Software Development pascal
Member Avatar for FlamingClaw
0
676
Member Avatar for SSagar

Hi, I have a file system tree. I need to select a file and highlight it without selection. I am not able to build the TreePath for this. Plz let me know how to build the treepath. Thanks in advacne, Sagar

Software Development java
Member Avatar for SSagar
0
85
Member Avatar for swinefish

Hey Guys I'm kind of a newbie to C#. Now the syntax and the like don't bother me because I love java, so the actual programming is no problem. However, I'm trying to do something I can't figure out. I want to write a module in Visual C# (Visual Studio …

Software Development c# html-css visual-studio xml
Member Avatar for swinefish
0
129
Member Avatar for kbullard516

Hello. My task is import data from a text file into an array, and then sort the array and print out the sorted array. Each element of the array represents a clothing item and has name,category,quantity, and price values. I have an Item class to represent a single clothing item, …

Software Development java
Member Avatar for kbullard516
0
156
Member Avatar for abu taher

If I click a button how my computer will be open? I want I click a button then my computer will be open. help me with my computer, control panel

Software Development visual-basic
Member Avatar for hkdani
0
143
Member Avatar for charlie81

I know I am missing somethings in my code not sure what I am supposed to put in. Here is what I have so far. import javax.swing.JOptionPane; public class Main_Class { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String firstNumber;//first number …

Software Development java java-swing
Member Avatar for verruckt24
0
167
Member Avatar for clarkpoon

[B]Convert Case To Random In Vb6[/B] I've only 1 Textbox & 1 Button... can anyone help my? Thanks

Software Development visual-basic
Member Avatar for clarkpoon
0
179
Member Avatar for db11

I've just started c# having done VB and a bit of c++. I think c# is probably a more viable option than ++, thus here I am. I've had this problem in a few languages. How do you create an array in code that is linked to an array of …

Software Development user-interface
Member Avatar for papuccino1
0
2K
Member Avatar for bondgirl21

Hi , I already created a button "enjoy button" that i want to move in a form when the "timer start button" is clicked. how do link the timer to the "timer start button" and make it move? this is what i tried so far..then am blank first [quote] Private …

Software Development vb.net
Member Avatar for bondgirl21
0
153
Member Avatar for VIPER5646

I been searching for days for a sulotion but can't seem to find one. The coed that I have does not give me an error but it does not save anything on the table either ' Can someone help me find what I'm missing? this is my coed [CODE] Dim …

Software Development open-source visual-basic
Member Avatar for jonc
0
171
Member Avatar for wonder_laptop

i want to implement a memory using c++ language. the memory will contain addresses of length 64bits because in my architecture the word is 64 bits. i want to implement it using a set associative array. so i want to create a 2 dimensional array of dimension 8 and 16k …

Software Development c++
Member Avatar for Zcool31
-1
88
Member Avatar for sid78669

I have a function which outputs a really long string in a box of defined size. The problem is, after a few lines, I get an error saying that HEAP CORRUPTION has occured and I wrote to a memory beyond the allocated limit. Now, I'm only writing to console and …

Software Development c++
Member Avatar for sid78669
0
193
Member Avatar for Mahsa_C++

hello every one here, hoping u're all doing fine. i am face with a wierd error while trying to encode a class about courses and students ( student is itself a class) i'm give this error, and googling seems of no help! [COLOR="Red"]error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> …

Software Development c++ visual-studio
Member Avatar for Mahsa_C++
0
95
Member Avatar for cause&effect

I’m new in C#. My first attempt is a console application for the Noughts & Crosses game. I’m stuck in writing the condition for break if any player wins. Any comments will be appreciated. [code] //Tic Tac Toe using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TTT { class …

Software Development
Member Avatar for Antenka
0
93
Member Avatar for Hiroshe

Just getting back into c (I've been dosing assembly for the last few months), so don't laugh at me :S I'm trying to read an input file. The fist line contains how many lines to read. The rest of the lines contain 3 words. Here's an example: [CODE]3 Hello, World …

Software Development assembly c
Member Avatar for kenji
0
105
Member Avatar for Emerald214

When creating a new object, i can't decide to use "static allocation" or "dynamic allocation". Ex: [CODE] class A {...}; int main() { // A theObject; // or A theObject = new A(); ? } [/CODE] In some more complex cases, i don't know what i should do. Ex: Use …

Software Development c++
Member Avatar for nucleon
0
101
Member Avatar for firoz.raj

Can anybody tell me .how should i print serialno of materialrequistiondetail table of matching requisition no.in descending order.here is the code what i have written. [code] Private Sub btPrint_Click() Dim sqlQuery As String sqlQuery = "SELECT MaterialRequisitionOrder.requsition_no, MaterialRequisitionOrder.job_no, " & _ "MaterialRequisitionOrder.delivery_point, MaterialRequisitionOrder.delivery_date, " & _ "MaterialRequisitionOrder.delivery_time, MaterialRequisitionOrder.suggested_supplierID, " & …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
146
Member Avatar for Nanor

I'm learning Pascal in school. I've come across a run time error that's been eluding me these past few days. The error message I get is: [QUOTE]ERROR: line 86, access made to undefined variable[/QUOTE] I've been searching t'internet for a while trying to find out some help, alas Pascal as …

Software Development pascal
Member Avatar for Nanor
0
210
Member Avatar for nexocentric

I was making a dos based text game and needed user input. I looked through the forums and found the thread on safe user input, which would be using fgets() instead of gets(). The first problem I ran into was that stdin always had '\n' in the buffer, so it …

Software Development c
Member Avatar for Ancient Dragon
0
495
Member Avatar for blackcloud72

Please help I am stuck. I am trying to retrieved text from a file named "text.txt" and reversing the contents to another file named "output". Then i have to display the contents of "output" to the console. I am able to display the reversed text to console but only from …

Software Development file-system java
Member Avatar for jasimp
0
114
Member Avatar for Gerlan

Hey, I have a small problem. I need to convert a char into an int, except the char has 2 values inside it. For example [CODE=c++] char c = 'v0'; int i = c - '0'; cout << i << "\n"; [/CODE] All that does is removes '0' from the …

Software Development c++
Member Avatar for Gerlan
0
208
Member Avatar for killhha

is it possible to end actions that are happening? example: [code=pascal] repeat writeln('example'); until c=1; {the c is an example. im asking if it would be possible to change c to something like 'until readkey'} [/code] readkey doesnt work. i hope you can understand what im tring to ask here. …

Software Development pascal
Member Avatar for FlamingClaw
0
253
Member Avatar for tksabin

hi friends, Im doing my project in C#. Now,I want to make a very nice UI for this one.. The UI which i created now is a simple one using visual studio 2008.. Is there any other software by which i can make a very nice UI.

Software Development user-interface visual-studio
Member Avatar for tksabin
0
90
Member Avatar for serkan sendur

i couldnt find the server explorer, where is it, i need to connect to sql express database.

Software Development c#
0
64
Member Avatar for sawant_nitesh

I m having many dataobjects (*.java)(having getters and setters) My requirement is that, I want to write a generic Method, which will accept argument as Object and will call all getters of that Object. Basically I want to write a log file with all dataobjects which are going to be …

Software Development java
Member Avatar for masijade
0
114
Member Avatar for rayda

[ICODE]public class fermi { private int[] guess; private int[] random; private int total; public fermi(int[] gs, int[] rn) { guess=new int[gs.length]; for(int i=0;i<gs.length;i++) guess[i]=gs[i]; random=new int[rn.length]; for(int j=0;j<rn.length;j++) guess[j]=gs[j]; total=0; } public int totalPlay() { return total+=1; } } [/ICODE] [ICODE]import javax.swing.JOptionPane; import java.util.Random; public class playFermi { public static …

Software Development java java-swing
Member Avatar for verruckt24
0
126

The End.