64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for GiRL,IT

I need solution for this : Write a program for a grocery that reads products data and determine and display the product that has the highest price and the average price. A product has three pieces of data: id (int), name (String) and price (double). Your program should continue reading …

Member Avatar for GiRL,IT
-2
156
Member Avatar for didi00

Hello everyone!!! Can someone help me with this: I need someone to tell me if the code is correct about this: It should create a table, insert something into the table (in this case random numbers), select from the table, and erase the table. [code] import java.sql.*; public class dbAccess …

0
56
Member Avatar for d8m9

Hi, I want to change a variable in a definition everytime it is called. for example: when I click on button, it will print 1 when I click on button again, it will print 2 Is this possible? I have written this code but it doesnt work :) [CODE]k=0 def …

Member Avatar for d8m9
0
126
Member Avatar for Dewey1040

this is the error i'm getting. g++ main.cpp g++ universityperson.cpp /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [universityperson.o] Error 1 I'm not going to post all the code i have but here is my makefile main file and universityperson files …

Member Avatar for nezachem
0
237
Member Avatar for miskeen

Hi, I've a multifile program in C and I need to use global variables. I've one header file that is called "global.h" where my global variable is defined. In the other files, there's an include directive to "global.h". At the moment, I'm using my variable in the C files without …

Member Avatar for gerard4143
0
932
Member Avatar for Skeen

I'm making this snake game, and I've created a class to handle the snakes (players and AI snakes), this works out quite well, however, at the moment I'm declaring my main snake (player 1), as global, in terms of: [CODE] class Snake { //... Lots and lots of code. } …

Member Avatar for Skeen
0
219
Member Avatar for veledrom

Hi, How do i prevent printing "Warning" bit of connection error? I only want see my error message on screen. Note: I deliberetly enter wrong Host IP to see the message thou. [code] Warning: mysql_connect() [function.mysql-connect]: Host '127.0.0.123123' is not allowed to connect to this MySQL server in C:\apache\login\database.php on …

Member Avatar for veledrom
0
100
Member Avatar for tiwas

Hi, How can I link dlls (integrate them) into my program? I would like to just have one single exe, and not having to distribute a zip or installer... Cheers!

Member Avatar for sknake
0
79
Member Avatar for Wizbang

Hello, I never programmed Delphi and I got a project that I need to compile and make some changes. The problem is that I have a lot of components missing and I cant find them or even theire name so I can google for them! Any help is appreciated! List …

Member Avatar for fdomds
0
268
Member Avatar for iammirko

CODE [code=vb] Public Sub InstituteCreateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InstituteCreateButton.Click Dim InstituteName As String InstituteName = InstituteNameBox.Text Dim InstituteCountry As String InstituteCountry = InstituteCountryBox.Text Try Dim InstituteTableAdp As New InstituteBaseDataSetTableAdapters.InstituteTableTableAdapter InstituteTableAdp.Insert(InstituteName, InstituteCountry) MsgBox("Success") Catch ex As Exception MsgBox("Failed!") End Try InstituteCreateButton.Text = InstituteCountry End Sub [/code] …

Member Avatar for iammirko
0
117
Member Avatar for G_Waddell

HI Guys, I have written an app the prints out batches of documents for postings. Each batch is to be seperated by a red coversheet. I know that in our printing department, no matter what printer they use to print the batches on to they will always have the red …

Member Avatar for G_Waddell
0
121
Member Avatar for Japus

Hello Let me describe the problem: I've got 1 base class item which is inherited by a few other subclasses. Everything goes well until I put an object from a subclass into an array of items I lose the specific data of the subclass. I think I need something of …

Member Avatar for Japus
0
93
Member Avatar for rsaska

I have created a procedure, exitFailure() that is invoked if a file doesn't exist: [CODE] int exitFailure() {//start exitFailure() printf("Failure, hit any key to exit and press enter.\n"); scanf("%d", &counterx); return 1; }//end exitFailure() [/CODE] Below is the snippit of code that invokes exitFailure() [CODE] inFile.open(inputFilename, ios::in); if (!inFile) { …

Member Avatar for Sodabread
0
156
Member Avatar for rukshilag

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form name='frm1' method="post" action="student.php"> Student No <input type="text" name='txtStdNo' /> <BR /> Name <input type="text" name='txtName' /> <BR /> Address <input type="text" name='txtAdd' /> <BR /> Contact No <input type="text" …

Member Avatar for nileshgr
0
133
Member Avatar for Japus

Hello I'm making a dungeons and dragons and i need something to contain all inventoryitems like pieces of equipment, potions,... How can I put them all in one array or vector? Thanks, Jasper

Member Avatar for Japus
0
720
Member Avatar for rukshilag

please help write a javascript function to do a client side validation of the html form i have displayed below. the validation should check if input box Student No cannot be empty; if the txtStdNo box is empty there should be a message "Cannot be empty" and move the cursor …

Member Avatar for me655321
0
101
Member Avatar for kanuri1

hi frnds wishesw to all, i have an problenm that how to write javascript in asp.net for showing client side validations........ pls give me reply it is very urgent for me.....

Member Avatar for Oxiegen
0
70
Member Avatar for hajjo

[url]http://www.mattkruse.com/javascript/mktree/[/url] I have tree like that style. I want on node click, to show word loading below the node clicked until new nodes are opened..anyone know how to do this?

Member Avatar for me655321
0
105
Member Avatar for Razorholt

Hello everyone, I'm trying to customize the popup menu based on which table I right-click on. I have disabled the right-click function on the page except for the tables. I did this on purpose. This web page will be called from a python software, using the IE activeX, so no …

Member Avatar for Rajivgandhi
0
354
Member Avatar for happymadman

How would I fill a two-dimensional array up with numbers. map_height = 9 map_width = 8 I have this code: [code] for (i=0; i<map_height; i++) { for (p=0; p<map_width; p++) { room_numbers[i][p] = w; w++; } } [/code] But when I try to print it out it comes up with …

Member Avatar for happymadman
0
119
Member Avatar for mwaqas1990

Hey I m new in programming and I've spend 3 month on c# and now want to participate in imagine Cup with my team. and Looking for topic and the first requirement of imagine cup is: Your entry must address a [B]social cause[/B] connected to the 2010 Theme: "Imagine a …

Member Avatar for Geekitygeek
0
113
Member Avatar for me655321

Hey, I created a custom datagridview column for a progressbar and included customizable color properties but I can't get them to work right. After compiling, the properties show up correctly in the Edit Columns popup editor, but changing the values has no effect. The designer generated code shows the original …

Member Avatar for me655321
0
280
Member Avatar for sathya8819

I am implementing a code to detect overlapping regions in a cell, as shown in the attachment. As you can see, the image is an overlapped version of two cells. My aim is to separate them. But I have got no clue whatsoever to do this. Can anyone help me

Member Avatar for sathya8819
0
76
Member Avatar for sathya8819

Hi, I am implementing a project where I have to use adaptive thresholding on an image. That is, the threshold value must not be global, but must adapt itself with the image. I have thought a lot, but am unable to get a logic. It would be really helpful if …

Member Avatar for sathya8819
0
140
Member Avatar for sathya8819

Hi, I have a code where I have to use the region class in drawing. When I type using System.Drawing., the region class doesnt appear in the drop down list. I know this is a kinda silly doubt, but I need to include it in my project. Thanks prashanth

Member Avatar for sathya8819
0
169
Member Avatar for sathya8819

Hi, I have this following code for RGB to HSL conversion, but I do not know how to use it to display my image. Can someone help out [CODE]var_R = ( R / 255 ) //RGB from 0 to 255 var_G = ( G / 255 ) var_B = ( …

Member Avatar for sathya8819
0
235
Member Avatar for sathya8819

Hi, I am trying to implement the K Means Clustering Algorithm for Image Segmentation. The logic behind K Means is : 1. Place K points into the space represented by the objects that are being clustered. These points represent initial group centroids. 2. Assign each object to the group that …

Member Avatar for sathya8819
0
816
Member Avatar for dennis.d.elston

I am trying to write a funtion that will return the value of 1 if its string argument is a palindrome. I have started but am unsure if it is correct. Could someone please take a look and point me in the right direction? Thanks [CODE]#include <string.h> Int palindrome (const …

Member Avatar for mrnutty
0
126
Member Avatar for softswing

Hai Friends, What is Swingworker class? were we can use this class? what its advantage? can any one explain this....

Member Avatar for softswing
0
122
Member Avatar for ksenthilbabu

Please Help me, We had a Software application Developed using VB6 with MSSQL SERVER2005 as Database(Remote) in [url]www.znetindia.com[/url] our web space provider , the application was working properly until they upgraded the Server configuration, Now we are not able to connect with the database using the normal OLEDB connection String …

Member Avatar for akhilesh12
0
2K
Member Avatar for Geek_Cyborg
Member Avatar for Geek_Cyborg
0
2K
Member Avatar for minigweek

Hi there folks, I have Visual C# Project- Windows Application , It has a Webbrowser Control , and I intend to load a local HTML file with images into it. I want to embed the embed the html file and image files as resources. So I did. While using the …

Member Avatar for sknake
0
2K
Member Avatar for satar

Hi; Error in cold fusion 5. Failed to send the spooled mail file, E:\CFusion\Mail\spool\BD81.cfmail. SMTP server replied "5.7.1 Unable to relay for [email]aaaa@bbbb.com[/email]" Moved file to E:\CFusion\Mail\undelivr\BD84.cfmail. Can someone help me.

Member Avatar for freshfitz
0
100
Member Avatar for zachattack05

Sorry to keep asking so many questions, but you guys always seem to be so nice and helpful... I need a way to verify that a database file is in a somewhat stable state...stable as in it has all of the correct tables, and each table has all of the …

Member Avatar for zachattack05
0
135
Member Avatar for rogerse

Hi there, I have written a page which is meant to allow a user to enter details of a new car for sale (via a form), and then the submission of this form should add the details to the database. As far as I can see all the code is …

Member Avatar for rogerse
0
143
Member Avatar for ayesha789

Hi Dear all Its my table structure... [CODE=mysql]CREATE TABLE IF NOT EXISTS `limsrentpayment` ( `PaymentMonth` varchar(15) NOT NULL, `SiteID` varchar(15) NOT NULL, `DurationS` varchar(25) NOT NULL, `DurationE` varchar(25) NOT NULL, `Amount` varchar(15) NOT NULL, `pDate` date NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;[/CODE] and data stored in it [CODE=mysql]INSERT INTO `limsrentpayment` …

Member Avatar for urtrivedi
0
159
Member Avatar for johni12

Hey, I'm sorry for being such a python newb, but thanks for helping me out with the last one! Hopefully you guys will help a newb out again :) This time, I need to use a recursive function to basically do the same thing that the .replace function for strings …

Member Avatar for johni12
0
139
Member Avatar for babbu

m using ms access and c# i fetch the data frm the database which includes sr.no. and store in a data table. i thn display the contents using a datagridview. everythin is working fine.. heres the catch i do not want to display the sr.no...how can i make tht particular …

Member Avatar for babbu
0
4K
Member Avatar for theABCasian

hello all working on a class project in C++ using eclipse and g++ stuck a zip of the project as an attachment but here is the basics [CODE]#include <iostream> #include "Complex.h" #include "FileHandling.h" using namespace std; int main(int argc, char **argv) { FileHandling file();// opens the file and gets the …

Member Avatar for theABCasian
0
352
Member Avatar for confusedndazed

Hello all, I need to create a function call to calculate the average...Can anyone help with that?? I'm not sure how to create a function in my code to calculate the average. My code currently terminates after I enter the 50 inputs and does not compute and read the average. …

Member Avatar for jonsca
0
89
Member Avatar for BestJewSinceJC

If I was using @$ as my flag pattern (to signal the end of the data) what would I do if @$ was seen in the data? I would just stuff another @$ right after it in the sender and in the receiver, if I saw two consecutive @$ I …

Member Avatar for BestJewSinceJC
0
613
Member Avatar for sirdanman10

I don't know if anybody here programs in C++ for the AS/400, specifically the Personal Communicator (PCOMM)... I have been able to successfully write programs in Visual Basic for Applications with Excel but I am having a hard time with C++. When I try to compile one of the sample …

Member Avatar for sirdanman10
0
167
Member Avatar for fuchsia555

hi how can we minus 15 pixel from bottom height in fitting for create thumbnails from original image in this code ? i mean how can tell php that capture from original image the ( all width ) and ( all height - 15 pixel from bottom ) [CODE] # …

Member Avatar for fuchsia555
0
260
Member Avatar for Lilal

Hey, I'm trying to do some compression on an ascii saved file, and running into problems. The original file starts off as such: [CODE]7+'Y 2+'J0-B)#0 [/CODE] I can read this in, and I get it as: [CODE]6 1 55 32 32 41 85 80 120 5 2 33 85 81 …

Member Avatar for Lilal
0
299
Member Avatar for johni12

Hi, I am a newbie here and a python newbie as well :) I am having trouble implementing a program in which you must use only recursive functions and no built-in python functions other than the len function in order to determine if there are duplicates of an item in …

Member Avatar for johni12
0
253
Member Avatar for kamikazekazuo

[code] #include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; //------------------------prototypes---------------------------------- void ReadData(int &x, int &y, int &z); float FindMaxMin(int x, int y, int z, float &max, float &min); float ComputeAve(float x, float y, float z); void ShowAll(float x, float y, float z, float average, float max, float min); //-------------------------------------------------------------------- …

Member Avatar for jonsca
0
156
Member Avatar for iRemember

i just recently started with pascal, and I have no idea what the compiler tries to tell me. Can anyone tell me whats wrong with these procedures? [CODE]Uses Crt; var Answer: Real; AnswerB : Real; AnswerC: Real; (******************************************************************************************) procedure GetData; var A : Real; B : Real; c : Real; …

Member Avatar for FlamingClaw
0
116
Member Avatar for JasonDoyle

to declare and populate my array i am using [CODE] //declare Image pictures[][] = new Image[16][14]; public void init(){ //populate pictures[2][0] = getImage(getCodeBase(),"twohearths.png"); pictures[3][0] = getImage(getCodeBase(),"threehearths.png"); pictures[4][0] = getImage(getCodeBase(),"fourhearths.png"); pictures[5][0] = getImage(getCodeBase(),"fivehearths.png"); pictures[6][0] = getImage(getCodeBase(),"sixhearths.png"); pictures[7][0] = getImage(getCodeBase(),"sevenhearths.png"); pictures[8][0] = getImage(getCodeBase(),"eighthearths.png"); pictures[9][0] = getImage(getCodeBase(),"ninehearths.png"); pictures[10][0] = getImage(getCodeBase(),"tenhearths.png"); pictures[11][0] = getImage(getCodeBase(),"jackhearths.png"); …

Member Avatar for JasonDoyle
0
159
Member Avatar for CaffeineCoder

Does anyone know how to setup a dropdown list for C# without using a database? I'm trying to set up one that will allow users to select a newsletter from the dropdown and have it pop up in a new window. Any ideas? [CODE] <ASP:DropDownList id="NewsletterSelect" runat="server"> <ASP:ListItem value="'[Path]'">Newsletter 1</ASP:ListItem> …

Member Avatar for CaffeineCoder
0
282
Member Avatar for zachattack05

Would anyone have the heart to post some example code to create an empty table? My code doesn't seem to work, it says the data type "int" in invalid...here's what I have: [CODE=C#] if (File.Exists(ExecutablePath + "\\idcc_data\\_IDCC.sdf") == true) { SqlCeCommand cmd; SqlCeConnection connection = new SqlCeConnection("DataSource=" + ExecutablePath + …

Member Avatar for zachattack05
0
2K

The End.