199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hla3mi

suppose that each of the four edges of a thin metal plate is maintained at a constant temperature and that we wish to detrmine the steady state temperature at each interior point . to do this we divide the plate to squares the corners of which are called nodes. and …

Member Avatar for hla3mi
0
141
Member Avatar for EGutierrez91

[code] import java.util.Scanner; public class LazyDays { public static void main (String[] args) { Scanner scan = new Scanner(); int temp; System.out.println ("What is the current temperature?"); temp = scan.nextInt(); if (temp < 20) { if (temp > 95) { System.out.println("Go visit our shops!"); } } if (temp >= 80) …

Member Avatar for Grn Xtrm
0
136
Member Avatar for severman

hi all im trying to find out where the hack php5 is installed on my computer.. its not on /usr/bin/php5 im trying to run a php script with the ./ command. i searched php5 on my computer and enter this code at the begining: [code] #!/etc/php5/apache2 [/code] etc... allways get …

Member Avatar for codejoust
0
111
Member Avatar for VernonDozier

I've googled this and it looks to me like what I am trying to do is impossible. I'm trying to write a [ICODE]Display[/ICODE]function that can take different parameters and call the appropriate function based on those parameters (i.e. function overloading). I've read that C doesn't allow this, but I figured …

Member Avatar for VernonDozier
0
111
Member Avatar for slaywee

Develop an Employee Database System. The database of Employee should keep the information of Employees in the file with flowing components, a. Employee ID b. Designation c. Employee Name d. Grad e. Date of Employment f. Basic Pay g. Allowances Include in your project add_new_Employee, add_allowance, make_deduction and show_employee_detail functions

Member Avatar for Phil++
0
100
Member Avatar for Dlsqueak

I have this example code of a program I am writing at the place I work as a 'time clock' of sorts. I want to come in, run the program and clock in. When I clock in, I want to write this to a csv file so I can send …

Member Avatar for Dlsqueak
0
81
Member Avatar for gmauger

Hi All, I'd like to declare a static array in a header file. Is this possible? I assume there is a fairly simple solution to this, but I have not been able to find documentation on the correct syntax for this. Just to be abundantly clear, I'd like to do …

Member Avatar for gmauger
0
15K
Member Avatar for web3

How i put to my register error if user already exists. My code: [CODE]<?php include "connect.php"; echo "<h1>Register</h1>"; $num = 0; $submit = $_POST['submit']; $username = $_POST['username']; $password = $_POST['password']; if ($submit){ if ($username){ if (strlen($username) > 20){ $num ++; echo "<tr><td>".$num.". Username is too long.(3-20)</td></tr><br />"; } } if …

Member Avatar for Will Gresham
0
184
Member Avatar for aejr

Please help me, The question is: "Write a program to accomadate 10 integers. Print the variables at position 3,5 and 2 respectively." thank you!

Member Avatar for ShawnCplus
0
90
Member Avatar for horakova

This is actually a CGI issue I am having but Perl seems to be the closest forum here. I am having a very simple (hence very frustrating) problem with a CGI/Perl script. For some reason if I pas things from a checkbox they all get passed fine but the last …

0
126
Member Avatar for akulkarni

i am trying to learn servlets so i downloaded tomcat server.I learned that i have to do this...set path=c:\tomcat\lib\servlet.jar or click the exe file tomcat6 in the bin folder. I tried to connect with localhost8080 it is not working.I am not getting Tomcat home page. Any help will be great.

Member Avatar for akulkarni
0
133
Member Avatar for Tussles

As part of an assignment I have been asked to create a SortedLinkedList class. We have been told that we must use the java.util.LinkedList<E> in order to dervie this class. I understand that I must in some way overwrite the .add(Object) method. I realise that I must in some way …

Member Avatar for ejosiah
0
138
Member Avatar for lipun4u

Look at the following code... [CODE=cpp]#include <iostream> #include <cstring> using namespace std; class string { char *p; int len; public: string(char *); void show() { cout<<p<<endl; } }; string :: string(char *p) { len = strlen(p); this.p = new char[len+1]; strcpy(this.p, p); } int main() { string s1, s2; char …

Member Avatar for lipun4u
0
97
Member Avatar for Phil++

Hey, I'm confused... Are Static references the same as Static variables? Thanks

Member Avatar for Phil++
0
72
Member Avatar for laursenj

i got this javasciptcode: [CODE]<script type="text/javascript"> window.onload = function(){ var now = new Date(); var hour = now.getHours(); var vwimg = ""; if(hour < 19 & hour >= 6){ //Daytime(6h - 19h) vwimg = "http://www.whatever.com/link1"; }else if(hour <= 24 & hour >= 19){ //Night (19h - 6h) vwimg = "http://www.whatever.com/link2"; …

0
62
Member Avatar for guruvarman

Hi Friend image Uploading is working well in localhost working with WAMP SERVER 2.0. Also i am able to access the stored image easily from the directory in offline BUT While working online only the path is getting updated in database but the file is not uploading to specified directory. …

Member Avatar for guruvarman
0
100
Member Avatar for 4ukh

dear experts, I just want to wave the last digit of each cell's value like 20001 should like 2000 using ms excel 2007. please consider this table: 20001 2000 20011 2001 20021 2002 20041 2004 20042 ???? 20043 20044 20045 20046 20051 20052 20053 20061 20062 20063 20071 any help …

Member Avatar for 4ukh
0
98
Member Avatar for sony1988.sc

i want to remove 0 from an integer array.like if i have an array having element 2 2 1 1 1 0 1 1 2 1 0 1 ,i want this as 2 2 1 1 1 1 1 2 1 1,plz help me

Member Avatar for Jocamps
0
123
Member Avatar for priteshdesai

I have been learning Programming since the last year. I know C, C++ Java. I want to code some short but interesting programs, which would help me. Anything like magic odd square thing?

Member Avatar for priteshdesai
0
108
Member Avatar for Jimmalmquist

i need help with a maskedtextbox in a C# applikation. I want want it to display the date in the following format "00.00.0000" but it refuses to show the "." instead it shows "00,00,0000". I have tried several different solution but none of them works. The mask is correct but …

Member Avatar for ddanbe
0
181
Member Avatar for etypaldo

I am trying to make a program that reads from a "integers.txt" file which contains: 1 2 3 4 11 13 15 16 18 20 33 39 42 48 50 51 and finds all the even numbers in "integers.txt" and writes them to a new file "evens.txt" then finds all …

Member Avatar for woooee
0
107
Member Avatar for 2fac323

Hello, I am having trouble writing the pseudocode for the following question. Any advice as to what I may be missing or doing wrong would be greatly appreciated. Question: Plan the logic for a program that contains two modules. The first module prompts the user for a grade on an …

Member Avatar for 2fac323
0
239
Member Avatar for qadsia

Hi, I have a problem. I basically have this python code, that generates a file. I'm trying to get it to output a html file with a chosen name (chosencategory) but the problem is the chosencategory variables are already defined so it attempts to name the html file the contents …

Member Avatar for qadsia
0
266
Member Avatar for Clawsy

Hello, I would like to be able to add 'n' columns programmatically and SET THEIR TITLE as I add them. I have 2 questions: 1. How can I change the title? (not by seting a model to my table but just 'changing a property' - if possible)? 2. Is there …

Member Avatar for Clawsy
0
254
Member Avatar for NervousWreck

I am writing a fake banking program. In the function below I declare a dynamic array. [CODE]void trArr(int transactions) { int n; string* accUse = new string[transactions]; return; }[/CODE] I try to access the array in a later function but I get the error "not declared at this scope. I …

Member Avatar for Nick Evan
0
94
Member Avatar for comSysStudent

Hi all, I'm just starting java and had to create a method to return the amount of text messages needed for a message x characters long. I'm having trouble compiling and not sure exactly why [CODE] public void msgsReqd(int msgLength) { int numMsgs, smsLength = 160; msgLength / smsLength = …

Member Avatar for ejosiah
0
147
Member Avatar for atch

Hi everyone, I'm trying to compare list iterators: [code=c++] list<int> l; list<int>::iterator lb = l.begin(); list<int>::iterator le = l.end(); if (lb < le) //here I'm getting error - no operator match these operands: { //do something } [/code] And when I change this that instead of list I have vector …

Member Avatar for atch
0
114
Member Avatar for theo19

[CODE] import java.awt.*; import java.applet.*; import java.util.*; public class Tower extends Applet { TowerPanel panel; TowerControl control; public void init() { resize(500,450); setLayout(new BorderLayout()); panel = new TowerPanel(); add("Center", panel); add("South", control = new TowerControl(panel)); } public void start() { panel.start(); } public void stop() { panel.stop(); } public boolean …

Member Avatar for ejosiah
0
134
Member Avatar for bavs_02

hello to everyone, I have this code as a Grading System, but whenever I press a key on my keyboard, it shows Not a Number or NaN! Please help! I need this by two days! Please! :( [code=html]<html> <title>Grading System</title> <head> <script type="text/Javascript"> function totalM() { QM1 = parseInt(document.average.QM1.value); QM2 …

Member Avatar for bavs_02
0
217
Member Avatar for andy999

hello all, I hope someone is there to help me out this. I am spliting a text file. and after splitting I want to concate the string 1 and string2 and string three and thereafter the normal string 4 ,5,6,7,8,9,10 etc. But when I debug the total string I got …

Member Avatar for andy999
0
157
Member Avatar for veledrom

Hi, We can code this way to print something if Exit button is clicked. [code] <form action="process.php" method="POST"> <input type="hidden" name="hiddenName" value="Jolly" /> <input type="submit" name="submit" value="Exit" /> </form> if($_POST["submit"] == "Exit") { echo $_POST["hiddenName"]; } [/code] What about if we use this way. How do i check if Exit …

Member Avatar for ShawnCplus
0
120
Member Avatar for j_limboo

New to php I want to create new table and store session ID this step is to prevent multiple login Current using this code which does not check multiple logins Any advice would be appreciated [CODE] <?php //Start session session_start(); //Include database connection details require_once('config.php'); //Array to store validation errors …

Member Avatar for diafol
0
2K
Member Avatar for macdonald12

Hello all, I'm trying to make a program in C, but it's actually the algorithm that's giving me hell. The goal is to create a program that calculates and displays the [I]total number of end-locations[/I] (all locations, including similar ones) an object can reach in a 2d board (grid), using …

Member Avatar for SVR
0
188
Member Avatar for salamjamal10

import java.util.Scanner; public class CalculatingSales { private static boolean Double; public static void main(String[] args) { Scanner input = new Scanner ( System.in ); int ProductNumber; double RetailPrice; double total = 0; int Product1Count = 0; int Product2Count = 0; int Product3Count = 0; int Product4Count = 0; int Product5Count …

Member Avatar for Qzmo
0
229
Member Avatar for Triztian

Hi I think this is my first post, so here it goes: [B]Overview:[/B] [INDENT] This program declares global bidimensional array of 30 rows and 5 columns (not counting 0 in the rows) of floating type to save information of students, table is as follows: ID Partial1 Partial2 Partial3 Partial4 Average …

Member Avatar for vmanes
0
115
Member Avatar for siggivara

I've made this rather messy method that is supposed to split the message parameter (max 160 byte) into 60-byte strings if it is larger than 60 bytes. The message is always between quotes so I also want to ignore them and just get whats between the quotes. Example: "Hi there …

Member Avatar for siggivara
0
196
Member Avatar for jt241

Well I'm relatively new to the forums and to C++. I'd like to overload + and = to add two matrices by being able to use Z=X+Y format. Header file: [CODE] #ifndef HOMEWORK1_H #define HOMEWORK1_H class Matrix{ public: double **element; Matrix(int=3,int=3); ~Matrix(); double getelement(int,int); void setelement(int, int,double); Matrix & operator+(const …

Member Avatar for dkalita
0
192
Member Avatar for alexjbriggs

Hey Guys...i know this is a common problem and ive read other threads, but can't figure out my specific problem. Any help would be appreciated!! This script worked perfect until i moved it to a different host. Getting this error: [CODE] Warning: mysql_numrows(): supplied argument is not a valid MySQL …

Member Avatar for network18
0
96
Member Avatar for shahab.burki

Hi, I am doing network programming in C. I want to send Hexadecimal data between client and server. But stuck how C handles Hexadecimal values? I would like to put and example. I am having a variable ACK_CODE 0*81. Now want to send it. Since the send call can only …

Member Avatar for gerard4143
0
140
Member Avatar for Gaiety

Hi, i am presently working on C but there are some situations i need to know the assembly code of corresponding C program. if any can provide some general info of c - assembly it would be appreciated. i have a program called [CODE=C]int main() { printf("Hello,Plz Help\n"); return 0; …

Member Avatar for gerard4143
0
209
Member Avatar for JRabbit2307

just trying to create a person(or two) using name, age and nationality but its giving me illegal start of expression error // **************************************************************** // Person.java // // Person class with two constructors // *************************************************************** public class Person { private String name; private int age; private String nationality; // ------------------------------------------------------------ // …

Member Avatar for Grn Xtrm
0
627
Member Avatar for unsure

I am taking an intro to cs class. I have written a simple program but dont know if it is correct. please help me. thank you!

Member Avatar for pspwxp fan
0
125
Member Avatar for merse

Hi! We can declare not just variables but functions or pointer to functions also in the main function like this: double my_f(double); double (*my_fp)(double); But what can we do with this? For example how can we give a value for my_f or my_fp? I try lots of variants with * …

Member Avatar for Grn Xtrm
0
172
Member Avatar for r0n

hello everyone how can i mask a date using [mm/dd/yyyy] and [mm/dd/yy] format in textbox in java?.. and how can i also mask the amount of money using[###,###,###.##] this format?.. thanks!

Member Avatar for javaAddict
0
131
Member Avatar for drjay1627

can someone please explain to me how read write work in sock programming. my assignment is to run a server and client. the client ask the server "who are you?" and the server replies with the servers name and date and time. i cannot post my whole code here as …

Member Avatar for dkalita
0
242
Member Avatar for xueyingkoo

hello All, i have no idea where should i post this question ... This is my Operating system assingnment . Can any one give me some example ? "In academic literature or the Internet, research the use of graphics to replace typed passwords. Describe the historical milestones of the technology …

Member Avatar for xueyingkoo
0
71
Member Avatar for babbu

hie, m using visual studio 2005 and access 07. this is my code. ive also attached an access 07 file and this is the exact data tht my actual database has..plz help [CODE] Dim DataAdapter As New OleDb.OleDbDataAdapter("Select ID from Customer", oledbcon) Dim datatable As New DataTable DataAdapter.Fill(datatable) Dim CommandBuilder …

Member Avatar for TomW
0
104
Member Avatar for j_limboo

New to PHP Password change fails please advice [CODE] CREATE TABLE IF NOT EXISTS `ps_users` ( `id` int(255) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `firstname` varchar(50) DEFAULT NULL, `lastname` varchar(50) DEFAULT NULL, `password` varchar(40) NOT NULL, `active` int(1) NOT NULL DEFAULT '0', `ip` text NOT NULL, `usergroup` text …

Member Avatar for j_limboo
0
200
Member Avatar for Web_Sailor

Hi I have written a program in c++ and I feel that it is a bit slow for very large datasets like > 1GB. Well I am not that confident in char* since I have just started coding in c++. So can anybody help me to make it more efficient …

Member Avatar for dkalita
0
146
Member Avatar for mahela007

Why does this raise an error? I'm trying to add a value to the [0] index for the list [CODE]mylist=[] mylist[0]='hello'[/CODE]

Member Avatar for mahela007
0
78

The End.