199,114 Archived Topics
Remove Filter ![]() | |
Hi, I'm trying to write a script to allow a customer to access the status of their order. I have set up the database properly, including all the fields necessary. I have successfully written a registration script, allowing the customer to register his/her details into the database, but where I'm … | |
I need to make a program to do the following: 1. ask the user for the name of the input file, and open/read it. 2. For each well-formed cout statement, i must execute it. For any malfunctioned cout statement, print an error message. the syntax of a well-formed cout statement … | |
I am working on sorting strings of integers with a radix sort. I am confusing myself on the code logic however. I have a file with integers, one to a line, and padded so 1 would be 001. I want to read those integers as strings so I can later … | |
I found _isnan() in float.h for VS2008, but I would like to SET a variable to a NaN intentionally, not check if it is one. Is this possible? Thanks, David | |
We're making a queue that simulates a line at the DMV and aftersomeone goes through the line, or queue, we cant to take that persons name and add it to a new queue to display in the final stats of how many people have gone through and the total amount … | |
is there a built in function to deal with numbers similar to how the swap member function (first.swap(second);) deals with strings? thanks | |
I am having some trouble getting this code into C++...Can somebody help me! [code] [inlinecode=cpp] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int random_1(); int main() { int i = 0; int j = 0; int check; int check_1; char play_again = '\n' ; int tortoise[70]; int hare[70]; … | |
![]() | A publishing firm that consists of twenty five employees utilizes a Microsoft Access database system to store and process requests related to their business transactions and operational data such as product sales and customer information. Over the last five years the firm has experienced tremendous growth; as a result, the … |
when i click login button it's not redirecting to another php page.it's showing error on page. my code is below. [CODE] <html> <head> function win() { var a=document.getElementById('myusername'); var b=document.getElementById('mypassword'); var temp=a.value; var temp1=b.value; window.opener.top.location.href="http://www.careerglitters.com/web_login1.php?vars=" + temp + "&varr=" +temp1; self.close(); } </head> <body> <form> <input type="text" name="myusername" style="width: 10em;"> … | |
I am trying to set up a web based POS system and have got everything working apart from printing directly to a barcode / label printer. When printing to the barode printer I need to send it a text stream of ascii characters with none printable control characters. Here's an … | |
hi frends i'm a novice in php... i just installed php and apache 2.2.x webserver and just wanted to try some very basic stuff... [CODE] <html> <body> <?php echo "Hello world"; ?> </body> </html> [/CODE] but rather than showing the output in the browser it shows the whole code.... could … | |
can anyone help me fix this??? I have to do all of this in functions, but i keep getting somethings wrong. Thanks! Sample Run (The user’s entry is in bold) Enter the Students Id:[B]5656[/B] Enter how many courses-up to 3: [B]6[/B] Invalid number! Try again Enter how many courses-up to … | |
hi, im having trouble when outputing the data from my program. i am trying to output numerous amounts of data into 1 txt file when running through a loop, but everytime it writes to my file it overwrites the previous data stored with in it. Can anyone offer some advice … | |
Hi, I'm practicing for my test and I'm really confused on this question This is the content of make file assuming that part1 and part3 has been modified. list the sequence of command activation in the correct order for make to run I understand it looks at the target then … | |
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 … | |
[code]#include <iostream> #include <time.h> #include <fstream> #define MAXSIZE 1000 #include <cstring> #include <string> using namespace std; class Students { public: string firstName; string lastName; string social; double gpa; Students() { firstName = "Adam"; lastName = "Wilson"; social = "000-00-0000"; gpa = 0.00; } Students(string newSocial, string newFirst, string newLast, double … | |
I have created a gui using extend frame. What my program needs to do is replicate a DNS server, the DNSServer code has to be its own class, So to my project i have added class. How do i acces the methode within the DNSServer Class? | |
Hey all, posting again here as got major headaches! Basically.. I have a series of quite complicated queries, but the main problem starts right at the beginning, other than that I reckon im fine. What I want to do, is display a list of Registrations from Student's for Modules. This … | |
Hi Is it possible to overload return() function for some part of code (ie. for the scope of some class)? I would NOT like to define separate function to do 'other stuff' and use it on every return like that: return(myFunction()); Is it possible? Maybe there is some other trick? … | |
how to write nested queries ex: [code=sql]SELECT * FROM [table1] WHERE [column] IN (SELECT [column] FROM [table2])[/code] in a function. i tried this but MYSQL is getting stoped. is there any alternate. | |
Hi all. I have posted on this before with no response. Let me try a different way. I have a db with a few tables :- ATHLETE, which contains fields ATHLETE (the record Id), FIRST, LAST, AGE and SEX; MEET, with fields MEET (the record Id), and MNAME; RESULT, with … | |
Please i need help with My Login prog that can enable two categories of people to login that is the administrator and a user below is my code snipet bcos i am stucked. import java.util.* ; import java.awt.* ; import java.awt.event.* ; import javax.swing.*; public class HeartLandLogin extends JPanel implements … | |
Hi, I am a beginner in php mysql... I want to pass null values to integer from PHP file to mysql stored procedure. eg: $name = "John"; $age = $_POST['age']; // Which is a null value.. and i called the procedure like CALL InsertStudent('$name',$age); my procedure is not executing ... … | |
how do i use a .txt file in C like read and save form and into it... any help will be good thenks :) | |
Hello everyone and thanks in advance for your help. I'm making a web page with an order form. So far I have Javascript calculating the total of the order as the user clicks another text field box and then they proceed to the contact information part of the form. The … | |
I am new to streams and files in C++. I am having a problem in this code. When i run the program, and after entering the password, a message is displayed "error opening infile". Why the program is not reading from the file or opening it? [CODE]#include<iostream> #include<string> #include<fstream> #include<iomanip> … | |
Okay, guys, after running a thread bout tht nth_element problem [ which is still not solved ] I again have a problem. The code I give below [ I have also attached the file ], is simply a MergeSort procedure. It works wonderfully well. I have enabled validation of it … | |
Assignment #1 First Class – extended version 1. Extend the class myTime from the previous assignment so it includes methods of all types (excluding operators) discussed during the lecture. The constructors and the destructor should print out a notifying message on the screen. 2. Write a function with the copyMe … | |
so i'm trying to fix my "load" function, but i can't seem to get it to work correctly. here's the load function i have currently: [CODE]void load(string messages[], int keys[], int& numElements) { int index = 0; int key; string message; while(index < MAX_SIZE && key > 0) { cout … | |
Hey all, I'm trying to make a small menu popup via CSS. On rollover, the link should display another set of links below the link that the mouse is hovering on. The code Below works in FF but not in IE. Could someone help out? Thanks. [CODE]style.css .navigation { margin: … | |
Hello :) I'm making a very simple game in C++ (very much like the old DOS game Supaplex if anybody know that :P). I'm using the windows API, not GDI, DirectX or anything like that. I've only just begun learning the Win Api some days ago :) I have the … | |
Hey guyz i'm a newbie in java and I would like to create a program to find all palindrome prime numbers between two integers supplied as input (start and end points are excluded). I've started but now i'm stuck... Can u help me??? import java.util.*; class Question4{ public static void … | |
Hello, I am fairly new to c++ and I am wanting to find out some information about creating a calculator that can calculate a noisy input stream e.g. 1hgj6-fgkj7 = 14 (1+6+7) 3ku5jf3 = 11 (3+5+3) I have looked into some tutorials when creating a calculator in C++, although none … | |
Hi.. I have written a C++ program to compress and decompress jp2k files. But when I am executing this program the CPU usage is 100%... Can any one tell me : why is it so and how to reduce CPU usage? I have compiled same code on windows and Linux … | |
implementing dijkstra algorithhm using fibonacci heap.................. can anybody help me with the coding for the above problem................. i have implemented using array.... now i hav to implement it using fibonacci heap......... | |
Hi, I'm trying to get two small programs that use macro to work but neither of them is doing so the first macro selects the least significant bit from an unsigned char [code] #include <stdio.h> #define LBIT(X) (((X)&1)?1:0) int main() { unsigned char a; printf("Enter a character:\n"); scanf("&c",a); printf("Least signficant … | |
This is a code i made, for checking if a nickname and password exists.. I have two question about this code... 1) In line 38 i close "fuser", but if i try to use this again there is an error. So, i used "fpass". Is there any way to use … | |
heres what i want to do. i want to add a button somewhere here. [IMG]http://aycu20.webshots.com/image/49619/2006148200319099889_rs.jpg[/IMG] When that button is clicked. The print screen function will caputure the form and i'll be getting something like: [IMG]http://aycu16.webshots.com/image/51455/2005462669515036518_rs.jpg[/IMG] | |
Is there something else I have to do to get a message with an error occurs other than this: [code=vb] On Error GoTo Handler 'Code that will cause an error Handler: msgBox(Err.Description) [/code] The Handler gets thrown but it is empty.... Just a message box comes up with no text. | |
Hi, I am rather new to programming. I have a stored procedure that simply reads a 'CourseCode' from a Course table, the stored procedure code is as follows: -------------------------------------------- ALTER PROCEDURE dbo.Courses AS SELECT CourseCode FROM Course RETURN --------------------------------------------- I have C# code in the code behind page to try … | |
Hey, I am deji, i have been on this site for a while now but i have never been on this database forumn.... I used to be on the c++ forumn.... I was given a project with one of my coursemates in school.... we were asked to automate our school … | |
I want to create a control in which left edge should move when it's width is reduced and vice versa.Generally when width is reduced or increased, right edge (of control) moves. Means I want to keep the control fix at it's right edge during change of it's width. I have … | |
![]() | A publishing firm that consists of twenty five employees utilizes a Microsoft Access database system to store and process requests related to their business transactions and operational data such as product sales and customer information. Over the last five years the firm has experienced tremendous growth; as a result, the … |
I'm using javascript to display text with a sidebar. It works fine in FF 2.0.0.13 but in IE 6 the links do not work and nothing is displayed. Could someone tell me how to solve this problem? [URL="http://knight.110mb.com/ebook_section.htm"]webpage[/URL] | |
i have a problem with my form. there are 2 button : a login and a register button . login but will redirect to welcome.php, register to register.php. i put the action in the form like this <form name="login" method="post" action="welcome.php" > the problem is both buttons turn me to … | |
than the java version in this case [url]http://razi2.blogspot.com/2008/04/why-is-c-slower-than-java.html[/url] | |
hello i am trying to display an image from a database which has just been uploaded by the user. when they go onto the next page the image should be displayed here. I have been able to get it to display the path for the image that haas been stored … | |
i have typed this code within my form.. [CODE=vb]Private Sub Command1_Click() SQL = "select * from cusinfo" Call connrecordset(CustomerInfo, SQL) With CustomerInfo CustomerInfo.MoveLast !Name = txtName.Text !Address = txtAddress.Text !DOB = DTDOB.Value !Age = DateDiff("yyyy", DTDOB.Value, Now()) + Int(Format(Now(), "mmdd") < Format(DTDOB.Value, "mmdd")) !Sex = cmbSex.Text !PassportNo = txtPassport.Text !Country … | |
i have the things listed below dim col_values as new collection dim var_list(100) as variant i want to add var_list1 to col_values under a key say"k" i try using this col_values.add var_list1,"k" but this is throwing up an error. Please help me........ | |
Hi all, How can i avoid same php page from being opened in two windows? If the page is opened in one window, then if the user tries to open the same page in another window, he/she should be given a message that the page is already open. Can anyone … |
The End.