199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for amgad habeeb

hello guys grade book *write a program that will calculate the average of an unknown number of students. *your program should validate the grades to be between 0 and 100. *there are 5 grades to be entered and averaged . *the program should enter the grades using a for loop …

Member Avatar for amgad habeeb
0
97
Member Avatar for simplyhuman

How do I prevent the output of my JSP or Servlet pages from being cached by the browser? is there any way to disable?

Member Avatar for masijade
0
97
Member Avatar for newbie_jar

I hope you guys can help me out... i have a little applet which caused me lot of problems. i'm new to java and i hardly managed to put all the code together, what does the script? here: users visit my website, and from their account they can upgrade a …

Member Avatar for masijade
0
3K
Member Avatar for sknn

Hello I've been wondering how to get past the whole "program crashes when user inputs the wrong data type". After extensive amount of google searches I found out that you could use !() as an argument in a loop(or if statement) to avoid that. However by doing that I encountered …

Member Avatar for sknn
0
142
Member Avatar for efigen

I have been working on this assignment, and it says i have to sort a 2d record array based on the type of record so if its an id its an int and if a name its a string, my problem is when i begin using my bubble sort, it …

Member Avatar for efigen
0
512
Member Avatar for davy_yg

I get this error when trying to send e-mail form with PHP Mailer 5.1: SMTP Error: Could not connect to SMTP host. Error sending: SMTP Error: Could not connect to SMTP host. [CODE] <?php require("PHPMailer5\class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->SMTPSecure = 'ssl'; $mail->Host …

Member Avatar for davy_yg
0
1K
Member Avatar for london-G

Hello, I am currently learning PHP. I am trying to implement a sign up page. The name at the same email address of the users in the database should give me an error message. I don't know how to start with. I started this by searching the emails in the …

Member Avatar for Stefano Mtangoo
0
118
Member Avatar for Clzeigler

Hi, I am unable to unzip the attached files in this tutorial. I receive the cannot open file error indicating that the file is not a valid archive. I have tried to download te files many times. Is there anything I can do to get these files? I really need …

Member Avatar for anand01
0
108
Member Avatar for skylinedrifter

Was doing this project for school, but i cant get it to run, it's a telephone directory project here's the code [CODE]#include<iostream> #include<fstream> #include<string> #include<iomanip> using namespace std; char getChoice() { char choice; cout<<endl<<"Do you want to look for another? "; cin>>choice; return choice; } void getNames(string &strFName, string &strLName) …

Member Avatar for skylinedrifter
0
168
Member Avatar for anjibman

Hi All, I am trying to display the helpful message to the user when error occur. a) I have exception catching in Java as follow [CODE] AgencyDAO a = new AgencyDAO(); try { a.updateAgency(agencyId, newAgencyCode, newAgencyName); } catch (DAORuntimeException e) { String message = "My Custom message"; request.setAttribute("GROUPING_EXCEPTION", new Exception(message, …

Member Avatar for Airshow
0
2K
Member Avatar for JRCharlie

Hi all I have a RDCL Report called Report1.RDCL. In this report I put an image box named logo the select image Source is set to EXTERNAL and in the use this image I have Parameters!LogoPath.Value. I would like the users to be able to pick their own logo. How …

Member Avatar for VIPER5646
0
220
Member Avatar for draven07

..uhm...hello...i'm new to python programming and I really want to explore more about this... ...i just want to know what is the best compiler I can use for this...

Member Avatar for draven07
0
248
Member Avatar for Dani

This is a very quick 'n' simple vBulletin SEO hack. It's easy to apply and it's the one I have been using here on DaniWeb for the past couple of months. I was going to wait until we went vB 3.5 to release it but I might as well do …

Member Avatar for Dani
0
5K
Member Avatar for GhostMonkey

Hey, I've got a list that takes in the current co-ordinates from a board. I'm trying to sort that list using the Manhattan distance heuristic but I'm not sure how to go about it. My list is simply [CODE] list<int> list1;[/CODE] With the formula by which it should be sorted …

Member Avatar for raptr_dflo
0
108
Member Avatar for pnoylover

[CODE]#include<iostream> #include<string> #include<conio.h> using namespace std; struct node{ int num,ages; string name,skills; struct node *link; }; typedef struct node *nodepointer; nodepointer add(nodepointer &head, int nu, int age); void str(nodepointer &head, string na, string ski); void DeleteFront(nodepointer &head); void display(nodepointer head); int main(){ nodepointer head = NULL; int c,nu,age; string na,ski; …

Member Avatar for raptr_dflo
0
202
Member Avatar for phorce

Hello wonder if you could help me please.. Basically I'm trying to implement a script where it searches through a file and sees the most popular word.. I've got it doing it like this: [CODE] Squence: 0 0 Squence: 1 0 Squence: 2 0 Squence: 3 0 Squence: 4 0 …

Member Avatar for raptr_dflo
0
139
Member Avatar for rob_hartley

Hi all I've searched everywhere on the internet including Daniweb for this answer but I can't find one. I don't want to break the rules, so I've changed the real domain name to domain.co.uk I manage a website [url]www.domain.co.uk[/url] where the owner requires a subdomain called quotes.domain.co.uk He then needs …

Member Avatar for rob_hartley
0
245
Member Avatar for Rokie

Hi everyone, Im using VS2008 and getting the following error message when I try to build the program which I have so far, I've looked around on the internet to try to understand this error but I'm still very confused any help you can offer me will be greatly appreshiated, …

Member Avatar for raptr_dflo
0
382
Member Avatar for greatcornholio

Hi all, this is maybe a big stupid question, but cant get this to work thing is that i have 5 tables: airlines - hotels - costs - projects and payments being costs my main table. In this costs table I need to have in the 'total' column the sum …

Member Avatar for greatcornholio
0
202
Member Avatar for albo1125

Hi community, I recently started learning html and I tried to make a short feedback form. That should send the data over to a php file and that should append it to a txt file. However, every time I try to submit my form data, I keep just seeing the …

Member Avatar for SQLpower
0
125
Member Avatar for zeroliken

The program should change a sentence to pig Latin. [B]Rules[B][/B][/B] A word starting with a vowel should start with a capital letter and the rest with small letters and end with "way". If a word starts with a consonant the first letter will move to the last until it starts …

Member Avatar for zeroliken
0
501
Member Avatar for Xcelled194

Hi guys, I'm fairly new to C++, though I have several years of experience with C#. I've made program with XAML and C++. Part of the program's job is to download several hundred 10mb files from an FTP patch server. I've been using the .NET FtpWebRequest for this task, and …

Member Avatar for L7Sqr
0
581
Member Avatar for javaNooblet

Hi All, If I read in from a file and populate an array with its data(all strings), how can I control the way it prints(to the console for example).Right now it just prints a huge long line in the console of all its contents. I figure I will have to …

Member Avatar for stultuske
0
268
Member Avatar for crazymidget01

I am trying to write a program to perform matrix operations. I want input the two matrices from a file. The file has the format: 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 * 0 9 8 7 6 5 4 3 …

Member Avatar for thines01
0
138
Member Avatar for tunde011

Hello, I am trying to create a program for telephone calls. i.e when a user calls a phone number, an operator picks up and ask the user for some input, the input is then validated and base on that do something else. where do i start, what programming language is …

Member Avatar for TrustyTony
0
140
Member Avatar for shootingrubber

Hello, I am writing a Tic Tac Toe java program, and it's almost all working; however, I noticed a bug in it recently and I cannot find the source of the problem. Basically the game has a New Game option in the file menu, and the first time it works …

Member Avatar for shootingrubber
0
190
Member Avatar for th3b3n

I have a basic understanding of how to create A(1) check box, and repeating that method over and over again to create more. However, this makes for messy as shit code, plus I don't feel like doing this method 30 times to create the needed 30 check boxes. So I …

Member Avatar for hfx642
0
128
Member Avatar for lbgladson

Where would I need to save a picture on my computer to be able to use it as an icon on a button in a program?

Member Avatar for hfx642
0
90
Member Avatar for bigredaltoid

Hey guys, I need to print a dictionary from a text file and than print it again with the last two values updated in each row. The text file appears as so: 12345678 Joe Dokes IT 30 95 87654321 Sally Sue ISYS 50 87 34876293 Bo Burnham MATH 60 78 …

Member Avatar for bigredaltoid
0
135
Member Avatar for phorce

Hello, I need to search a char array, for a particular word... E.g. [code] char * search; char arr[10] = {'b', 'c', 'a', 't', 'h', 'e', 'p', 'h'}; string words[1] = {"the"}; search = strstr (alphabet, words); [/code] But it doesn't work... Any ideas what the problem could be? Thanks …

Member Avatar for thines01
0
80
Member Avatar for shizzle08

Hi guys ok guys this is my problem my DataGridView1 does not show the data on my testdb.mdb i need to fix this first before i continue on adding records on my db i very much appreciate any one who can help me with this. [CODE]Imports System.Data.OleDb Public Class Customer …

Member Avatar for bluehangook629
0
145
Member Avatar for thetechlady21

I am having trouble with this code and realizing that my flags are not work. I am referring to a list box with US states inside. See my code below and tell me what I am doing wrong. I can not output the state with first two letters. A simple …

Member Avatar for WaltP
0
181
Member Avatar for JRDJ12

Hey all, I have an assignment that was assigned for the week that I could use some help on (not asking for someone to do it for me, just help with the step-by-step). Below is the requirements: 1) Create a new Java Project named whatever you'd like in your existing …

Member Avatar for stultuske
0
201
Member Avatar for Blazikaen

hi... can anyone light me on an algorithm to solve sudoku...actually i did solve a few sudokus to know how this is done. Eventhough i managed to do the sudokus by paper and pencil, i can't figure out an algorithm to solve it. I googled for algorithms but everything ends …

Member Avatar for Adak
0
235
Member Avatar for icebirdy

For example, I have 2 classes A[x,y,z] and B[a,b] and one vector for each class. I want to read a text file containing data with my two classes For example the text file may contain: A [1,2,3] B [1,2] A [4,5,6] How do i read in this file such that …

Member Avatar for mrnutty
0
150
Member Avatar for spowel4

I'm new to stored procedures and, really anything about sql beyond the basic SELECT/INSERT/etc... so this is probably just something I don't understand but my problem is that my stored procedure seems to only return the last row of the result set (i.e. if it should return 10 items it …

Member Avatar for adam_k
0
1K
Member Avatar for Paul Norris

This question is a bit academic now as my contract at this place is coming rapidly to a close. But for future reference, I'd be very interested in the answer. We're talking about .Net 2.0 and Visual Studio 2005. Don't limit your responses to this platform though; I'm interested in …

Member Avatar for adam_k
0
252
Member Avatar for lbgladson

I have the following code where I am trying to put an icon on the redButton but what I have done is not correct and I'm not sure what to do. There is no where in my book that explains how to do this and I keep getting confused looking …

Member Avatar for lbgladson
0
87
Member Avatar for felix001

I need to write a small bit of code that will print an error if I cannot resolve the name to IP. I see that you can use the "socket.gethostbyaddr" methods but I cant seem to find a simple method/exception for when it does not find an IP address. Also …

Member Avatar for Gribouillis
0
223
Member Avatar for godwinaka4life

Hello everone, I am designing a website with php for different users. And I will like to give each user a unique page according to what their input in the form is, I want to MySQL database to save the information and retrieve it each time a user login into …

Member Avatar for simplypixie
0
91
Member Avatar for sita12345

I am trying to write a simple code with if condition. If(x==1||x==2||x==3) { found true; } else { cout<<"Please provide the correct input"; cin<<input; } Based on this i need to have another condition: if(found) { cout<<"Enter number"; cin>>no; } The problem with the code is when i am entering …

Member Avatar for sita12345
0
117
Member Avatar for jackly94

Ok i have a problem which i cant seem to figure out why it is not woriking, First off When i do Enter in some Details and want to enter Records to the end of File it give me the choice of enter in the Details. When display the Array …

Member Avatar for jackly94
0
212
Member Avatar for Will Gresham

Very simple question, looking on google brings up plenty of MySQL resources on triggers but I can't find the answer I am looking for. What I want to know is; When I perform a query on a database from PHP, Does MySQL provide any way for PHP to know a …

Member Avatar for mschroeder
0
221
Member Avatar for bombay1982

Hi there; I am having problems with using printf method in this simple loop. I am looking for a 3 decimal places in the right one column and a integers in the left. I know how to print this with system.out.println but I dont know how to write it with …

Member Avatar for bombay1982
0
388
Member Avatar for PrimePackster

Hi guys, here i have a problem, that i have been trying to rectify for past 1 and half hour. Here in the code, as you can see, When the user Press Y, He get the chance to input the exponent value. There i have added another nested if, so …

Member Avatar for Fbody
0
357
Member Avatar for lena1990

hi i have a project and i have database that is written in arabic language when i run my program all iget is small square instead of the arabic character and i have try to solve this problem 3 months ago and i have search the web and i didnot …

Member Avatar for stevanity
0
2K
Member Avatar for A&M_guy

I am new to structs and I am trying to sort an array of structs but I can't seem to get it to work, I can't figure out what I am doing wrong and any assistance would be very much appreciated! [CODE]#include <iostream> #include <fstream> #include <iomanip> using namespace std; …

Member Avatar for A&M_guy
0
268
Member Avatar for lbgladson

I have to create a GUI that when I click on the buttons it changes the color of the background. Below is what I have but I can't figure out what code to put in and where to change the color of the background. [code] import java.awt.BorderLayout; import java.awt.Color; import …

Member Avatar for Ezzaral
0
5K
Member Avatar for upanotch

I tried to put an image on a JButton and it's messed up: [url]http://imgur.com/ecBOt[/url] code: [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; public class Polluted extends JFrame implements ActionListener { ImageIcon bg = new ImageIcon("bg.png"); Image bgImage = bg.getImage(); public static void main(String[] args) { new Polluted(); } public …

Member Avatar for NormR1
0
178
Member Avatar for srikandi

1) how to export jsp output in word file :?: 2) how to set header and footer when export jsp output in pdf and word file :?:

Member Avatar for brynFlew
0
93

The End.