199,114 Archived Topics
Remove Filter ![]() | |
I just want to know If I can combine the 2 codes together, that I created, or do I have to start over? The new assignment is to: Use an array for the different loans. Display the mortgage payment amount for each loan. Then, list the loan balance and interest … | |
I created a user login/registration system and the login works fine. But I can not seem to get the registration to insert the info into the database. It returns no errors and says the record is there but when you check from phpMyAdmin, the record is not there. Here is … | |
I have two classes. Student and StudentTest. My test class wil read the student info from the command line. I also need to check if the student already exists with equals() method. Can someone help me with this? Student [code] public class Student { private String firstName; private String lastName; … | |
I'm creating a particle effect system in C++ with SDL. I'm coding a hiarcharchy like [URL="http://www.gamasutra.com/view/feature/3157/building_an_advanced_particle_.php?page=2"]this one[/URL] (scroll a bit down and you will see it). I have an abstract base class called Particle. It's abstract because I want the derived classes to be forced to implement the pure virtuals … | |
Am currently working on a PHP project..and am stuck with the calculation part and sending the results to my database table, am dealing with checkbox and my task is to allow members to tick all the suitable times and then to send each column to their table in my database … | |
![]() | Anybody know how to do the following: id (PK/autoincrement) file_id (FK/int) - same file id pops up loads of times statement (varchar) - just some text from the file status (tinyint 0/1/2) - depending on the statement = 0 or 1 or 2 into a single record for each file_id, … ![]() |
/* PRG/420 Week 3 Assignment: Mortgage Calculator Program Programmer: Eva Manicom Date: March 1, 2010 Filename: Mortgage Calculator Program Purpose: Modify the mortgage program to display the mortgage payment amount. Then, list the loan balance and interest paid for each payment over the term of the loan. The list would … | |
The top code is my Loop for the mortgage program. The second code is my Array list for the Mortgage program. Is there a way to combine the 2 to do the following:* Use an array for the different loans. Display the mortgage payment amount for each loan. Then, list … | |
Hello, I would like to declare a class atribute so I wrote something like this: [CODE] class Xpto{ private static int value; }[/CODE] However, once is private, I cant access it like Xpto.value nor a.value ("a" is a Xpto instance) Declaring it protected I can access it through class and … | |
I am going to come right out front and say I am in computer science class and we are working on java code and I am needing help. I keep getting an error message that reads: ComputeChange.java:4: class, interface , or enum expected java.swing I understand that it is telling … | |
(Science: wind- chill temperature) How cold is it outside? The temperature alone in not enough to provide an answer. Other factors including wind speed, relative humidity, and sunshine play important roles in determining coldness outside. In 2001, the National Weather Service (NWS) implemented the new wind chill temperature to measure … | |
[code] void NewCustInfo(CustData &cust) { cout << "Customer Name: "; getline(cin, cust.name); } [/code] CustData is a structure that is declared, and the name data member of that struct is of type string. For some reason when I call this function(there are no compile errors), it displays the cout statement, … | |
Is there in C++ , a function like this ? [url]http://wiki.sa-mp.com/wiki/Format[/url] | |
* * * * * * * * * * * * * * * i want code for this.pls giv me the code | |
I just did this and I am not sure I am doing this correctly. You have purchased a stereo system that cost $1000 on the following credit plan: no payment down, an interest of 18% per year, and monthly payments of $50. The monthly payment of $50 is used to … | |
I have a page that is under SSL. However, in IE6, I get a notification: "This page contains both secure and non-secure items" etc. I've looked at all the HTTP requests for that page in both Firebug and Wireshark, and none of it seems to be sent over plain HTTP, … | |
Hi, and thanks for reading, I only hope you have a chance of helping me out, whoever you may be i thank you in advance. Here is the problem I am up against. My program is random number selector like a lottery number picker. I made it so it picks … | |
hello.. this is srini... is any one clear me the concept of BIT FIELDS........and what is necessity to use????? explain the below program..........i hope i can get a good reply from the great members [CODE]// BIT FILED // #include<iostream.h> #include<conio.h> struct word { unsigned w0:1,w1:1,w2:1,w3:1,w4:1,w5:1,w6:1,w7:1,w8:1,w9:1,w10:1,w11:1,w12:1,w13:1,w14:1,w15:1,w16:1,w17:1,w18:1,w19:1,w20:1,w21:1,w22:1,w23:1,w24:1,w25:1,w26:1,w27:1,w28:1,w29:1,w30:1,w31:1; }; union set { word … | |
Hi everybody please I want the way to create calculator by c++ builder by using the properties ( Graphical User Interfaces) Khalid | |
I read some time back that memory operation on stack is much faster than heap. With this information the first thing came into my mind was that if we get a way to allocate memory dynamically on stack it would surely help us to optimize memory operation cost. I started … | |
hi everyone i need help how to -creates an array for 5 integers and store it in array -use the highest & lowest integer and cube it i stuck in array, i confuse how to input integers to array with JOptionPane so far for the input [CODE] import javax.swing.*; import … | |
[CODE]#include <iostream.h> #include <conio.h> main() { int spm, mph; double spmRemainder, minInHour = 60, secInHour = 3600; cout << "Please enter the speed in miles per hour: "; cin >> mph; spm = secInHour / mph; spmRemainder = secInHour / mph; cout << "The speed of in minutes and seconds … | |
Hey, I'm trying to create a website for a friend, which involves a login system, with registering users, and then booking places on weekends away. I have no knowledge of javascript, but would like to use it for client side updates, I only have a week or 2 left to … | |
hi first of all i want to create a linking with two tables in database: 1 table : id,name 1 nick 2 john 3 michael 2 table (i want to use this table for dropdown list) id,job 1 engineer 2 scientist 3 coder how can i link them both? the … ![]() | |
Specification: I wrote most of the code separately but seems am having difficulties linking it to my database: Write a simple E-commerce application, which may be a bookshop, music shop, clothes store, or anything else you wish. There should be a “user” interface to allow customers to select and purchase … | |
Right now i am having difficulty skipping the blank lines in the txt file i read in. I read in all the material i need, but the blank lines come in too and messes up my array. this is my txt file #### #M## #..# ##.# #..# #### 0 S … | |
Hi, I am new to ruby and I want to write code which makes shared memory and writes to it.Similar to the C code here: [CODE=c]void main(int argc, char* argv[]) { HANDLE mappedFile = 0; int oneSecond = 1000; char* shared = NULL; HANDLE eventHnd; eventHnd = CreateEvent(NULL, FALSE, FALSE, … | |
Hi Guys, I'm really interested in C++ and am currently making a basic Text based poker game. on a sideline to this does anyone know any simple encryption code or where to start when doing this? For instance taking a text file (.txt or even .doc?) and creating your own … | |
Hi , i have read that new line character gets converted to \r\n when writing characters to a file and converted to new line again when reading. but i observed one thing here. i have written contents hello followed by return key . and i have written a program to … | |
I am having an issue with creating some JSP pages. I have a few pages (Home, About Us, Contact Us) done up in JSP, and I also have the ability to login to this site using a username and password. What I want to achieve is to allow visitors to … | |
Basically I am trying to learn multithreading in C++. Platform: Windows XP. So far so good but I want to make sure I'm using mutex correctly. It compiles and runs as expected, but just wanted to make sure I use the CreateMutex() function in the correct place. Thanks! Here's my … | |
Im mid way through writting my own c shell and having trouble with my redirecting, i use strtok to spilt the input into 2 parts, argv0 being command and argv1 being cmd i have this for redirecting so far [code] if(strcmp(cmd,">")==0) { strcpy(filename, command); filein = open(filename, O_RDONLY); dup2(filein,0); close(filein); … | |
I am in my first java class and I am writing an amortization program. I have gotten every thing to work correctly thus far except when I try to put in an outer loop I get the following error: 1 error found: \gnixon00Lab3Test.java:116: cannot find symbol symbol : variable restart … | |
I am very new to programming and am really struggling with Java. I'm currently working on the below code, but when I compile the program, I'm getting several messages referring to multiple lines in my code, all stating things like the following: C:\Users\Heather\Documents\HACH5_8.java:111: cannot find symbol symbol : variable showFeet … | |
Hi, I want to check whether a system exists in LAN or not and also the database residing in that system is up or not.So, for this I'm trying to use telnet command as follows, Runtime rt=Runtime.getRuntime(); Process p=rt.exec("telnet 192.168.1.15"); No error nothing ,It is executing .But by using the … | |
i want to use timer in my pages..below is the code that i had used.. its working fine when i used it with a new page..but when i used it with my master page and run in browser it will only show the time..i had to refresh it every time … | |
hey i am trying to execute a query statement here is my code below [CODE] $sel="SELECT course_name,course_code FROM courses WHERE course_name='$diff'"; if ($result2=mysql_query($sel)) {echo"nice"; } else { echo "shit"; } while ($row2 = mysql_fetch_row($result2)) { echo"row[0] : row[1] <br>"; }[/CODE] please note that the $diff variable is an array while … | |
hello.... i am doing search concept. i am searching one word from all my web pages . actually i have only one table for 25 static pages. among this pages i want to search searching content. and also highlight the search content. how to do? | |
Hi, I'm trying to create a vector array that contains pointers, and these pointers point to objects(particles) that have been created while the program is running. How do I use the appropriate de-reference operator to use functions of the class particle? ex. particle.move(); Here is what I have and my … | |
Hi All, Apologies for my naivity in advance, but I am very new to the Python programming world - with experience mainly in Basic and Matlab. I am studying my PhD and am currently trying to program using Python in the Vizard environment to create stimuli for experiments. The purpose … | |
I have included following webservice in my project [url]http://www.webservicex.net/CurrencyConvertor.asmx[/url] There i got a function as ConversionRate() which takes parameters as follws [code] double Rate; CurrencyConvertor ccs = new CurrencyConvertor(); Rate= ccs.ConversionRate(Currency.USD, Currency.INR); lblResult.text=Rate.toString(); [/code] It works fine but, My application contains 2 textboxes where i want to manually show the … | |
Dear programming cracks! I set up a website and thought an email form would be nice, but I thought it would be easier to get it right! I got it quite ok with the easy example below which I found at: [url]http://www.freewebmasterhelp.com/tutorials/php/6[/url] [CODE]<? function checkOK($field) { if (eregi("\r",$field) || eregi("\n",$field)){ … | |
Hi, I'm current working on a project that allows the user to store customer and job details. At the min, I have a form to view and add customer records, but also edit/delete etc. customer records. I also have a form to add a particular job type. I'm working on … | |
i am new to java programming and not good enough. we are required to make one class which creates and manages connection to database instead of all my servlet. i cud come up wtih the following code. please assist in what i have done wrong .thanks My connection file. [CODE]/** … | |
hello i'm newbie here. i'm finish to develop a registration system using vb 2008 exp edition. so, i want to connect my standalone system with LAN network. i want to access database from other computer and be use in my system. i'm use crosscable to connect with 2 computer. before … | |
Hi I've been trying to make pagination for my search results and I have this problem: The first page displays ok but when the max result per page is achieved like $max_results = 2 and it reached 2 the links for the other pages shows but when clicked on it … | |
Hi guys, I am doing an exercise we got in school and I am stucked at the point when I think everything is correct, but obviously is not :-). Target: Make a very simple pascal program, which opens a text file with three variables(name, sex, salary) and returns the highest … | |
Hey guys, I have two JPanels for my game, one jpanel shows my character, informational text and the other shows the map which is made up of a tileset. Is there anyway I can show the map behind the character and information without merging the two java files? the Map … | |
I am writing a program for school where the user inputs their age into a String which is then converted to an integer. When a value that cannot be converted to an int is input, an exception is thrown. I have written the code for this, but I am not … |
The End.