199,114 Archived Topics
Remove Filter ![]() | |
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 = … | |
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 … | |
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 { … | |
[B]public Plane(String FlightNumber, String Location)[/B] [B]can i use 2 strings ...?[/B] | |
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 … | |
hello people am new to c++ i dont have much knowledge about it what is the best book for a new comer to C++ | |
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 … | |
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 … | |
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 … | |
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); … | |
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 … | |
I am new to c#. i wanted to know how to add or remove options in a combo box or list box during runtime | |
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 … | |
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." … | |
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 … | |
Hi! I have functions defined in ami.c and want to call them from friedman.c how do I link the 2? Thanks Ami | |
[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 … | |
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 … | |
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.... … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 | |
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 … | |
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. | |
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 … | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
what is the diffarance between object and variable | |
[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] | |
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; … | |
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 :( | |
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 … | |
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 … | |
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 … | |
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 … | |
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' … | |
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 … | |
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 … ![]() | |
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; … |
The End.