199,114 Archived Topics
Remove Filter ![]() | |
Hello everyone, I have a question regarding advanced file manipulation. I am trying to make a function that will take in a number which will be the number of a record and basically take that record out and display its contents and let the user edit it. Here is the … | |
[CODE]map<string, int> Employees; Employees.insert(map<string,int>::value_type("John A.",7582)); [/CODE] what does the value_type do? what is the difference between pair() and make_pair() | |
sup all. Im having a major problem with vb.net. im making a program that reads the source code from the webbrowser1 and if it contains these words "You Won!" then all my timers stop and a msgbox comes up and says "You Won!" but when the website actually does say … | |
hi, I want to know how can i allow user to download an mp3 file on his click in asp.net vb. | |
How to use for Adrottetor in my web site? pl z... all about discus and give any Essy example. | |
Hello, I have written a 'predictive text' widget using JavaScript/AJAX. When user enters a string of letters into form, the list of possible matches is displayed under the form. This works well and good, now I am trying to make it so that when the user clicks on a certain … | |
hello can you help me how to trap the textfield length..example if i will iput in my textfield 00001 then it will only accepts 4 digits can you help me how to make this trappings...hoping for your positive responds.... | |
I am having problems with my code it says that the value compare is not being intitalized please help. I need to enter seven words total then sort them out.please help. [CODE]// it might work2.cpp : Defines the entry point for the console application. // #include "stdafx.h" /* Inputs a … | |
When some datas are inserted in to a DB table from a jsp page, how do i get the primary key in my table autogenerated?? finiding out the highest value for the primary key in the table? Pls help me wid the coding in JAVA or HTML.. I use SQL*PLus. | |
Hi, Here's a part of the code: [CODE]#define S 1000 /* rows */ #define T 200 /* columns */ int main() { int n, i, j; float **x; x=(float**) malloc (T*sizeof(float*)); for(i=0; i<T; i++) x[i]=(float*) malloc (S*sizeof(float)); memset(x, 0, sizeof(x[0][0])*S*T); return 0; }[/CODE] This was compiled well (gcc) and had … | |
Hi, I'm creating a Java Swing application that lets the user enter the usual details one would expect in an address book then click the save button. The current JPanel will then be hidden while another JPanel is shown. This second panel is used for viewing all the contacts added … | |
Hi people! I need your help with a find function for a glossary program that I'm writing for my own use. I'm using python 3.x and have already made a find function, but I don't like how it came out. Let me explain with an example: First, let me show … | |
Hi everyone, I got prob with my proj that is reading data from Mifare Card using Contactless Card Reader (ACR120U). for the connection its successful but need to press cmdButton to grab a data from Mifare card. So if anyone got idea how to grab data automaticly such as flash/touch … | |
Hello; I am trying to build a JDesktopApp The structure of a Session in a web app: a user logs in and a session specific to the user is saved.(basically). My question is dealing with a Desktop app. If a user logs in can the same concept be used? I … | |
Hey all. Ok i've written the code below with no syntax errors. However, im struggling. 1) For Button 1 - Check Balance, I want to firstly bar out the pin number so it doesn't show. How do I do this? 2) For button 1 - I have added show input … | |
Hi all, I've looked through this forum for some hours and am absolutely unable to fix my problem; no matter what I do. I'm trying to pass a PHP variable as part of a MYSQL query like so: [CODE] $id = $_GET["bodyid"]; $blog = getEntries("SELECT `Articlebody` FROM `Blog` WHERE id … | |
[CODE]# PURPOSE: to calculate the sum of the first (n) odd counting numbers # # INPUT(S): the number (n) which will be the last number added to the sum # # OUTPUT(S): the sum of the first (n) counting numbers # # EXAMPLES: input: 23 ; output: 144 # input: … | |
i want to create a feedback form for my website [url snipped]. as i m using free host it doesnt allow PHP so i want to create it using JAVA. please help me create a feedback form which when submitted automatically send an email to my ID. if it is … | |
hi I am having VC++ 2008 express edition downloaded few days before....will you please help me how to compile c++ source file,debug and run it....pls....hv no time to read dat help topics...pls help me out!! | |
Hey guys. I'm having some issues with my Visual Studio 2008 Pro. I'm trying to compile the following code, included in the link [url]http://pastebin.com/r6WsG5r7;[/url] but, whenever I try compiling the code, I get like 5 erros: The errors are listed below. Why is it that moving certain declarations around changes … | |
Good evening everyone and hope you all had a good weekend. I am working on a site which allows the user to search database records based on entering either a reference number of a person' last name and then clicking the submit button. This brings the user to a results … | |
Hi all, I need to write a program that will first read a file and then 1. Output all the words that appear in a file. 2. Treat only sequences of letters and digits as words, i.e., all other characters such as punctuation marks should be used as word delimiters, … | |
For a CS project, I need to have my program "gracefully terminate" in case of certain user input errors. What is the best syntax to do this? | |
Hi everyone, I am trying to validate a user registration form. User must enter letters and/or letters only. [CODE]//check username $_POST['user_name'] = trim($_POST['user_name']); $checkChar ='/^[a-zA-Z0-9]+$/'; if (!preg_match($checkChar, ($_POST['user_name']))); { $error['char'] = 'Username must contain letters or numbers only'; }[/CODE] When I submit the error message keeps coming up when it … | |
Assignment: Create a program to practice reading in from a file, search for a particular word when the user inputs a word to search for and a file via command line args. Print out the entire line each time it is found. Progress: It compiles, and runs.... kinda. Problem: I … | |
[QUOTE]Hello..can anyone help me in order to solve this problem regarding the collision that happend.. I use the modulo-division hash function and intended to use the chaining solution method to resolve this collision but i got stuck.. because i dont really have the full knowledge in link list..Can someone that … | |
Hello, it is me again with another homework assignment. I am having issues starting this one. Every draft I make for it feels way too long and that I can make it much, much shorter. First, I am using Python version 2.3.2. I am using graphics.py, buttons.py, and am basing … | |
Hey,have been having a problem with this code,dont no what to do here,trying to find the letter in the secret word in hangman.when the user inputs their choice how do i compare it with the secret word.was using a for loop but not sure [CODE] cout<<"\n\t\t *********** H A N … | |
Hey all, I got interested in using smart pointers and tried to implement the following solution: [URL="http://www.davethehat.com/articles/smartp.htm"]http://www.davethehat.com/articles/smartp.htm[/URL] It's probably far from perfect but this is mainly a learning experience. It's a non intrusive reference counted implementation of a smart ptr. And somewhere in the article the assignment operator is defined: … | |
Hey guys, I'm sure this has been done before, but I haven't found the snippet yet. I think I have to use preg_match_all. Here's my very simple stopping point: [CODE]$content = $obj->introtext; $xml .= "<ImageUrl><![CDATA[$content]]></ImageUrl>";[/CODE] Here are two examples of the introtext table data: [QUOTE]<p><span style="font-size: 10pt;"><img src="images/stories/D-West.jpg" alt="D-West" style="margin: … | |
hi, i am new to php. i had a problem with insertion. when i upload a file i should get the filename,uploadedby,uploadeddate,and size of the file in a table. first of all i am not getting inserted in the database itself. so can any one help me ..... --------upload.php-------- [CODE]<html> … | |
The title maybe a little bit confusing, I will explain it. I am using opensuse. Usually I work in a shell like this: $vim test.py $python test.py >>>running... >>>running... >>>running... >>>running... $ Here the program end, but I cannot make further change nor access to the variable. I know I … | |
Hi guys, In my lab I was given a source code and was tasked to write the function to compute the largest value of a vector, and a for loop to show how elements does the vector has.But the output is now right,it gives me the largest element is zero,and … | |
This has taken many hours of mine. I have to get this .Net app to run on an XP system. Someone seems to have messed up some files so conn.Open() in the C# is causing this error: [CODE]Connection Error:Oracle.DataAccess.Client.OracleException ORA-12170: TNS:Connect timeout occurred at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, … | |
Hi, I'm trying my first program using servlets and JSP and would appreciate any help or advice about a problem I'm having. In my servlet I'm connecting to the database and displaying all the records in there. I'm then trying to add data to a JavaBean so that I can … | |
Below is the code, when it run shows a combination of back-slash and forward slash and by putting them together and printing them shows a stick rotating. The problem is that it is only rotating at a same position I want to move it back and forth in a line. … | |
Hi, I am having the same problem [I]<<mod edit: [URL="http://www.daniweb.com/forums/post228229.html#post228229"]as this[/URL] >>[/I] when i update my record in Access Database. It is successfully updated the record in the database. but the dataset in my project is still not updated. I am using vb 2005 to develop the application. Any one … | |
Hi, I am using following code to Highlighting keywords in a text or resume. My code: // al is an Arraylist which have keywrods as .net, java, xml... [code] al = (ArrayList)Session["keyWords"]; for (int i = 0; i < al.Count; i++) { if (s.Contains(al[i].ToString().ToLower()) || s.Contains(al[i].ToString().ToUpper()) || s.Contains(al[i].ToString())) { //s … | |
hey everyone. I am supposed to make a program that finds the smallest number out of a set of numbers. the amount of numbers input is up to the user. i have to print the smallest number, and what input it was (ex, 1st number 2nd number 3rd number...) i … | |
It cannot display the value of the checkbox,please tell me what wrong of it! Thak you [ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" c /> <title>Untitled Document</title> </head> <body> <?php if(isset($_POST["Sumbit"])) { $fruit=isset($_POST["apple"]) ? $_POST["apple"]:""; if(isset($_POST["bananan"])) { if(!empty($fruit)) $fruit.=", "; $fruit.=$_POST["bananan"]; } if(isset($_POST["orange"])) … | |
It's been about a year since I've used C++, and I'm having a weird error that I can't remember why it does this, or if there's actually something wrong. My destructor gets called twice when I declare my object via the first method, and only once (correctly) when it declare … | |
I haven't got any luck finding why this program wouldn't work. Here's the code. [CODE]int main (void) { ifstream file; char *streamer = NULL; file.open("now.txt", ios::in | ios::binary); if (file.is_open()) { while (!file.eof()) { streamer = new char[33]; cout << "Prestream: " << streamer << endl; file.read(streamer, 32); cout << … | |
here is code[ [CODE]#include<iostream> #include<fstream> #include<conio.h> using namespace std; struct book_dtail { int copies; char title[50]; char author[50]; int year; char **bn; }; void main() { int size; ifstream indata; book_dtail user_book[5]; indata.open("file path to be added here"); for(int count=0;count<5;count++) { indata>>size; user_book[count].copies=size;//2D array initialized. user_book[count].bn=new char*[size]; for(int temp=0;temp<size;temp++) { … | |
I wanna know how 2 return string by using function for example if we want to check the lenght of string we use cout<<strlen("c") but how to use this by fuction | |
[QUOTE]hi, i am new to php. i want to get the uploaded filename,uploadedby,date, and size of the file. dont know how to get the name of the file and size. so please any one.... [/QUOTE] [CODE]<html> <body> <form enctype="multipart/form-data" action="upload2.php" method="POST"> <table> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> </table> <table> <br><br> <tr> … | |
Hi, I am writing a program that has a listbox which is bound to a dataset. When I click a button (e.g. delete) the item is deleted from the database ok using an SQL query but is still shown in the listbox. How do I get the listbox to refresh/update … | |
could someone please let me know the encryption level of the encrypt function of coldfusion.... as far as i know it supports onjly 32 bit encryption...are there any chances of it supporting any other encryption levels.... has anything happenend in coldfusion7? | |
Hi all, I have a database with contact info, and I need to display the info in groups. Currently in my database table called contacts I have a field called 'groups'. The values are 'favorites', 'home', 'work', and 'friends'. I tried creating a page called group.php and used a dropdown … | |
Hello I have 2 databases, one is like a backup for the other. So they have identical tables: Alarmi, which has columns: OBJEKT, OPIS, VREDNOST, START, E_A, UPORABNIK I want to compare those two tables and copy only new entries (rows) to the backup database. How can I do that? … | |
Hi I am using C#.net to develop one web site . I want to search facility means if i enter word for search then it must get highlighted on page /text box then if i click(OR move mouse there) on that highlighted word then it shows detail information. Just like … |
The End.