199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hariza

Hi Guys, I'm trying to remove all the special characters within a file using the code below but I need to remove also the doble quotes " but what should I use to enclose the characters. I've been looking but can't find. Thanks. while (sep != 0) { sep = …

Member Avatar for hariza
0
549
Member Avatar for peterbyrne

I wanted to be able to interrogate an Excel spreadsheet and programmatically save all the worksheets as text files (.csv). I succesfully managed to do this using the .NET COM interop Excel collection of interfaces but even though this works beautifully I thought it would be nice if I could …

Member Avatar for peterbyrne
0
139
Member Avatar for lalalu

im trying to create a structure that contains an array of structures but i keep getting error when compiling the code (corrupt stack). just to make sure, is my struct code correct? [code] typedef struct status *StatusPointer; struct status { int item; }array[MAX_NUM]; typedef struct allStatus *AllStatusPointer; struct allStatus { …

Member Avatar for lalalu
0
989
Member Avatar for THK

[B]public Plane(String FlightNumber, String Location)[/B] [B]can i use 2 strings ...?[/B]

Member Avatar for THK
0
86
Member Avatar for kathy78

Hello everyone, I have the following code behind for a login page. When I compile, I am getting the following error. It won't allow me to use the operator > in the line below in red. Can someone please tell me why? Expr1 basically returns a number - either 1 …

Member Avatar for peterbyrne
0
85
Member Avatar for jordan2005

hello people am new to c++ i dont have much knowledge about it what is the best book for a new comer to C++

Member Avatar for Ancient Dragon
0
101
Member Avatar for mmarif4u

Hi every one, I have a little problem in php. problem is that i want to search mysql table by php coding. In php i want to use Drop down menu And a text field. I have mysql table name is guestbook, now i use two entries in dropdown menu …

Member Avatar for sn4rf3r
0
763
Member Avatar for cycleops

Hi, Can anyone help me with dynamically adding to a multidimensional javascript array that has an arbitary number of dimensions? Something like: myArray [5] ['aKey'] [4] = 'hello'; That code does not work unless the cells were populated when the array was defined+initialized. So you can't add new cells or …

Member Avatar for cycleops
0
107
Member Avatar for highlanda

Main problem i am having is that with the program it can have a 2 string equation - eg 25 R or 25 S (Reciprocal and Squareroot) or a 3 string equation where the second string will be a number and the third string will be the operator. eg 10 …

Member Avatar for andor
0
103
Member Avatar for amishosh

Hi! I've tried to split it up a program I made for school into 3: header.h: has the functions declarations. func.c: contains the fundctions body. body.c: uses the functoins. Here's my code: [code] /* header.h */ void kelet(char *p); void copy(char *p1,char *p2); void insert(char *p1,char *p2); void reverse(char *p1); …

Member Avatar for Anonymusius
0
151
Member Avatar for MattEvans

I'm not going to go into much detail here; I've knocked up a lil example application to show where I'm having trouble; I'd like to know why $REF_DREF_A != $REF_DREF_B (and equally why there isn't a "hippo" qualifier to the "hello" in @DREF_B)... But more importantly, can I easily make …

Member Avatar for KevinADC
0
136
Member Avatar for Utkarsh Kukreti

I am new to c#. i wanted to know how to add or remove options in a combo box or list box during runtime

Member Avatar for Inanna
0
105
Member Avatar for boujibabe

this code to convert pounds to barbados dollars given a constant rate the price cannot go over $100 when i first run it and input a number under 100 it tells me that it is invalid and sometimes i get nothing at all. Can neone tell me why? [code]/* This …

Member Avatar for ~s.o.s~
0
80
Member Avatar for zac_haryy

Well I have started writing a code to create this program that i have to have done by tommorow but i am stuck at the moment. Anybody please help!! Here is the problem: Write a prgram that converts numbers to words. For examlpe, 834 should result in "eight three four." …

Member Avatar for ~s.o.s~
0
101
Member Avatar for kings_raghav

Hi,, I'm new to Daniweb and would like to communicate with experts thru my first regards..I need an help. i want to know whether can we get an input in the constructor... Bcoz constructor is used only to initialize.... Pls help me on this.I have just now started to learn …

Member Avatar for kings_raghav
0
82
Member Avatar for amishosh

Hi! I have functions defined in ami.c and want to call them from friedman.c how do I link the 2? Thanks Ami

Member Avatar for ~s.o.s~
0
250
Member Avatar for MEversbergII

[code]import TerminalIO.KeyboardReader; public class TempConversion { public static void main(String [] TemperatureCalculations) { KeyboardReader reader = new KeyboardReader(); double fehrenheit; double celsius; System.out.print("Enter degrees Fahrenheit: "); fahrenheit = reader.readDouble(); celsius = (fahrenheit - 32.0) * 5.0 / 9.0; System.out.print("The equivalent in Celsius is "); System.out.println(celsius); reader.pause(); } }[/code] I picked …

Member Avatar for AlwaysLearning
0
235
Member Avatar for fdrage

when you have a variable and you are not using it at all in the code... i.e you forgotten about this particular member well in eclipse there is something that indicates that, that particular member is unused... some exclamation mark or something.... my question is, is there such a feature …

Member Avatar for fdrage
0
108
Member Avatar for gobiv

I need to write simple program in C++! I need to write program that read information from file,which contain <50,students name and respective score.My program need to calculate average score and print out students name,who get below average mark to screen!But,i don''t know how to use string to do it.... …

Member Avatar for gobiv
0
113
Member Avatar for kathy78

Hello, I'm very new to .net so please be patient w/me. I'm using C# in VS2005. I have the following in my login.aspx page for the button [B][U]login.aspx[/U][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#800000]tr[/COLOR][COLOR=#0000ff]>[/COLOR] [COLOR=#0000ff]<[/COLOR][COLOR=#800000]td[/COLOR] [COLOR=#ff0000]align[/COLOR][COLOR=#0000ff]="center"[/COLOR] [COLOR=#ff0000]colspan[/COLOR][COLOR=#0000ff]="2">[/COLOR] [COLOR=#0000ff]<[/COLOR][COLOR=#800000]asp[/COLOR][COLOR=#0000ff]:[/COLOR][COLOR=#800000]Button[/COLOR] [COLOR=#ff0000]ID[/COLOR][COLOR=#0000ff]="Submitbtn"[/COLOR] [COLOR=#ff0000]runat[/COLOR][COLOR=#0000ff]="server"[/COLOR] [COLOR=#ff0000]Text[/COLOR][COLOR=#0000ff]="Log In"[/COLOR] [COLOR=#ff0000]ValidationGroup[/COLOR][COLOR=#0000ff]="Login1"[/COLOR] [COLOR=#ff0000]BackColor[/COLOR][COLOR=#0000ff]="DarkGray"[/COLOR] [COLOR=#ff0000]Font-Bold[/COLOR][COLOR=#0000ff]="False"[/COLOR] [COLOR=#ff0000]ForeColor[/COLOR][COLOR=#0000ff]="Black"/>[/COLOR] [COLOR=#0000ff]</[/COLOR][COLOR=#800000]td[/COLOR][COLOR=#0000ff]>[/COLOR] [COLOR=#0000ff]</[/COLOR][COLOR=#800000]tr[/COLOR][COLOR=#0000ff]>[/COLOR] This is the code behind. Somehow when …

Member Avatar for kathy78
0
116
Member Avatar for Gessa

Hey guys I'm Gessa I recently started my graduate studies where I have to take at least programming two, the last programming class I took was in my associates degree and one in the beginning of my bachelor's degree. And need some real help with some code and how to …

Member Avatar for iwlu
0
178
Member Avatar for THK

hi everyone i need some help with java..:sad: [B]Write the definition of a method twice , which receives an integer parameter and returns an integer that is twice the value of the parameter.[/B] and [B]Write the definition of a class Telephone . The class has no constructors, one instance variable …

Member Avatar for masijade
0
387
Member Avatar for chicagoavonlady

Could somebody help me understand what this is asking for? I have tried different c++ codes and I don't think im reading it right... NOTE: IM NOT ASKING FOR THE ACTUAL CODE... I want to try and figure this one out 1st....but I don't think the way I'm reading it …

Member Avatar for chicagoavonlady
0
112
Member Avatar for spidey

hello, pls help.:-| i have 3 dropdown lists: country, city and area. when i select a country, the values in the city and area dropdown lists should change automatically without reloading the page. the cities and areas to appear must be in that country. same thing goes with areas in …

Member Avatar for spidey
0
100
Member Avatar for beantowner2

Does anyone know anything about Java applets using 100% of the CPU cycles? The only clue I have is that I've been told that MSJVM has problems that Sun's JVM doesn't have. I'd be interested to know whether anyone else has had this problem and fixed it successfully.

Member Avatar for masijade
0
101
Member Avatar for Mistro116

I want to do something like this: class foo { private: class foo2 { ... void Print (ostream & out) .... }; ostream & operator << (ostream &out, const foo & temp); public: ... } I want it so class foo can cout << foo2 objects only in the foo …

Member Avatar for Mistro116
0
123
Member Avatar for vheart20

hi am in urgent need of a good vb 6.0 project with oracle.i will be very thankfull if u could help me as soon as possible

Member Avatar for WaltP
0
161
Member Avatar for mlawson22

Im so lost in this C++ class I have a vague idea of what to do but am getting myself confused. If anyone would help me get started on doing this assignment I would greatly appreciate it. :sad: Assignment: A mail order house sells five different products whose retail prices …

Member Avatar for WaltP
0
254
Member Avatar for stan yost

Has anyone ever had a form freeze up in vb 5.0? When I run by program the form is displayed in the smaller size and the 3 buttons at the top of the screen (the minus sign, the box and the X) are not functional.

Member Avatar for stan yost
0
80
Member Avatar for Sashar400

Hi I am new to this forum and to c++.I am having problems reading data from a txt file into a 2d array. The data is in the file like this 1 5 87 3 3 24 2 4 62 4 2 22 I am only suppose to read in …

Member Avatar for Ancient Dragon
0
221
Member Avatar for moussa.eltayeb
Member Avatar for Ene Uran
0
82
Member Avatar for jan1024188

sory im complete newbie i have [code]include <stdio.h> int main() { int x; for(x=1; x < 10; x++) { printf("%d\n second ", a); } return 0; }[/code] [code]for.c:1: error: syntax error before ‘<’ token [/code]

Member Avatar for jan1024188
0
90
Member Avatar for jan1024188

ive got this [CODE]#include <stdio.h> #include <unistd.h> int main() { int a; int b; a = 3; b = 30; until (a == b) printf("%d\n second ", a); a++; usleep ( 990000 ); printf("\n\n hvala ker usate ta pgr \n\n"); return 0; } [/CODE] but i got this error when …

Member Avatar for jan1024188
0
79
Member Avatar for seluru

Hi all, My code is as follows [code] <a href="/web/contacts/contactSearch.jsp">Search</a> [/code] when i click this link, it will go to contactSearch.jsp. I want to send an action to the servlet when clicking this link, and display the data from the servlet on the contactSearch.jsp. The data I mentioned is a …

Member Avatar for seluru
0
280
Member Avatar for kathy78

Hello everyone, I am using VS2005 (C#) and have the following code behind for my login page. When I try to compile it, I get the following error on the line in bold below. Seems like I need to convert "UserName" and "Password" to strings. Can someone please help me …

Member Avatar for peterbyrne
0
102
Member Avatar for pfunix

Greetings All! I would like to get some feedback to all ya good python folks here at daniweb regarding some implementations that you guys doing with Python and using MySQL db. I'm looking for some mysql plugin for python. I've tried sourceforge 's mysql-python but with no luck(installing) .. maybe …

Member Avatar for ghostdog74
0
160
Member Avatar for Clinton Portis

I am writing a simple program.. enter first and last name and a search is performed.. and their phone number (if found) is returned. I have used vector class iterators before a couple of times.. but devcpp does not seem to like this code.. and stops compilation somewhere inside of …

Member Avatar for iamthwee
0
127
Member Avatar for mrwan
Member Avatar for v2hack

[COLOR=#003399]program to read in the input file, a plain text file, word by word, and write to the output file a list of each word type together with a count of how many times that word appeared in the input file. [/COLOR]

Member Avatar for v2hack
0
54
Member Avatar for #tbone

I have used the Suckerfish drop down menu and have run into a problem. I found the sample code [URL="http://www.htmldog.com/articles/suckerfish/dropdowns/"]here.[/URL] Here is a simplified version of what my code looks like: [code]<style type="text/css"> body { font-family: arial, helvetica, serif; } #nav, #nav ul { /* all lists */ padding: 0; …

Member Avatar for FC Jamison
0
196
Member Avatar for THK

You are given a class named Clock that has one int instance variable called hours . Write a constructor for the class Clock that takes one parameter, an int , and gives its value to hours . help me some one :(

Member Avatar for THK
0
224
Member Avatar for maheshsayani

Hi All I want the form look like image. I mean that the form should be shaped as the image. for example when you click on skin mode in windows mediaplayer you will find the window like head shaped. i want my form look like that Pls any one help …

Member Avatar for Comatose
0
87
Member Avatar for NZStudent

I have a block of MIPS code that implements a pseudo-instruction operating on the values from two registers. The problem is i am having trouble undertanding what it does. The code is: sll $t0, $s0, 31 srl $s0, $s0, 1 srl $s1, $s1, 1 or $s1, $s1, $t0 I think …

Member Avatar for Charles Esson
0
273
Member Avatar for Mikeish

I don't have much time to say this but I'm going to try and hurry... Here's a snippet of code: [quote] $subName = "someName"; include "contentHeader.php"; [/quote] Inside of contentHeader: [quote] echo $subName; [/quote] -------------------------- I know that this variable is correct because I had tried to use it on …

Member Avatar for Mikeish
0
64
Member Avatar for Matt Tacular

I am taking grade 12 programing and in the course, you can make any program in any language for a final project, and I want to do one in python, but I dont know what to make, I need help to come up with an idea for a rather useful …

Member Avatar for Ene Uran
0
135
Member Avatar for Barefootsanders

Hey everyone. I dont know if anyone here can help me but I run a site powered by the Joomla CMS. I wanted to design a component for my site and I was wondering if i could use C++ to design it instead of PHP and just use the 'system' …

Member Avatar for Barefootsanders
0
106
Member Avatar for jan1024188

i have [CODE]#include <stdio.h> int main() { int a; int b; a = 3; b = 30; while (a < b) { printf("%d\n crap .....", a); a = a + 1; } return 0; } [/CODE] i got output [QUOTE]crap .....4 crap .....5 crap .....6 crap .....7 crap .....8 crap …

Member Avatar for ~s.o.s~
0
119
Member Avatar for Barefootsanders

Hey guys. Ive been trying to write this program for a while and I keep getting errors on line 78, "Circle undeclared." I think it has something to do with the constructors and templates. I dont think im calling it right. Can someone take a look at it for me …

Member Avatar for Barefootsanders
0
132
Member Avatar for fdrage

I have an algorithm problem with recursion: i have a route from A to D and it looks like this [CODE] [A, B, C, D][/CODE] the alphabet in the above list is an object of a class, lets call that class Nodes each of this Nodes object they have some …

Member Avatar for iamthwee
0
121
Member Avatar for doraemon

I just start learning C++. I thought I can access an integer array by using pointer arithmetic method. why does the first program work but the second one does not??? [code] #include<iostream> using namespace std; int main() { int array [5], i, *p; for (i = 0; i < 5; …

Member Avatar for rowly
0
148

The End.