199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for YasaminKh

Hi there, I'm working with a file. I want to write a code that returns a particular string located somewhere in the file. I have the starting position of the desired string and it's length so I thought that i can use substr(starting position, length of the string) but it …

Member Avatar for YasaminKh
0
127
Member Avatar for uhmyeah

hello, i would say im new to c++, my most advanced program was just a simple tic tac toe application. I am interested in learning more about c++. I have searched A LOT and cant find any good ebooks or links. I need links or ebooks to go further! please …

Member Avatar for NathanOliver
0
171
Member Avatar for jaysean

Hello forum, I am wondering if it is possible to do a mark-up in free text by comparison with some string. Suppose I have a file with several sub-strings, one in each line. I have another file which contains the full text from where the sub-strings are generated. Is it …

Member Avatar for jaysean
0
106
Member Avatar for feodal

Hi guys, So I have a little project that I need to get done which I honestly don't exactly know how to approach. The task is. There is a website, cars.com and there you can enter in search field of used cars the zip code that you need for all …

Member Avatar for pritaeas
0
95
Member Avatar for hisugan
Member Avatar for mattloto
0
268
Member Avatar for moroccanplaya
Member Avatar for mgranger96

I have a need to close a popup window after a certain amount of time. I have tried many different ways to do it with no luck in IE. Works fine in Firefox, Safari, and Google Chrome. It seems to be a problem with IE referencing the window I have …

Member Avatar for fxm
0
845
Member Avatar for leone86

hello there, im new to C++ and i tried to design this code but the code is not running and i there is the code below [CODE=cpp]#include <iostream> using std::cout; using std::cin; using std::endl; #include <string> using std::string; using std::getline; class staffMember{ public : void setFirstName (string fname){ FirstName = …

Member Avatar for Radical Edward
0
114
Member Avatar for rickarro

Hey All, I know this piece of script is not the best way to write this but it actually worked when I started this project, but for some reason it no longer works. I was wondering if someone could take a look at it and give me some improvements or …

Member Avatar for rickarro
0
164
Member Avatar for wildguard

hi, im having trouble putting msgbox.. where do i put MsgBox("Passenger not found!", MsgBoxStyle.Critical, "Error") If name is not found from text file help thankz in advance VS 2010 [CODE] Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click Dim i As Integer Dim removename As String …

Member Avatar for wildguard
0
164
Member Avatar for dansnyderECE

So, I've learned my lesson in the past. I'm not experianced enough to design a program from start to finish in an elegant way. I'm not looking for code in any way, just some code flow suggestions if anyone has any. This is what I'm trying to do: -Do a …

Member Avatar for Radical Edward
0
100
Member Avatar for aishaahmad

Hi, I am a newbie. I am studying Algorithms for the very first time in this semester, so please dont get annoyed by my question. The time complexity of the loop e.g for(int i=0;i<N;i++) is O(N). Now what would be the time complexity of the loop that isnt incremented by …

Member Avatar for AuburnMathTutor
0
279
Member Avatar for spinachio

I have a text file that looks like Y07976.1/124-271 Y07978.1/48-201 and I want to remove everything after the forward slash such that in the end the text file will look like Y07976.1 Y07978.1 I am currently learning perl and I think regular expressions are going to be a trouble for …

Member Avatar for spinachio
0
101
Member Avatar for ippomarley

[code]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; class ll{ public static void main(String[] a) { FileReader fr; try { fr = new FileReader (new File("C:\\University Study\\Component Engineering\\Assignments\\Assignment !\\yourFile.txt")); BufferedReader br = new BufferedReader (fr); String line = br.readLine(); while (line != null) { System.out.println(line); line = br.readLine(); …

Member Avatar for peter_budo
0
131
Member Avatar for valatharv

Please suggest if there is any best way around on executing jar from java code then killing parent java code. a)I have desktop based java application say "Monitor.java" which runs every 5 minutes. b) How can I [B]START external java application[/B] say "execute.jar" from Monitor.java [B]THEN EXIT/KILL[/B] Monitor.java I tried …

Member Avatar for valatharv
0
14K
Member Avatar for cmsc

for example I have this file named 'bst.h'. do i need to compile it so i will be able to use it? what do I need to write in the terminal to run my program? thank you very much.

Member Avatar for Saravanan5
0
73
Member Avatar for judithSampathwa

hi there, I need to upload files to the mdf file in visual studio 2008 standard edition. the database table which takes the file data in to varchar datatype. i convert the data to byte and then save it in a varchar type field. the code is below for uploading …

Member Avatar for nick.crane
0
166
Member Avatar for noon580

I have a problem with solving the follow question. Write a SortedMerge() function that takes two lists, each of which is sorted in increasing order, and merges the two together into one list which is in increasing order. SortedMerge() should return the new list. If there anyone could help me …

Member Avatar for masijade
0
118
Member Avatar for cristina.h

HI I am trying to send a mail from a html form. I am working with a localhost. I can't send the email but it doesn't show the error. What can I do to see the error? Thank you for your time. [CODE] <?php if ($_POST['submit']) { $nume=$_POST['nume_exp']; $mesaj=$_POST['mesaj']; if …

Member Avatar for farhan386
0
137
Member Avatar for MichaelWClark

I am working on a project that I want to "+Add Row" to. This will Add a row of four fields that are textboxes. The # of rows is variable so I created a literal control and have been doing [code] Protected Sub btnAddRow_Click(ByVal sender As Object, ByVal e As …

Member Avatar for MichaelWClark
0
300
Member Avatar for fraenckel

This should be really easy, but I'm a novice at webapps.... I have a simple drop down list in my JSP which I created using <select> and <options>. I've got a javascript function in which I would like to get the selected value and proceed to do other stuff with …

Member Avatar for fraenckel
0
173
Member Avatar for pi_lord12

So to get practice writing applets, I tried to write one that simply draws a chessboard in a 160 x 160 window. I am pretty sure I got the code right for both the html and java files, and I have the html file in the same directory as my …

Member Avatar for pi_lord12
0
120
Member Avatar for Ayaat Monem

Hi all : ) I'm coding a snake game, now the problem is to get the input from the user if I used getch(); the snake will wait until she got an input from the user, so how can I let the snake run normally and expect input in any …

Member Avatar for sinogoya
0
103
Member Avatar for sadhawan

Hi guys, i have about 500 folder and each folder has 2 text files.I need to insert all those files in database.Right now my program has to read each and every folder, is there any other alternative to this. Thanks

Member Avatar for sadhawan
0
98
Member Avatar for Chosen13

Help please, I wrote a script in C++ for loading a map file, parsing it with XML, and outputting the objects in the file. The XML parser works great, but it won't open the file. I have it exiting if the file doesn't exist, and the file doesn't load, even …

Member Avatar for thelamb
0
249
Member Avatar for Greyhelm

I have been working further on my text adventure (see thread: [url]http://www.daniweb.com/forums/thread285737.html[/url]) and have come to the part where I would like to manage the change of time (of day) and adjust the date as time passes. I have some code that does it, but was wondering if there is …

Member Avatar for Greyhelm
0
530
Member Avatar for ceyesuma

Hello Could someone tell me if I had a table and I have the meta data for the columns,could I somehow collect the table name,column name and the data type and save it in something so as I could have these attributes to draw from in other classes? Thanks

Member Avatar for NormR1
0
76
Member Avatar for angraca

I am new to python and this is my first program. The program factorize a number given by a user. It also makes a list of all the primenumbers, that it finds and stores them in a file. Is there anybody who can see a way that I can make …

Member Avatar for vegaseat
0
940
Member Avatar for edk.theg8

Hi, I want to be able to copy my existing code, with all highlighting & formatting preserved to a file. Is it possible? Evan D. Knight

Member Avatar for Radical Edward
0
44
Member Avatar for majid091

Hello every one. I am developing an application using AJAX and CSS. I have a webpage in which i have some hyperlinks. I want that when ever some one move the cursor on some link, than mini preview should be loaded before clicking. I have done that but problem is …

Member Avatar for scrappedcola
0
83
Member Avatar for addie20

how I am new to c# and I have a question I have to create a form, it is of 2 pages so I created 2 different forms, now based on the database table, I have to fill few textboxes in form2 in order to overcome the exception of crashing …

Member Avatar for sadhawan
0
193
Member Avatar for nizuya

Ideally my goal is to have a multi-dimensioned associative array. However it is my understanding that javascript doesn't really do associative arrays. The data I want to store is a list of 4 digit codes associated with building names. Each building may have a different number of codes. I would …

Member Avatar for nizuya
0
96
Member Avatar for frozie

Ok, how do i make so if ihave a form on and press a button and a new form opens on the right side of the first form and follows when i move the first form and also i cant move the second form from the side of the first …

Member Avatar for evisi
0
143
Member Avatar for vamsikrishna20

Hello, i am working with vs2008 (web application) and I want to copy some content from an excel sheet and and using the clipboard i want to copy the contents in a gridview I have tried using Clipboard.GetDataObject() but no matter what ever i do it is always returning null …

Member Avatar for vamsikrishna20
0
86
Member Avatar for kiwimoosical

Ok, so I am having some trouble with my calculator code. The two issues I am having are: 1. I cant get my program to produce decimals, I have tried using "float" but that didn't work so i don't know how to fix that. 2. I don't know how to …

Member Avatar for Taywin
0
102
Member Avatar for ppetree

This idea came from my days as a C programmer back eons ago. I created a function called OutputDebugString() that takes a string as an argument and writes that string to a mysql table you create in your database (.sql code included). From there, a seperate module, called from a …

Member Avatar for ppetree
0
478
Member Avatar for jakx12

How would one get the values from a wav file. Would you use a data stream or audio stream? Thanks, jakx12.

Member Avatar for jakx12
0
73
Member Avatar for Estella

Hi masters, i need codes to cut, copy and paste text from textbox. i know that i can use shortcut like Ctrl + X, Ctrl + C and Ctrl + V, but i need to do it in code. please help me Anyhelp will appreciated much Regards Ela

Member Avatar for vamsikrishna20
0
3K
Member Avatar for chavanak

Hi, I have written a script which parses a UTF-8 text file and prints the required result. The code is below: [CODE] import os import sys import string import csv import codecs usage = "usage: Specify the directories for files and the RDOCK cut-off value" tm_append=[] if len(sys.argv) < 1: …

Member Avatar for Beat_Slayer
0
1K
Member Avatar for tsharma14

I am opening a word document created via FOP on click of a button in JSP page. My page is working fine for every browser except IE6. I have searched on net, and MS Site also. window.open is having problem with IE6. So can you people help me. HOW CAN …

Member Avatar for Taywin
0
137
Member Avatar for BrianDickson

Hi all I'm starting to learn more about PHP5/OOP and the CodeIgniter framework. Most frameworks seem to have form classes and form helpers. What are the benefits of using these over straight HTML? I take it there is a reason for getting the server to process code as an [B]additional …

Member Avatar for Stefano Mtangoo
0
117
Member Avatar for ChocoCrisp
Member Avatar for rapids79

Hi, I am trying to use strtok()..the idea is to split the text in tokens seperated by ";" as the delimiter. The text is in two parts like: apple;mango (apple being the first part and mango being the second I want to split into). The code I'm using: [CODE] #include<stdio.h> …

Member Avatar for nbaztec
0
184
Member Avatar for broli100

I want to make program in WINApi -it is simple window with one textbox - if you will press key 'A',it jumps to textbox(like when you click on it,and then you will be able to write to it). Only thing I dont know is if in WINApi is a function …

Member Avatar for amart
0
401
Member Avatar for iamcreasy

if i open a file ouput using [B]ofstream[/B] it's openmode is set to [B]ios::out[/B] and [B]ios::trunc[/B]... what I have to do, if I want to have only the ios::out flag...not the ios::trunc flag.Because, it is deleting all the previous contents. How do i undo this flag?or, what to do, if …

Member Avatar for iamcreasy
0
184
Member Avatar for seanooi

Does anyone know how to do the input focus fade in and fade outs that is seen at Apple's mobile me website at [url]http://www.me.com[/url]? I would love to implement it in my own login box.

Member Avatar for Taywin
0
87
Member Avatar for lf.gene

Hi all, i have difficulties in appending my sql query in php. Need some of your help to guide me along. Tell me where does my code goes who. Thanks. for ($i = 1; $i<=$dayc; $i++){ $daya[] = $_POST['day'.$i]; } $link = mysqli_connect($HOST,$USERNAME,$PASSWORD,$DB); $query = "UPDATE class SET Time_Slot_idTime_Slot = …

Member Avatar for lf.gene
0
149
Member Avatar for cmsc

i have this program that should print first name, middle name and last name. it almost works, but when I print strings, weird characters appear. I don't know how it's called, but instead of strings appearing, those characters appear. does anybody know why? I included parts of my program here: …

Member Avatar for cmsc
0
91
Member Avatar for lm111

Hi, I need help binding the DataTable to the GridView. Let's say I have this code [code] string filter = String.Format("title LIKE '{0}'", str); DataRow[] rows = dt.Select(filter, "title"); Gridview1.DataSource = ?; Gridview1.DataBind(); [/code] I need to display only the filtered items in the GridView. What do I assign to …

Member Avatar for lm111
0
118
Member Avatar for sammeras

Hi Jquery Guros, I develop registeration form (in arabic). I added "validator.addMethod" to check the firstname text. I want to check that the "firstname" text must be in INGLISH leters OR Numbers(means, user can't insert arabic leters or anything else). [B]I added the script:[/B] ///////// chack firstname (English leter OR …

Member Avatar for fxm
0
535

The End.