199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for agenthobbs

I am creating a program to manipulate structures that are similar to linked lists. The problem i am having is in a text file that i am reading in there are delete lines like this. d 1 2 d 2 3 d 3 4 d 2 0 with the first …

Member Avatar for VernonDozier
0
121
Member Avatar for rashmigs84

hi i got a problem regarding inserting value into database. i have 2 labels and one textbox.. but in database only one cell is there to store these three values.please let me know the solution for this.. thanks ....

Member Avatar for ravichandra
0
93
Member Avatar for rmurphy1061

I am having a problem reading a date format in a file I am trying to count the difference between two dates. the format I have is 010108. I tried to break up the date mmddyy but have run into other errors. [CODE=python]import datetime as dt # US format month/day/year …

Member Avatar for vegaseat
0
131
Member Avatar for vishalsomani

Hi, I am trying to create a restrict access to page function in ASP on Dreamweaver. I have got an Admin table in the database which contains all required fields such as username, password, and Security Level. When I try to implement restrict access to page, on one page say, …

Member Avatar for vishalsomani
0
187
Member Avatar for quophyie

Can one of you gurus give me some help please. I am a new programmer so please bear with me. I have a header file called Deck.h and a cpp file called Deck.cpp. In my header file, I have a class called Deck which has prototype function called createPack as …

Member Avatar for quophyie
0
392
Member Avatar for Lensva

[code=c+] #include <iostream> #include <string> using namespace std; int main() { string a; cout<< "enter string" <<endl; cin>> a; string b; //======================================================== for (int j=a.size(); j>0; j--) { for (int i=0; i<a.size(); i++) { b[j]=a[i]; } } cout<< b <<endl; return 0; } [/code] i want the first character on …

Member Avatar for Lensva
0
124
Member Avatar for kory27

Does anyone know of a good slideshow component or snippet for cf? basically i would just like to rotate a few thumbnail size images in a featured area of my website. thanks.

Member Avatar for kory27
0
196
Member Avatar for s627y

I have an aspx page, which retrieves data from a table, I have Update, Delete, Cancel buttons. Update works, Cancel works, but Delete does not work, I get error: Must declare the scalar variable "@UID". My code looks like this: [code=vb] <asp:SqlDataSource ID="sdsDetail" runat="server" ConnectionString="<%$ ConnectionStrings:myConnectionString%>" DeleteCommand="DELETE FROM [table] WHERE …

Member Avatar for s627y
0
145
Member Avatar for hankora

here is the error I am getting _Default.CalculateFederalTax(double, string)':not all code paths return a value code: double CalculateFederalTax(double grossPay, string taxStatus) { // Calculate Federal Tax method begins // check for the Federal Tax status (Single) if (taxStatus == "S") { if (grossPay < 240) return grossPay * 0.12; else …

Member Avatar for dilkash2007
0
143
Member Avatar for stupidenator

Hello, I am writing a programming language in c++ for a class and I am having a problem understanding how to do some of it. The language is based on Forth, and you are allowed to redefine how any of the words in the language work. I am trying to …

Member Avatar for ithelp
0
143
Member Avatar for mreply

hi, can u tell me y linker gives error when we try to define a variable in a header file and include this in more than one source file? [code] /*test.h*/ int i =0; /*1.c*/ #include "test.h" i++; /*2.c*/ #include "test.h" i++; [/code] whereas the same works fine if i …

Member Avatar for Salem
0
276
Member Avatar for ¤| battousai |¤

Hello all, A few days ago I tried to use a mail script and recieved an error: "Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25....." Which was wierd because I had set the smtp server to my isp's mailserver. When I changed the smtp_port to 30, …

Member Avatar for ¤| battousai |¤
0
147
Member Avatar for ecostas

Hi. I used [B]Infopower[/B] for a long time but I can't afford to upgrade it to Delphi 2007. With Infopower I got TwwDBLookupCombo that allowed me to display a value, for example, a text ID, while updating the record with an internal ID. To place the component into the grid, …

Member Avatar for ecostas
0
415
Member Avatar for modaslam

Hello Geeks, I am working on a program for date,month calculation. I found this code used to convert to Gregorian format for calculation. It would be great full for me if anybody can explain this ... like 0.75 yy/4 .4*mm what are these constants why m-1, yy-1 etc.. [CODE] long …

Member Avatar for modaslam
0
149
Member Avatar for bornok15

i have written a simple class for OOP in mysql and php and when i tested if even if the values that i used also in my normal connection process is the same the mysql won't connect me to it.. this is my class: [CODE] <?php class DBlink{ protected $link,$dbname,$uname,$passw,$db,$hname; …

Member Avatar for nav33n
0
133
Member Avatar for Optimist

Hello, I am heavily involved in website optimization,and would like to know if anyone could put me in the right direction of where to find unbranded website promotion tools for my website ie: Link pop checker,search engine submitter,keyword density analyzer etc. I would greatly appreciate any input Sincerely, William Reeves …

Member Avatar for bengong79
0
134
Member Avatar for javagurlush

How To Filter Invalid(vulgar) words in JSP? when data was entered to a textbox it must not contain vulgar or bad words.The event is processed before data is saved and posted. Do I need to specify each word or there are some shortcuts for it? Can you give me a …

Member Avatar for peter_budo
0
317
Member Avatar for Ben10

Q- Use swapping concept to swap the elements of 1D array consist of 10 integers. Ask the user to enetr the values of array elements then print them out to the screen before and after swapping. e.g. a[0] ----> a[9] a[1] ----> a[8] a[2] ----> a[7] a[3] ----> a[6] a[4] …

Member Avatar for Ben10
0
214
Member Avatar for cindynicole

I'm sure my problem is pretty simplistic, however, I'm having issues with it. I'm trying to add class objects to an arraylist. Are there any good tutorials for this or any good pointers? I would post some code that i have but i need to first see the guidelines for …

Member Avatar for manal
0
97
Member Avatar for cedtech23

I'm trying to create an array that will hold the first name of 100 users I tried char fname[100] but I realized that only creates an array that hold 100 char. how do you create an array to hold 100 entries that has a max of 50 chars in each …

Member Avatar for Ancient Dragon
0
173
Member Avatar for octavia

Hi all my friends, As i'm beginner in VC++, i encountered a lot of problem in debugging. I think my knowledge and academic studies should be distinguished properly. I know only c++ but i have OOP knowledge in c programming. But i am not able to handle the debugging in …

Member Avatar for Ancient Dragon
0
328
Member Avatar for mcx76

I added the php form but its not working. [B]"php file"[/B] [CODE]<?php $message = ''; $to = "zeee76@gmail.com"; $from = $_POST['email']; $message .=' <b>name = </b> '.$_POST['name'].'<br /> <b>email = </b> '.$_POST['email'].'<br /> <b>company = </b> '.$_POST['company'].'<br /> <b>telephone = </b> '.$_POST['telephone'].'<br /> '; $Mail_header = "Content-type: text/html\n"; $Mail_header .= …

Member Avatar for nav33n
0
90
Member Avatar for Iqbal_h_a

Hi All, I am struck with following problem. Please help me out. I have defined a Oracle procedure as follows. [code] PROCEDURE JOB_EXPORT IS cur CWTYPES.cursorType; l_nextdate DATE; -- JOB_NEXT_RUN l_interval VARCHAR2(64); BEGIN OPEN cur FOR SELECT JOB_NEXT_RUN, JOB_INTERVAL FROM JOB_EXPORT_CDRS WHERE ACTIVE_STATUS=1 AND JOB_INTERVAL IS NOT NULL LOOP FETCH …

Member Avatar for Iqbal_h_a
0
169
Member Avatar for bhakti.thakkar

hi all, Table 1: ID | COL1 1 | 1 1 | 13 1 | 64 Table 2: ID | COL1 1 | 14 1 | 13 Output needed: ID | COl 1 | 1 1 | 13 1 | 14 1 | 64 How will i accomplish this??? Thanks …

Member Avatar for bhakti.thakkar
0
81
Member Avatar for jimJohnson

I have never posted anything in here for java so if I don'tuse the code tags right I apologize...anyways I compiled an assignment in text pad and have a ton or errors and I was wanting to know if it is something minor or I am really that stupid...thanks Here …

Member Avatar for whoost
0
292
Member Avatar for demroth

I am trying to match a string to see if it follows a given pattern. I have seen this example in my Orielly books but do not understand the logic. Here is the a small snippet of example code: [code=cplusplus] const string digits("0123456789"); const string float_digit = digits + '.' …

Member Avatar for Rajith Cherian
0
120
Member Avatar for LSUinotep

I am in the process of making a bank account class. I need to put a copy constructor to compare the checking and savings account. Also I need to learn how to insert the checking and savings accounts. I need an assignment operator to assign the checking account to the …

Member Avatar for VernonDozier
0
171
Member Avatar for bhavna_816

I have a function which have return type DataRow and the parameters for the fucntion are the parameters for the stored procedure. I have to execute the Stored Procedure with given parameters and populate the datarow so that the return will be the populated DataRow with the output of the …

Member Avatar for razool
0
337
Member Avatar for charlez40

Hey everyone. Before i start i'm writing up this code for my mothers employee database. I have attached two files. An example of how it's going to be run through a picture and the employee database which is a .txt file containing data such as first name, last name etc. …

Member Avatar for Rajith Cherian
0
114
Member Avatar for Diode

I don't know about C, but I read that C++ doesn't have any "standard" library for networking stuff. I was wondering which libraries for C were more popular or higher acclaimed. And who better to ask than the experts themselves? Many thanks in advance diode

Member Avatar for Diode
0
113
Member Avatar for Tom21

I have write a code to read data from a file and i try to put it in a queue but i don not know who to put in th queuue.IS anybody who can give an example??? my code is bellow: [code=c] if((fp=fopen("read.txt","r"))==NULL){ printf("\nERROR OPENNING THE FILE"); exit(1); } while(fgets(line,100,fp)) …

Member Avatar for jonnelgrande
0
75
Member Avatar for Barbarrosa

Hey, I am currently trying to read a text file, which looks something like this: 1 2 3 4 . . a b c . . . I would like to read the integers and characters into the same array. I tried using a char, string.. hoping that it would …

Member Avatar for shuban
0
94
Member Avatar for snow00

Hi, I am a newbie for MSSQL. Previously, I was given a question regarding MSSQL. Although the interview had over, but I am curious to find out on how to solve the question below: There are 2 tables, NAMES (ID INT IDENTITY(1,1), NAME SYSNAME) and RELATIONSHIPS (NAMEID INT, PARENT_NAMEID INT) …

Member Avatar for snow00
0
581
Member Avatar for farag

Hi I have a homework program to convert from postfix to infix, almost most of the functions are done but i can't make few functions to make the program run correctly Please help me finishing the remaining functions Here is the code [CODE]//------------------------------------------------------------------------------------------------------- // NextToken.h #ifndef NEXTTOKENH #define NEXTTOKENH #include …

Member Avatar for WaltP
0
152
Member Avatar for mcx76

I am trying to add FLASH(swf) file on site.But unable to do.Can be seen [URL="http://www.cravingcatering.com/osc/index.php"]here[/URL] white big space.Movie not loading. Or i place the swf on wrong place.Please guide.Thanks I use this file to update. [CODE]<?php /* $Id: languages.php,v 1.15 2003/06/09 22:10:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions …

0
82
Member Avatar for agenthobbs

Ok i am writing a program to manipulate structures that are similar to linked list. I have a file that has these contents. 4 5 0 0 0 0 1 0.1 0 2 0.2 0 3 0.3 0 4 0.4 1 0 1 1 1 1.1 1 2 1.2 1 …

Member Avatar for agenthobbs
0
164
Member Avatar for marcosjp

Hi there! I'm new to Java and just arrived at this forum. I hope I can get some help here - getting a little desperate. Well, I have to develop a small game in Java and in this game the user must be able to click on different spots on …

Member Avatar for marcosjp
0
158
Member Avatar for Kobussie

Hi everyone! :) I'm just starting out with php and mysql, and encountered the following problem: I have installed: Apache 2.2.8-1 PHP 5.2.5-7 MySQL 5.0.51-3 on an Arch-Linux system. Apache and PHP are working: I tested that. I can log in to mysql from the commandline; I made a small …

Member Avatar for Kobussie
0
95
Member Avatar for USUAggie

Hello all, I am having a bit of trouble overloading the [] operator on a template based LinkedList class. Could you all tell me what I am doing wrong? Thank you so much. Basically it is to provide my template based linkedlist class to act as a normal array. Here …

Member Avatar for USUAggie
0
224
Member Avatar for Designer_101

HI CAN ANYONE SEE Y THIS IS ECHOING OUT TWICE THE AMOUNTS OF EACH FIELD IN MY DATABASE??? [CODE=PHP]<?php $count = 0; $data = array(); $query = "SELECT * FROM profile WHERE ID = '1' "; $result = MYSQL_QUERY($query); $line = mysql_fetch_array($result); foreach ($line as $col_value) { $data[$count] = $col_value; …

Member Avatar for Designer_101
0
117
Member Avatar for iliasb

Hello Everyone, I have a "small" problem with java. :-) I made a Php - Javascipt for displaying the status of my servers. The Xml response and the php scipt are working fine. But the Javascipt doesn't do what i want it to do. I Have 2 Divs in my …

Member Avatar for iliasb
0
134
Member Avatar for papaJ

Hi, I'm writing in python for s60 (nokia cell.) and working with Canvas and Image, while i'm moving through the image using: [CODE]canvas.blit(image, source=((sourceLocX, self.sourceLocY), (sourceLocX+ canvas.size[0], sourceLocY+self.canvas.size[1])))[/CODE] i can't seems to zoom in/out, I looked into Image and Canvas documentation and still don't understand how to do that... anyone …

Member Avatar for papaJ
0
99
Member Avatar for adnanius

Hi, I'm trying to 'reduce' a vector using the erase algorithm within a for loop. The idea is to scan a table looking for equal successive elements. Once equal elements are found, it erases one of the 2 elements. I'm suspecting a problem in the for loop, due to the …

Member Avatar for adnanius
0
302
Member Avatar for hockeyplayer051

Ok guys, our C++ class is winding down and for our last assignments we are getting some tough problems. We are asked to write a telephone directory program that looks up phone numbers from a separate file that contains a list of names & numbers. The program should prompt the …

Member Avatar for Ancient Dragon
0
96
Member Avatar for linux0id

Hello everyone! I am writing a function to multiply two matricies together. I have written a simple algorithm for a matrix 3x3 - [CODE]void multiply() { int a[3][3], b[3][3], c[3][3], i, j , p, val = 0; a[0][0] = -1; a[0][1] = 0; a[0][2] = 1; a[1][0] = 5; a[1][1] …

Member Avatar for linux0id
0
86
Member Avatar for hwa

On my attachment have the table I want to know how to make the comparison like: [COLOR="Red"][B]DUE_DATE_TIME + DURATION(in hours) <= OVER_DUE_DATE_TIME[/B][/COLOR] If the above statement is wrong then must prompt out the message box: (I'm also need help in how to prompt out the message box, Thanks) Can yours …

Member Avatar for Jx_Man
0
267
Member Avatar for jcato77

I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the entire inventory. I have what I think is the correct …

Member Avatar for jcato77
0
150
Member Avatar for petersrin

I am very new to programming in general, and of course, it follows: to Python. Yet, I am in desperate need of a particular database program, and I am attempting to write it via objects, since I need to learn the ways of OOP anyway. I am currently trying to …

Member Avatar for petersrin
0
148
Member Avatar for sukhy_1

Hello i want 2add the name of the person who logged in at the top of the page, but the name comes from a SQL database called details, but the username and password is kept in another table called member they both are linked by id, this code below luks …

Member Avatar for Suomedia
0
87
Member Avatar for nikk

Hello friends, i've a "editAccount.jsp" page wherein i accept various details from users. And then check their input (Eg. Email field should not be blank)through a function in javascript. But my JSP does not check the input and directly stores the values in database(even if email field is empty) I …

Member Avatar for nikk
0
182

The End.