199,114 Archived Topics
Remove Filter ![]() | |
I'm working on this program that implements the Horspool string matching algorithm. The program reads in a text file and searches for the pattern text provided in main.cpp. The StringMatcher class is supposed to return the index of the first letter of the pattern in the text and count the … ![]() | |
// My JSP coding. This is stored in the following path http://localhost:8080/vennila/test.jsp <HTML> <HEAD><TITLE>DataBase Search</TITLE></HEAD> <BODY> <%@ page language="Java" import="java.sql.*" %> <jsp:useBean id="db" scope="application" class="SQLBean.DbBean"/> <jsp:setProperty name="db" property="*" /> <%! ResultSet rs = null ; ResultSetMetaData rsmd = null ; int numColumns ; int i; %> <center> <h2> Results from … | |
i have stored image in the database.how can i retrieve it a and display in asp.net webform. am not asking display thru datagrid.i have to put link to those images plz help me to solve this problem | |
Does anyone have any idea how I would code this I'm having some trouble coding it, I would appreciate it very much if you could provide a code in C++. Been trying ot figure out this for couple days but keep getting syntax errors for some reason. 1.) let the … | |
Hello to you all , I am having a little trouble in C , working with Files. for some reason , it doesnt copy to output file the first letter and jumps over 3 digits of the last number in the file . whats wrong , i cant find it … | |
I have a Javascript that I want to access from several different web pages. I want to locate the .js file in the web root (httpdocs) folder and access it from different webpages in sub folders. I've tried setting the src attribute to the URL of the web root but … | |
Hi Guys! I am newbie to MS-SQL Server and I’ve run into a very very serious trouble. My company/organization that I am currently with is running MS-SQL Server 2000 Standard and our problem is: MEMORY Out of my stupidity I upgraded our server’s memory to 4 GIG and to our … | |
Sorry for the crummy subject, but I have a serious problem here. I'm trying to check myself as I code and I keep having issues with seeing "old" code. I'm putting together an applet for a class assignment, and I have been periodically trying to view my code (what it's … | |
Hello I read sessions and php but it's not exactly registering in my head that I understand it easily. On my site someone signups all is good they get their email and register sign in. I have them signup with a Desired Username, Email address and Password okay. Now when … | |
I have just started to learn about stacks and have been scouring the net for information. I am having trouble coming up with an answer for this question: Suppose you were asked to add a function CountStack to the stack ADT that would return the number of items in the … | |
I'm in an entry level c++ class. My professor wants us to write a array project that keep a frequency count of each of the italic alphas, also keep a frequency count of other characters entered (numbers and symbols). The project output a frequency count of each italic alpha, and … | |
I download turbo c++,but I can`t use ther a SHIFT key :cry: ( I can`t do // or #)it just ignore shift. :sad: | |
We were given a heap sort in a pseudocode: [CODE] ******* HEAP SORT ******* sift(A, l, r) ------------- f <- l s <- 2 * l temp <- A[f] found <- false while not found and s <= r if s < r and A[s-1] < A[s] then s <- … ![]() | |
ok, i kinda feel like an idiot asking this, but here it goes simple setup for example purposes.: [B]#include<iostream> #include<stdio.h> using namespace std; int main() { system("cd\") return 0; }[/B] ok, as you've prolly already noticed, the CD\ will return an error saying that there is an invalid terminator because … ![]() | |
hi, I have a problem of concatenating 2 strings. 1 of the strings is defined in the code and the other one is asked from user. This small code must only concatenate these to strings but doesn't work... here is my code: [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct deneme … | |
I am so stressed, My membership signup was working fine. Now it's not emailing. It is entering into the database fine but not emailing can someone tell me what is the problem, Thanks Kindly I'm Exhausted... To session_id is to the person who just signed up. // Let's mail the … | |
i have a *.dat file which is i am sending as attachment can any body help to convert this file in to text file or any other database format such as access /oracle etc | |
when i am using a data array and taking the character one by one in each array and inserting in to a table using codes but when i am getting inverted comma it is giving an error massage ' is any other method to convert text in database | |
to start with c++, I got to know what is required to be added for starting c++ builder in a system where visual studio is installed | |
[B][COLOR=DarkRed]Hello all, Just want to know if you guys can recommend me some good links where I can learn how to make a robot with keyboard interactivity using OpenGL GLUT. Thanks in advance... :cool: [/COLOR][/B] | |
HI all, I'm having trouble putting a GUI on an existing java server program i have. I have added a frame to the code but all it does so far is pop up, there is no interaction.. I've tried moving all of my functions accross but to no avail.. i … | |
one of my forms, when anything is done to it (opened saved etc) shows an error message. here is an image of the error message. anyone able to shed any light on this? | |
IWhat exactly is the "unsigned" use for in sql and when should i consider using it? | |
I have a question that i am having difficulty with. The question is to write a function that creates the following pattern given the height(number of rows)which must be even. Please help! * *** ***** ******* ********* ********* ******* ***** *** * Here is the code i have so far … | |
Hi guys, Right now I develop a website that use Microsoft Access database. So, I've developed a database that store all my pics and videos. But when I tried to make a recordset (this is a command in Dreamweaver MX, as I use it to develop my web pages) to … | |
I have a mm-a940 samsung is there any thing I can do to tweak this phone for better | |
please can you help me in this BankAccount code i do it but the teacher remove some my code and ask me when i see complete i complete but i when i do it i have some error can you help me i will post my code the client code: … | |
I'm unable to format the date fields when I export from Access 2000. I'm trying to generate a report that has to be comma delimited, strings in quotations, and date as mm/dd/yyyy. Everything looks the way it should until I export. I get mm/dd/yyyy 0:00:00 everytime. There are several tables … | |
Im a beginner in C language and I have a problem with strings in array mostly. Question : User is required to input ID number, which consists of 7 characters. First 2 characters have to be Alphabets and the last 5 will be numbers. Example, AB12345 Task : Error checking … | |
I need help. Here is the homework problem: Write the definitions of the functions to implement the operators defined for the class dateType. Here's my code: Header: [CODE]#ifndef dateSType_H #define dateSType_H //dateType name changed to dateSType class dateSType { public: // ************ Mutators follow ************ void setMM(int month); //Function to … | |
Hi y'all! I found this forum through google and I was hoping that I could get some help!! I've been assigneda rather odd assignment by my C++ teacher. I have a 2d array of names (names[17][20]) which has to be sorted alphabetically via selection sort, we can not use pointers. … | |
New Problem... it keeps outputting both under and over par grrrrrrrrrr whats wrong with my if statement??!! [code] if (StrokeCount == 5 ) { cout<< "You are on Par Way To Go!!"<<endl; cout << endl; } else if (StrokeCount < 5) { Par = 5%StrokeCount; cout <<" You are "<< … | |
I am quite confuse between Visual Basic 6 & VB.net. Can someone please explain what is the different between these 2? I have some comment from my friend saying it is better to learn VB.net than VB since i am a beginner. Is the VB refer to visual basic 6 … | |
Hi, supposed to implement a game where the queen(counter) is supposed to travel over all 64 squares in 16 moves and it must highlight or mark squares allready passed over. Been at this for last two nights and begining to lose patience any help would be great, thanks. Code is … | |
Ok heres the problem ( and no laughing at my code!! ) I need it to change the value of the strokedistance to the holedistance when the strokedistance makes the holedistance less than zero. Any suggestions, ideas, tips, and it doesnt have to be specific to my problem maybe just … | |
[PHP]<html> <head> <title>Participants</title> </head> <table align="center"> <tr> <td> <a href="http://www.officalhalo.com">Home</a> <a href="/tournament/FFA.htm">FFA</a> | <a href="/tournament/signup.htm">Sign Up</a> | <a href="/tournament/results.htm">Results</a> </td> </tr> </table> <body> <h3 align="center">Participants</h3> <?php $gamertag=$_POST['gamertag']; $eaddress=$POST['eaddress']; if (!$gamertag || !$eaddress) { echo 'You have not entered all of the required information.<br />' .'Please go back and try again.'; … | |
Need help with a function that reads from a text file usins fscanf function. example say there is 20 stings that are 60 chars long on their own individual line. Does fscanf() read the whole text file or does it read only up to the carriage return. If it doesn't … | |
Me again. Another stump. This time I have to recieve two inputs from the user and perform a few math operations using both those two inputs. Meaning I have [B]String a, b;[/B] for my two user inputs. Is it possible to get all 4 of my math operations, addition, aubtraction, … | |
Hello everyone, I am having some problem in reading the data inputted in a file correctly using linked lists. I think this might be because of having pointer next of type password class. Thanks, comwizz. The code is posted below. You may directly see the section if (reply==3) as that … | |
[CODE]# tpm.py # Take two inputs, age and years of citizenship, and returns eligibility for # senator and representative. from graphics import * def main(): win = GraphWin('Eligibility' , 400,400) win.setCoords(0.0,0.0, 4.0, 4.0) Text(Point(1, 3.0), 'Age').draw(win) Text(Point(1, 2.0), 'Years Citizen').draw(win) agebox = Entry(Point(2, 3.0), 10) agebox.draw(win) citizenshipbox = Entry(Point(2, 2.0), … | |
I have been working with the new Studio 2005. I am creating several apps, one with multiple documents and some others that are more dialog box type apps. I have done some MFC in studio 6 (C++) but I would like to understand when it is better to use MFC, … | |
I'm trying to pass the valuee from the arrays for age, sex, and wTime to the cal_Fitness_Level function, but I can't seem to get it right. I either get the same level for everyone or garbage. code and data follows. [code]#include <fstream> #include <string> #include <iomanip> #include <iostream> using namespace … | |
Hi I'm new here so be gentle! ;) I have a php form which poppulates an HTML <Select> tag with a list of approx 2500 items which consist of an id; a code and a name. The items come from a MySql database To make it easier to use I … | |
Hi, i'm very new to sql so to say i'm a bit confused is a bit of an understatement! I'm tring to set up a search facility so that results from multiple databases will come from just one form. A better way of explaining would be to show an example … | |
Hell ive written some code : [php] #include <iostream> #include <string> using namespace std; int main() { string a; string b; a = "ABCDEF"; b = "$"; a +=b; cout << a; if(a.find == 1 , "$") cout << "FOUND" << endl; else cout << "NOTFOUND" << endl; if(b.find == … | |
I have a code in which I want to swap an element in a matrix with another. User inputs the row, column no of the elements to be swapped. But the code doesn't seem to work. Can somebody help? PS: The swapping starts in the snigleplayer() function. [CODE]#include <stdio.h> #include … | |
hello, Thanks to previous help which has gotten me this far. However, my lovely program, although looks great in theory doesnt do what its supposed to do. When I type in 3 words, it doesnt put them in order as it should. Can someone point out to me where I … | |
I am having trouble understanding classes, I'm new at this and have not had any problems with c++ until now. This is what I have so far. I was supplied the driver and cannot make any changes to it. Any help would be appreciated greatly. Thanks. [CODE]#include <iostream> using namespace … | |
Ok so I have a couple of files within a C program diffrent files for diffrent things etc. What I want to know is, Can I open all the files at the beginning of the program (in main) and close it when the program exits or Should I write the … | |
Ok i am having a little trouble trying to figure out how to pull the x-cordinate from p1 and p2 so that i can use it later in the code to build a door. # This is a program to build a house in five clicks from graphics import * … |
The End.