64,152 Solved Topics
Remove Filter ![]() | |
Hello everybody, really need some help getting this code to add up even and odd numbers from a set of integers. But it also needs to default or continue through if input is incorrect (i.e.- $,@,#,3.4) and so on. Here is what I have so far. Thank you. [CODE]#include <iostream> … | |
hi every one, i need your help in my php code.Currently i m developing one social site. i had develop php code code for getting recent update from friends. my error is for not printing recent update from friends. i had tried my best but it's not working. i m … | |
Hi.... I have a datepicker that contains an alternate key of an Access Table with a autokey primary key. [code] Private Sub DateTimePicker1_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles DateTimePicker1.Validating Dim d As Date = DateTimePicker1.Value If d < Today Then MsgBox("Gelieve een datum in de toekomst te … | |
Hi, I wanted to know how would you be able to change an image on a website to another one when refresh is hit on the tool bar in IE or how would i get it to open up a different html file when i hit refresh and i'm not … | |
I have a problem with updating records in a database table. Background: The user can fetch data that belongs with an image. The data is displayed in a form. In this form the user can add/change data and then save this to the database. This part works fine. My next … | |
Hi, I need some help completing a dynamic form done in asp. I will put the code shown below: Things that need to be considered: 1. Sending this form via email, and output will show after user types his/ her input. 2. Radio buttons are constructed-- so the message and … | |
i am trying a case statement that will input different results based on the town a user enters in a form .the code in the form is [CODE]<html> <body> <form action="relay.php" method="get"> town:<input type="text" name="town" /> <input type="submit" /> </form> </body> </html [/CODE] while that one for case is [CODE] … | |
Hi, I am writing a program in VB6 where I'm adding an "Import/Export" option to the file menu. Starting with export, I basically need to find all files matching a particular filename and zip and export them to a folder. Currently I am simply finding all the files (with different … | |
Ok, I know there's missing code from the top but it's stuf that doesnt matter and I didnt feel like modifying it with dummy data to post the full PHP page here. Anyway, the below code produces this: [url]http://www.myu2sig.com/currentusers2.php[/url] If you page around you will notice that it always shows … | |
Im trying to insert items into a BST from a txt file. For arguments sake the data file is just the integers 1 2 3 4 5 6 7 8 9. When i try to do a inorder traversal, all that is outputting is the first and last number. I … | |
[CODE]import javax.swing.*; import java.text.*; public class Postage3{ public static void main(String args[]){ double weight, cost, count; int choice, choice2; DecimalFormat df = new DecimalFormat ("0.00"); choice2 = 1; while(choice2 == 1){ weight = Double.parseDouble(JOptionPane.showInputDialog("Enter weight of postage according to ounces")); if(weight <= 1){ cost = weight * 0.30; } else{ … | |
Sorry if this is repetative but still struggling with this. i wish to multiply 2 long integers together. if the result is outside of int64 range i want the loop to break otherwise i want to keep the result and increment the second number. have tested this, but when the … | |
Hello I'm looking for the correct method/way for reading & writing raw JPEG image binary data. I am obtaining the raw data via TCP stream, the official JPEG specs say that the raw JPEG image data starts at HEX value 0xffd8 & ends at HEX value 0xffd9 as below... [CODE]Start … | |
Hi I'm looking for good tutorial/s about using boost::regex with c++ code examples any links would be really helpful... Many Thanks Steve PS not tuts about setting up boost, done that already. | |
Hi there, I've just switched to Eclipse. I've been using TextPad so Eclipse is pretty cool.. But I've been getting weird error messages that I don't understand/not used to. Here they are: [CODE]JButton btnEnter = new JButton("Enter"); btnEnter.addActionListener(this);[/CODE] Here the Error says: Multiple markers at this line. -Syntax on token … | |
Hello guys, i'm studying the Java programming language. every thins were going very well, but once i have encountered RECURSION i started to feel so bad. there is a recursive method that is blowing my mind. I can't figure out how does it print that the sum of a set … | |
Hi, I would like to create a table as attachement below is VB6, may I know what component name of this table? is this DBGrid? Thanks! | |
Can someone tell me how I can accomplish this. I want the results of a form to be placed in a pdf and then added as an attachment. I am not sure if this is possible, but if someone knows how, please let me know. Thanks. | |
Is there a way to hide functions and such when they happen? Example: [code=syntax]print func(x, y)[/code] from showing up when you run it? I want it still printing, just not visible. I want it to print. | |
Hey there, I'm having trouble getting my program to read the last instruction of the file, and so far, I haven't been able to figure out why. Any help would be appreciated. [CODE]/* The Simpletron Machine Language Program. The purpose of this program is to simulate a primitive computer. This … | |
Ahh, long time since I was on pposting end :D Ok here it goes. The code bellow show mobile application that takes string from user and past it on to servlet. Servlet read it add extra data on front of message and send it back to mobile device that display … | |
I am working on a couple projects where I need to upload files from a client using my software to my webserver and then do some other things. But I would like the software to handles this automatically so the user doesn't have to worry with it. I am currently … | |
Hello can you help me,i have problem of this if i will use scanf("%c",&repz); my porgram will exit it will not loop to menu..but if i will change to %s this will loop to menu...but i declare variable repz as char...can you help me or explain on this why it … | |
wen i write the data to notepad,i get the result below: <SRT>,160,[COLOR="Red"]161,[/COLOR] NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,4127288.4600,0.0000,31-12-07,0,AGF,MYR,100101 NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,175000.0000,0.0000,31-12-07,0,AGF,MYR,102101 <END>,[COLOR="Red"]4302288,[/COLOR] wat i wan is like below: <SRT>,160,[COLOR="Green"]161[/COLOR] NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,4127288.4600,0.0000,31-12-07,0,AGF,MYR,100101 NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,175000.0000,0.0000,31-12-07,0,AGF,MYR,102101 <END>,[COLOR="Green"]4302288[/COLOR] i don't wan [COLOR="Red"](,)[/COLOR] behind 161 and 4302288 Hope hav sum1 can answer my question.Thanks... [CODE] For Each row In dt.Rows … | |
I have a string in Python that is comprised of code in C/C++ syntax. I would like to use regular expressions to search through this string and replace an expression of the form 'pow(a,b)' with 'a^b' I've attempted to do this, but my code does not seem to be working. … | |
hiii I have two page in my adminitrator folder of my web site manageuser.aspx and userinformation.aspx .Now when i click at manage button at manageuser.aspx page i have to navigate userinformation.aspx page with corresponding user. i set in the greed view of manageuser.aspx page- [CODE]<asp:HyperLinkField HeaderText="manage" Text="manage" DataNavigateUrlFields="UserName" DataNavigateUrlFormatString="UserInformation.aspx?user={0}"/> [/CODE] … | |
I would like some help to index through an empty array and fill it with 10 entries one at a time. The objective of the task is to create a GUI with two buttons, one (Store) to save the value into array position and second (Quit) to run statistics calculations … | |
I've got a question about navigating memory streams. Memory stream properties aside (like making sure the stream can use seek etc...) if someone is storing variable or dynamic data in a stream, how can you retrieve that data? Like, for example if a user could store an image from their … | |
I have an assignment that i need to do and i have no idea how to do this, I was hoping someone would be nice enough to help me out, its a begginner program that needs to be done in visual stdio c++: Heres the assignment: Try to write a … | |
I have 6 rows of items in a ListView within 2 columns that are listed like so: [CODE]1 Milk 2 Pepsi 3 Juice 4 Water 5 Coffee 6 Tea[/CODE] I'm trying to make it so when you modify the number in the first column, it will sort the list based … | |
I am trying add two polynomials by overloading the + operator. When I run the program it only adds the first coeficients. I cannot figure out why it is only returning the first coeficient. [CODE] //header file #include <iostream> using namespace std; #ifndef _POLY_H #define _POLY_H const int CAPACITY =100; … | |
This is probably an easy one that i know but its not coming to me. Im supposed to be hardcoding the 6 instances of a movie class into the array that i have set up. I am unsure where i would do that in my actuall code. [CODE] public class … | |
hi, i have this code: [inlinecode] HINSTANCE hComponent = ::LoadLibrary("Component1.dll"); [/inlinecode] i get this compile error: Error 1 error C2664: 'LoadLibraryW' : cannot convert parameter 1 from 'const char [15]' to 'LPCWSTR' c:\Documents and Settings\Administrator\Desktop\Component1\Client1\Client1.cpp 9 so i changed the code: [inlinecode] HINSTANCE hComponent = ::LoadLibrary((LPCWSTR)"Component1.dll"); [/inlinecode] however GetLastError returns … | |
Hello everyone this is my first post on the daniweb community. Currently I am home sick with a nasty cold so I was trying to solve a programming problem on a wonderfull sight called Project Euler. The problem is as follows: If we list all the natural numbers below 10 … | |
Hi- Trying to rename a file using the rename() function. It works, but it appends an '@' to the end of the renamed file. Here's my code: [code=c] char oldname[] ="file1.csv"; char newname[26]; newname[0] = '3'; newname[1] = '1'; newname[2] = '1'; newname[3] = '3'; newname[4] = '3'; newname[5] = … | |
I am getting the following error when I try to access my Resource Files in Visual C++ v6 "The file is already open in an editor." I've tried closing all windows in the IDE and closing the project, even tried logging out and back in. All to no avail. A … | |
Hello to everyone, Well I'm a noob to C++, I just started two weeks ago, I'm trying to get a good head start before I start college next semester. I've done simple programs, but now I'm trying to create a body fat percentage calculator I guess you could say. but … | |
Right. Im a php developer and I have never taken the time to study Javascript, and it always gives me a hard time. I have a drop down menu with 2 options. The default option is just Choose Payment. If I go to credit card, then nothing is supposed to … | |
Hi just a simple n00b question. I need to split a string (from a .obj 3D model format) into a list of three doubles (the vertices). example string: v 0.200006 -0.093641 0.584690 I want to make it into an array of (for example): {0.200006, -0.093641, 0.584690} I can get rid … | |
Create a Person class to represent a person's contact information. Your Person class must consist of the following: PRIVATE members: string firstName,lastName; birthDate //you get to choose the data type, but the type you choose must be able to maintain a // 1 day resolution PUBLIC members: 1. Default constructor … | |
I have been working on a project, where I am able to choose the different positions of the body parts of a robot to form a dance step. The head with 3 movements. The left and right arm, shoulder and elbow with 4, 4 and 3 movements respectively. The waist … | |
Hey Guys, I am having a couple issues with a website when I view it in Internet Explorer. It works fine in Firefox, Google Chrome and probably most other browsers, but has issues with the navigational drop down and for some reason the footer is only partially coming up (cut … | |
Assignment 1: Prompt the user to enter a number. After reading the user's input, print a 0 if the number is even or a 1 if the number is odd Assignment 2: Prompt the user to enter a number of seconds between 1 to 86,400. After reading the user's input … | |
Hi all, I've found a few references that address this issue, however I haven't figured out what the solution is in the specific case that I'm dealing with. Hopefully someone can help me out. The following code prototypes the general idea that I'm working with: [CODE] class FooClass { public: … | |
Hi, What I am trying to do is enter HTML code into a variable and then pass it along to another script with POST to have it used as the HTML content with PHPmailer. As soon as my HTML code that i paste into the textarea contains double quotes it … | |
Hello i am designing a project which is intended to store the values entered in a browser into database. Finding some difficulties in displaying the database contents on browser. Below i am posting my entire code. The data i enter in browser are getting inserted into the database. I checked … | |
Hello there, I'm currently using a perl scrip that checks if every line in a file 1.csv is present in a file named 2.csv, and writes only the different lines. The output is a file called out.csv. What I'm trying to do is to write only the most recent lines … | |
I'm having trouble figuring out a few different methods that I'm putting into a constructor. Any chance for advice? I'm having trouble with the last 3 near the bottom. I want to compare two name variable to each other to see if they are the same regardless of case, then … | |
I have a weird problem and I want to know if any of you have any ideas on how to fix this. If I do this... [code] swprintf(Dest, 500, L"G%sY", "AMEDA"); [/code] [b](wchar_t*)Dest[/b] contains the following text... [TEX]GAMEDAY[/TEX] But if I do this... [code] swprintf(Dest, 500, L"G%sY", L"AMEDA"); [/code] [b](wchar_t*)Dest[/b] … |
The End.