199,114 Archived Topics
Remove Filter ![]() | |
hi all guru, here, my problem is re-running the program, the vector attribute of Service Class was listed unreadable characters.. WHY?? Below is my following code : Service.h code: [code] class Service{ protected: char servType[100]; vector<Medicine> vecMedicine; // the purpose that i created a vector attribute is a service can … | |
I was trying to format the string of type CString so that when you input for example once upon a time in Mexico it would return Once Upon A Time In Mexico [code] m_VideoName.Replace(m_VideoName[0],toupper(m_VideoName[0])); for(int i=1; i<m_VideoName.GetLength(); i++) { if(isspace(m_VideoName[i])) { m_VideoName.Replace(m_VideoName[i+1],toupper(m_VideoName[i+1])); } } [/code] however it keeps returning Once … | |
I have this page which has to retrieve the information from a database and display using the list menu object can someone please let me know of how to do it. The idea is when the name is selected it will retrieve the information relating to that name from the … | |
how can i create a database for a medical record maintenance system for an institution? | |
Is is possible to clear the value of a bean using the jsp:setproperty tag? i have tried [CODE] <jsp:setProperty name="MyNameBean" property="subscriberName" value="" /> [/CODE] but it didnt work. Please help! | |
How to design using crystal report with a particular record and the coding in vb | |
hi....i create a command button using the code shown below: [code] Private Sub Command3_Click() Form5.Show 'sum action needed here to detect user's action Command3.Caption = "Unhide History" Unload Form5 End Sub [/code] I need to change the caption to unhide history once the user had pressed unhide button | |
Hye all.. Can anybody here give some ideas or repair to make this program better.. I mean a good programming style.. This program is about using POINTER only..:) [CODE]//This program find the total rain for each year, the average //yearly rainfall and the month with the highest and lowest rainfall … | |
Hi guys, Couldn't find a suitable forum for this question, please move this thread if needed. What I need to do redirect the output of TOP to a text file. Doing a simple %> top > top.txt yields the following %> less top.txt load averages: 0.88, 0.89, 0.87 11:50:49 100 … | |
Hey guys, I'm not sure if you can tell how long I've been registered by my status or something but I'm new obviously and having a little problem with an program I'm writing. I get an error message stating that "The constructor bankofMark.mattsAccount(String, String, String, String, String, String, String, String, … | |
how do i make a string variable into an integer variable. something like: number = String i've always only converted it from a textbox now i'm having trouble using variables.. not sure why it's different.. [CODE] monthtxt = Mid(CardLength, 1, countnum) yeartxt = Mid(CardLength, i + 1, Yearstart) isvalid = … | |
Hello, this is my first post. I'm learning VB6 at home, with online tutorials. So far ok, but I can't find the right info on making a dual-paned app. Sort of like in webpages, where a 'frame' acts differently than the rest of the page. I guess it's like a … | |
the problem is as follows my teacher wants me to: write a program that reads lines of text into a string using the getline(cin,line) function and then type sets these lines of text so that they are column aligned on the left and right margins as shown in the second … | |
Hi. I have a problem. This is my code. // the array.h file #ifndef ARRAY_H #define ARRAY_H #include <iostream> #include "arr_exception.h" using namespace std; class Array { friend ostream &operator <<(ostream &os, const Array &arr); // done public: Array(int n); // done Array(const Array &array); // done ~Array() {cout << … | |
i m using this small application for the purpose of loading multiple images from disk and then show them as thumbnail i m using List View for this purpose. my application is generating thumbnails successfully but i modified such that when i double click on a thumbnail and that image … | |
| |
this is my simple program and i need to save or write the info that i key in in a notepad and also have the function to displat the info in the notepad. Can any one help me?TQ this is my simple program in VB. how can i write the … | |
Hi all, Iam newbe to this forum and seeks some help. I am using a msflexgrid in vb6 which uploads data from the net. What I want the uploaded data in msflexgrid having 10 cols and 10 rows to be saved in access database and also want to save the … | |
I was looking into a python program for the PSP. Is it worth downloading? Will it help me to learn the program when I dont have a PC handy? Also does anyone know if you can install Python to a portable harddrive and run it from any computer? Thanks in … | |
trying to get this program to run and getting an odd error...does anyone know what I have to do [code=java] //packages to import import java.awt.*; import java.applet.*; import java.awt.event.*; public class PetAdviceApplet extends Applet implements ItemListener { //declare variables and construct components int housing; double hours; String pet; Label promptLabel … | |
I'm having real trouble getting my script to work, it's about 3 pages long and I'm having trouble with one of my if...then constructs. The code for the sub is as follows: [CODE]check_a_b () { CHECKA="634274" CHECKB="512274" if [ CHECKA=CHECKB ]; then echo "Match" echo "$CHECKA" >> "$LOGFILE" echo "$CHECKB" … | |
i encountered the problem below, anyone can explain to me, thanks. for (;*sPtr!='\0';sPtr) cout << *sPtr; how to understand for loop ";"? thanks | |
how can i make an over a network connection for like games or chat program? | |
Hey, Well I am fairly new to C++ and am supposed to create a program that compares various pizza's between size and price so the unit would be dollar/area^2 The input from the user should first be how many items you have to compare.. The next input from the user … | |
dear all what is difference when a function was called with an array as an argument and with a point as an argument? thanks. anyone can give me an example? | |
I'm trying to get a program to print out two strings that I input. I can't figure out why its not working! [code] #include <stdio.h> #include <stdlib.h> #define ARRAY_SIZE 30 int main() { char s1[ARRAY_SIZE]; char s2 [ARRAY_SIZE]; printf("Enter a String:\n"); scanf("%25s\n", s1); printf("Enter string 2:\n"); scanf("%25s\n", s2); printf("String 1: … | |
What does the following code do when the input is 56789 1234 45a72 int i; float f; char name[50]; scanf("%2 %f %*d %2s",&i,&f1,&name); When I ran the code in the compiler and used printf to check the results i got 56 789.000000 45a72 I understand that it didn't 1234 because … | |
I was hoping that someone could help me out with this. For our program, we are supposed to write the following function [QUOTE]int reportMaxima( double array[ ] [ NCOLS ], int nRows, int nCols, double xMin, double xMax, double yMin, double yMax ); Finds and prints out cells in the … | |
[code] /* while readAccuracy returns a 1 { call readLimits call printInputs call printArea } */ while (readAccuracy == 1) { calcArea (readLimits, printInputs, printArea); } [/code] | |
Hello, this is not a Web Development question, but this is the only XML forum on Daniweb. I need to copy a specific number of nodes in an XSLT transform. For example, I need to copy the first 5 <student> nodes, with all child nodes and attribute nodes, even though … | |
I'm still working on the same Flight Database as before. It's a program using 3 classes each with their own header and implementation files. The 3 classes are Date, Flight, and Trip. The Date Class is only used within the Flight and Trip Classes. So those two classes each have … | |
can anyone help me i wanna calculate the total of electrical bill this is my situation... Rate 1 = 0.218 for first 0 – 200 KWh usage Rate 2 = 0.289 for 201-1000 KWh usage Electrical usage (KWh) = Latest Meter Reading - Previous Meter Reading If electrical usage between … | |
I have three child classes which 2 of them work and the last one has the "not a base or memeber error" can anyone tell what went wrong? please see the last file at the bottom [code=cpp] # include <iostream> # include <string> using namespace std; class Employee { public: … | |
Hi all, Basically I'm banging my head against the wall recently trying to get a list of checkboxes to pass variables to a SQL query. If the checkbox is ticked then I wish for the a certain SQL query to be passed. This is my code at the moment that … | |
hey my host has disallowed the mail() function, any alternatives? | |
hello, everybody i have a problem , i have table , it contoin column ORDER ID, customer ID, amount, DATE. a problem when i type or create this table, i make a mistake i dont know where is my mistake when i type in mySQL database BY using ( MYSQL … | |
hi, i installed easyPHP on my windowsXP professional but it is giving an error " that apache can not be runned another web server is using the web port". is this problem due to partially installed IIS? how can it can be fixed? | |
Thank you in advance to anyone who can solve this for me. In a registration form of mine the user selects the state they live in with a drop down menu. | |
![]() | I have a form and upload script so people can upload games to my website. The form code: [code] echo "<form action=newgame.php enctype=multipart/form-data><table border=0 method=post bgcolor=1a1a1a><tr><td width=70%> game title</td> <td><input type=text name=title maxlength=48></input></td> </tr> <tr><td>summary</td><td><textarea name=summary rows=5 cols=30></textarea></tr> <tr><td>genre</td><td> <select name=genre> <option value=action>action</option> <option value=adventure>adventure</option> <option value=arcade>arcade</option> <option value=other>other</option> <option … |
[code=cplusplus] #include <iostream> main() { int employeeid; int hoursworked; float hourlyrate, grosspay; cout << "ENTER THE EMPLOYEE ID: "; cin >> employeeid; cout << "ENTER THE HOURS WORKED: "; cin >> hoursworked; cout << "ENTER THE HOURLY RATE: "; cin >> hourlyrate; grosspay = hoursworked * hourlyrate; cout << "EMPLOYEE … | |
Hi all, I need help in passing parameter value to a datagridview control on my form. I have a form with a textbox control, a datagridview control and a button. When the user enters in the title of a movie in the textbox and clicks on the OK button, I … | |
Hi, I am new to VC++ programming. I need to create 2 forms and and collect the data that is input in the forms to a class. Now the forms are defined in the form1.h and form2.h files. I have a class "Railway_Input" in the main cpp file. The cpp … | |
When is it more efficient to store the value of a calculation than perform that calculation 2 or more times? I have always been under the impression that performing a simple arithmetic calculation two or three times is faster than instantiating a variable to hold the value of the calculation. … | |
Hello, I have been wondering how to keep a value even after a program ends. An example could be a countdown of days on a trial of a product. It must be able to not be changed by the user. How would I do this? | |
What is the difference between simple form & MDI form? | |
Hello Everyone, I have a Blackjack Assignment due in a few days in my Programming class. I have completed the program and it seems to be working. Could I ask someone to take a look at it and tell me how it looks. Where I could make improvements and so … | |
Hallo, i stumbled over a curious behavior today, which i never saw in more than 15 years of usage of cpp compilers: The following gets compiled without any error message by gpp 3.4.5 (from mingw, included in devcpp), where i normally would seriously expect an error message: [code]sometype funcname(sometype somearg) … | |
I have two classes, Date and Flight. In my Flight object I have Two date objects. I'm running into trouble when trying to initialize the Dates. My current code is below. I don't understand why what I'm doing doesn't work. The flight header file has a #include "Date.h" command, so … | |
I wrote this code that inputs employees salaries and distributes them to how much they made. I need some help translating this code into C++ [code=c] #include <stdio.h> int main(){ int sales[9]={0}; double gross=0, percent=0, salary=0; int total=0; int counter=0; printf("For 5 peoples salary ranges, Enter the first gross\n"); scanf("%d", … |
The End.