199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Venom Rush

^ | | | javascript noob Hi there I have the following script that strips out acceptable non-numeric characters that you would find in a telephone number and then checks to see if it is equal to ten digits. The problem I have is that I can't figure out how …

Member Avatar for Venom Rush
0
110
Member Avatar for Ints

I have a c program that I need to use in dos 5 but i haven´t found a way to do so .Programs that work perfectly in Win XP console window, will not work in dos.Does anyone know : What do i have to add to my code so it …

Member Avatar for jephthah
0
133
Member Avatar for gretschduojet1

Hey everyone, I haven't been here in sometime but I'm in need of some guidance. One of the questions I have is how do I enter the name, length, and time for each course? Thanks in advance for the help. Here's what I'm supposed to do: Using OOp inheritance and …

Member Avatar for Agni
0
128
Member Avatar for clueless101

This is my first exposure to arrays. I need to create a 1-dimensional string-based array with five elements. I need to assign 5 different names to the array. Use a for loop to iterate through each of the array elements, displaying the names in a message box. I would truly …

Member Avatar for clueless101
0
135
Member Avatar for ilias_de

Hey , i am trying to make an encryption program . With any codes i've found until now i didn't manage to solve my problem . my problem is about saving my data from a multiline text box to a text file . Basically i want , by clicking on …

Member Avatar for vadiraj
0
85
Member Avatar for Noliving

Here is the problem: Does the recursive algorithm for raising x to the power n work for negative values of n? Does it work for negative values of x? Indicate what happens if it is called for each of these cases. Here is my answer for the above: It's a …

Member Avatar for Noliving
0
240
Member Avatar for roachic

Hi everyone. I am trying to generate a certain number of sliders on my CDialog, that certain number is not fixed. I managed to make the sliders appear fine by doing this: [code]for certain length{ [INDENT]CSliderCtrl *tracker = new CSliderCtrl(); tracker->Create(WS_CHILD | WS_VISIBLE, CRect(left, top, right, bottom), this, i);[/INDENT] }[/code] …

Member Avatar for roachic
0
116
Member Avatar for lagyossarian

I have a gridview that has a couple of Label server controls nested inside an ItemTemplate. I want to assign their Text value when each row is databound (I'm using Profile properties so I have to get the user and their profile to get the values). [code=asp]<asp:GridView ID="grdUsers" runat="server" AllowPaging="True" …

Member Avatar for postmaster
0
205
Member Avatar for smartness

can anybody make this flash menu xhtml valid... i tried with some tutorials over the net but it still doesn't work. this is the code [CODE]<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="923" height="90"> <param name="movie" value= "http://www.zeriislam.com/menu.swf" /> <param name="menu" value="false" /> <param name="quality" value="Best" /> <param name="bgcolor" value="#1f314f" /> <embed src="http://www.zeriislam.com/menu.swf" …

Member Avatar for Suomedia
0
210
Member Avatar for Jacky1

Hi I'm trying to test my code but I keep getting some kind of strange errors bst.hpp: In member function `void Bst<generic>::insert(generic) [with generic = int]': test_BST.cpp:30: instantiated from here bst.hpp:36: error: invalid conversion from `int' to `int*' bst.hpp:47: error: ISO C++ forbids comparison between pointer and integer bst.hpp:52: error: …

Member Avatar for Jacky1
0
2K
Member Avatar for electromania

Hi, Im reading a file, with 2 columns. this is working such as [code] 1999 5848946 2000 5458445 2001 5757585 2002 7699865 2003 7459758 2004 5797054 [/code] as Im reading I want to be able to count how many rows I've read and also add the all values as im …

Member Avatar for electromania
0
104
Member Avatar for skelly16

Hi All Im having issues with my mail command sending data from my script. I have a korn shell script which logs onto a database and does a few select statements. The problem is i think the EOF stops my mail command sending the data. Im able to run the …

Member Avatar for eggi
0
781
Member Avatar for evios

hi...i am working on visual basic 6 and i need to pass the value to the database MySQL via ODBC, it is working fine juz leaving a small bug here, the code shown below: If player X wins, data below will be stored at MySQL: [code] blnAddMode = True rs.AddNew …

Member Avatar for fujilec
0
124
Member Avatar for strictlycustom

I'm trying to call up the pay, overtime, and totalpay that I get out of the second function. How do I do that? I think that's my problem. I get the following errors when I run the program: [code]How many hours did you work? 50 What is your rate of …

Member Avatar for strictlycustom
0
3K
Member Avatar for veronicak5678

I am trying to write a program with a Month class that will take a month as input, then display the previous and next month. It should use overloaded prefix+++ and -- operators and postfix ++ and -- operators. My month is decrementing, but when it should display the incremented …

Member Avatar for veronicak5678
0
108
Member Avatar for ElectorCount

I have a question regarding random number generators. I have already looked at the thread teaching me how to generate random numbers. My question is, is there a way for the generator to only generate one number 4 times? i am trying to randomly generate a deck of cards where …

Member Avatar for VernonDozier
0
337
Member Avatar for fruitkiwi

This code is provided as shown in below Now i would like to simplify it and hope someone can share wif me . Thanks [COLOR="Green"]Instruction User is required to enter a Roman number to be converted Decimal number. The symbols used in Roman numeral system and their equivalents are given …

Member Avatar for jephthah
0
191
Member Avatar for fruitkiwi

This is a question i copy from others,and i write the code but nid u to help figure out problem. User is required to enter a sentence in English to be transformed to Pig-Latin form. To transform a word to Pig-Latin form, the first letter of the word beginning with …

Member Avatar for jephthah
0
159
Member Avatar for D boss

Hi ppl, i am trying print a txt file from within my java code, here is the code i have done so far but i am getting some runtime errors, also i am trying to keep the coding to a minimum...any help would be appreciated, -------------------------------------------------------------------------------------------------------- package AddRFSwitchPac; import javax.print.*; …

Member Avatar for D boss
0
578
Member Avatar for Brent.tc

Hi all, I have a few general questions that need answering: 1) Is there a way for an application to run a few final commands before it closes (this one is for all applications, not just windows) 2) Is it possible for a window to 'see' the application that sends …

Member Avatar for Ancient Dragon
0
146
Member Avatar for R3B3L

I need help storing data in archives, I always get an unhandled exception when i try... [code=c++] #include"Inventory.h" #include"CustomerTransaction.h" #include <fstream> using namespace std; CarInventory* car_list; int main() { SLL<Customer>* customer_list = new SLL<Customer>; car_list = new CarInventory(); fstream file; file.open("Models.txt", ios::in); if (file.fail()) { cout << "\nFailed to open …

Member Avatar for Salem
0
84
Member Avatar for sbv

hi generally we calculate score / percentage as Obtained marks * 100 / Max marks. But when we have a avg marks then ? how to calculate score / percentage. plz help

Member Avatar for Majestics
0
108
Member Avatar for kharan

Hello: Please help me to solve this: >>> def printA(): ... try: print a ... except NameError: print 'variable undefined' ... >>> printA() variable undefined >>> a = "foo" >>> printA() foo >>> I tried to do the same think by importing a file "test.py" which has the function 'printA()' …

Member Avatar for vegaseat
0
105
Member Avatar for tvisha

Hi all I tried to run this code on C and I m gettin this error can anyone help me solve it ? also what is an intializer in C? what does it mean when the error says in line 5 about expected intializer before C? "C:\TurboCPP\c_work\DECQDER3.C|5|error: expected initializer before …

Member Avatar for Majestics
0
659
Member Avatar for lemichelle

Hello, From within a function, I'm trying to give data to certain members of a struct that I created. The struct also has an enum type that I created in it. Say this is the struct and the enum: [code] typedef enum {cat, dog, rabbit} Animal; typedef struct { Animal …

Member Avatar for lemichelle
0
94
Member Avatar for computer engW

I have some questions ,i can't solve it .The first one is, Write a C++ program using the switch statement that does exactly what the following program does: [ICODE] #include <iostream.h> #include <math.h> void main () { float number; int choice; cout<< "Enter you number"; cin>> number; cout << "Enter …

Member Avatar for computer engW
0
131
Member Avatar for vidaj

Hello I'm building a factory for my DAO's and want it to return the correct DAO based on the class of the ValueObject passed to the factory. Now, if this was java I would use something like this: [code=java] if (valueObject instanceof User) { return new UserDAO(); } else if …

Member Avatar for vidaj
0
133
Member Avatar for echocoder

I am trying to determine a way to create a timeout for a connection attempt to remote Oracle databases. If the connection isn't created in X seconds or less, regardless of the reason, I need to stop the connection attempt and report a message. Below is the relevant bit of …

Member Avatar for echocoder
0
338
Member Avatar for g_loughnan

Hi guys, I haven't a clue why this won't compile! I think the compiler is confusing multiplies as pointers. Here's my code: [code=c] #include <stdlib.h> #include <stdio.h> #include <math.h> #define pi 3.14159265; double data[] = { -0.15709,-0.25413,-0.1545,-0.011505,-0.052141,-0.24125,-0.28251,0.020464,0.48291,0.69804,0.46961,0.019997, -0.26036,-0.22194,-0.059284,-0.027764,-0.14373,-0.21843,-0.14153,-0.030971,-0.060482,-0.19966, -0.217,0.037288,0.41287,0.58642,0.40239,0.036834,-0.19954,-0.1839,-0.06484,-0.042241,-0.13189,-0.18949,-0.12998, -0.044059,-0.064511,-0.16527,-0.1656,0.048371,0.35412,0.8441,0.76091,-0.086579,-0.56076,-0.38969, -0.0037447,0.066327,-0.19043,-0.35463,-0.18658,0.055369,-0.015147,-0.35243,-0.4718, -0.038401,0.66734,0.99976,0.64583,-0.038856,-0.43599,-0.32307,-0.031074,0.023928,-0.17255,-0.29875, -0.16944,0.016309,-0.037833,-0.29157,-0.36583,-0.0038886,0.56681,0.834,0.54992,-0.0043523,-0.33768,-0.2678, -0.048722,-0.0065075,-0.15722,-0.25426,-0.15463,-0.011604,-0.052198,-0.24126, -0.28247,0.020554,0.48303,0.69817,0.46973,0.020092,-0.26031,-0.22194,-0.059329,-0.027849,-0.14384,-0.21855, -0.14164,-0.031061,-0.060533,-0.19967,-0.21696,0.037369,0.41298,0.58653,0.4025,0.036919,-0.19949,-0.1839,-0.06488, -0.042318,-0.13199,-0.1896,-0.13009,-0.044141,-0.064557,-0.16527,-0.16556,0.048444,0.35422,0.84421,0.76101, -0.086502,-0.56072,-0.38968,-0.0037807,0.066258,-0.19052,-0.35473,-0.18667,0.055296,-0.015189,-0.35243,-0.47177, -0.038335,0.66742,0.99986,0.64592,-0.038786,-0.43595,-0.32307,-0.031107,0.023865,-0.17263,-0.29884, -0.16952,0.016243,-0.03787,-0.29157,-0.3658,-0.0038291,0.56689,0.83409,0.55,-0.0042893,-0.33765,-0.26779, …

Member Avatar for g_loughnan
0
104
Member Avatar for brightline

I have a master page which contains a menu. I want the menu's links to open in the details page instead of open in another page. How to tell the menu link to open in the details page.

Member Avatar for plazmo
0
97
Member Avatar for LODEY

have a bit of an issue trying to obtain some data from a csv file using PERL. I can sort the file and remove any duplicates leaving only 4 or 5 rows containing data. My problem is that the data contained in the original file contains a lot more columns …

Member Avatar for KevinADC
0
124
Member Avatar for fujilec

hi....i got one simple question...how to make the caption background transparent? and, is it possible to have animation GIF on message box? hihi thank ya

Member Avatar for choudhuryshouvi
0
70
Member Avatar for chipo

Im new to Vb. I have created a simple database and its working fine. I want to implement a search function to my database. Iam also receiving an error when itry to edit a record. The error message reads you changes were not effected becaus ethey would create duplicate records. …

Member Avatar for choudhuryshouvi
0
82
Member Avatar for b1naryMan

Hi, I'm a newbie to this forum and I wanna ask a few questions:) How can I export using jsp, data that are store in sql database to word or excel or even pdf? Is it possible to be done? How can in jsp to provide into my webpage an …

Member Avatar for jwenting
0
97
Member Avatar for ejasalikhan
Member Avatar for kevin wood

Hello i am having a problem with trying to create a table on the server every time a try to enter data into the database i get the message table already exists. I have moved the code to create the table on to its own page and only recall that …

Member Avatar for nav33n
0
316
Member Avatar for jephthah

okay, experts, i need help. i can't seem to replace characters in a file, like i thought i would be able to: here's an example code. i put print and error stuff in there to try and debug. everything seems to be working ... except that my filename is not …

Member Avatar for jephthah
0
286
Member Avatar for 666kennedy

i know that the AND command is && but what are the code for OR? also if i have a program looping through a system and i want to add something to a variable each time through would [CODE] ERRORtotal += ERR1 [/CODE] work? or wat would

Member Avatar for iamthwee
0
176
Member Avatar for soosai

how to run a c programme on password checking programme parallely..thanks a lot

Member Avatar for jephthah
0
81
Member Avatar for spring_patel

hi guys, i'm upgrading a web application designed in visual studio 2003 to visual studio 2005. i want to start from the scratch. I've restored the database from the older application in sql server 2000 from another machine. now whenever i try to execute that application an error is displayed …

Member Avatar for majestic0110
0
800
Member Avatar for mhretabk

Hi all i need to recieve comment on my page and i need the message to go to my mail address can any one help me how to do it? thanx

Member Avatar for mexabet
0
329
Member Avatar for santoo

[B]HI, I want to define short keys (access key) for button and radiobutton list,checkbutton list in my page.It is working fine for simple radio button and checkbox but it is not working for radiobuttonlist and checkbox list. How to add access keys for Checkbox list and radiobutton list.[/B] thanks.

Member Avatar for SheSaidImaPregy
0
402
Member Avatar for severman

hi all could any 1 knows how to add color to printf? i mean that i want to write a sentence with color in it. thanx!

Member Avatar for zdaxxy
0
127
Member Avatar for LadyFinger

hi, my problem is i want to display date using combo box. user will select da date and it will be save to db. da date will be separate to day, month and year. the main prob is i don't know how to aviod this happen 31/2/2005, don't no how …

Member Avatar for nasir1149
0
306
Member Avatar for Fenerbahce

Hi, I can create all tables but order table. What is wrong, is it foreign key? [code=sql]CREATE TABLE customer( customerId INT(10) NOT NULL AUTO_INCREMENT, customerName VARCHAR(10), customerSurname VARCHAR(10), customerAddress VARCHAR(10), PRIMARY KEY (customerId)); CREATE TABLE order( orderId INT(10) NOT NULL AUTO_INCREMENT, customerId INT(10), PRIMARY KEY (orderId), FOREIGN KEY (customerId) REFERENCES …

Member Avatar for Fenerbahce
0
98
Member Avatar for Jennifer84

I think I just did found this out: [code] Put.str(""); [/code] How is it possible to ´emty´ a std::stringstream. In this case Put contains: 10. [code] std::stringstream Put; int i = 10; Put << i; [/code]

0
246
Member Avatar for hemgoyal_1990

Hi All, I Have a PHP Searching Code it have some problem it only connet to database but does not show any result.......... PHP Code is :- Search.php [code=php]<HTML> <BODY> <FORM Action="/Search.php" Method="POST"> <div align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td bordercolor="#000000"> <p align="center"> <select name="metode" size="1"> <option value="name">Name</option> <option …

Member Avatar for w_3rabi
0
136
Member Avatar for Traicey

I dont know how long I've been trying to figure this out but I havent got to an answer.... I believe that there must be a way of converting an integer to a double or visa versa but I cant think how... I always thought parseInt or parseDouble wud work …

Member Avatar for Traicey
0
23K
Member Avatar for queenc

hi In my mail attachment i am able to recieve the attachment but the file size is 0kb. it is showing the below warnings please do tell the error in my code [QUOTE] home/wesite/public_html/profiles/resumes/153/ Warning: fopen(home/website/public_html/simple.txt) [function.fopen]: failed to open stream: No such file or directory in /home/website/public_html/mail_attachment.php on line …

Member Avatar for w_3rabi
0
254
Member Avatar for bis student

hi , my program calculate the area of rectangle , and I have some errors , and dont know how to correct them . this is the program , [CODE] #include<iostream> using namespace std; class Rectangle { private: double length ,width ; public: double getW(); double getL(); void setW(); void …

Member Avatar for BlackJavaBean
0
200

The End.