199,114 Archived Topics
Remove Filter ![]() | |
Cashier 1.0 is a C++ program that displays on the screen item codes with corresponding item description and price (at least 10 items). It asks the user to enter the code of the item purchased by a customer. Then, its description and price are displayed on the screen too. Also, … | |
The assign was a game called FortuneCity The prof wanted us to follow the MODEL - VIEW - CONTROLLER implemention. The MODEL contains only functions that can be used in the game. It has NO GUI stuff in it. The VIEW contains only contains the GUI interface. The CONTROLLER allows … | |
Good morning/afternoon/evening! I'm trying to run a MySQL query, but it seems to be ignoring the "ORDER BY" clause, most likely, I'm believing, because I'm using the "IN" keyword in my query (several times, as a matter of fact, along with a "LIKE"). Is there a way I can structure … | |
i tried the following code but not getting the desired output. I need to extend Applet class along with dialog class.how do i do that? [code=JAVA] import java.awt.*; import java.awt.event.*; import java.applet.*; /*<applet code="YesNoDialog" width=400 height=400></applet>*/ public class YesNoDialog extends Dialog implements ActionListener { private Button yes=new Button("Yes"); private Button … | |
i am currently working on a GUI for a program. i have created 100 jpanels which i have set opaque and colored blue. All of these blocks get an error which says that an identifier is expected for the lines which set them opaque and colors them, heres an example: … | |
Hi, everyone... I'm using ms access 2003 and i wanna know how to write a code in vba that will take initial days x add y days every end of month and store them as accumulated days. Pleases I don't know wre to start. Thanx in advance | |
hi guys, i have working on this simple cart script,it goes like when selecting the product in combobox it will display the details of the product into the textbox, i can display the details but my problem is when i select another product the previous selected product was replaced.. what … | |
Hello. I'm trying to write an application, which after pressing a key does a particular action. The thing is I need the application to receive key events even if JFrame isn't itself focused (is iconified). I've read somewhere that it cannot be done - is that true? If it is … | |
Code compiles and runs correctly, just need to have the 'total' keep adding to itself after the do you want to continue question. Right now it clears it everytime after it asks that question (Hopefully that makes sense) [CODE]#include <iostream> using namespace std; int main() { double length =0; char … | |
Hello, I am new to Java programming and I just got the NetBeans IDE. One problem that I've been having with Java is the input. [code=java] package learning; public class Main { public static void main(String[] args) { int num1 = 0, num2 = 0; cin >> num1 >> num2; … | |
Hi i have a table which i was using with a datagrid using hyperlink to maintain a simple menu to browse a internal site. but now i decided to create a horizontal menu with the Menu Component of asp.net, i know there is a different way how to do this, … | |
Hi, I am using Cimage library to do a Sobel algorithm. Here is the code [code=cplusplus] CImage * image1; image1->Load(".\\tempSnapShot1.bmp"); CImage* returnImage = new CImage(); Sobel(image1,returnImage);[/code] The Sobel function is [code=cplusplus]void CI90ControllerDlg::Sobel(CImage* image,CImage *returnImage) { returnImage->Create(image->GetWidth(),image->GetHeight(), image->GetBPP(),0); double GX[3][3],GY[3][3]; int sumX = 0; int sumY = 0; int SUM = … | |
I have an Access database and I want to fill some text boxes with data from a table. I'm using the following method for an example: [code] Me.txtCompany.Text = dr.GetString(1) [/code] That works great. I have that in the PageLoad event. Then I want a user to be able to … | |
I have tried to get my php scrip to work but it doesn't. can someone maybe help me to get it working please. Here is my script: [code=php]<!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=iso-8859-1" /> <title>Untitled Document</title> </head> <?php if(isset($_POST['mail'])) { $email_to … | |
Hi there, I'd like to know if is there a way to check my e-mail and send e-mails with python. I am trying to do that in Window Vista, and I've tried some codes with smtp, but I couldn't find a solution. Can anyone help me out with this, thanks … | |
Realized something today by accident. I am asking for a dollar amount in my program, and checking to make sure it is a valid amount above $0. What I am not checking for is a character response. I have tried some stuff, and nothing seems to work. Can anyone look … | |
Hi, I would like to know if there is a way to keep the script as is but also [B]add[/B] a function to this script so that if a user clicks on another tab (div) the open tab will close on click? Please see code below: Thanks in advance! :icon_smile: … | |
I want to use to dimensional arrays to draw a graph. How do i go about it. I have never use it before. Please | |
How to compute surface area of an object? Write a program that computes the surface area of an object. The user will choose a circle, rectangle or triangle. The program will prompt the user for the values needed (radius, 2 sides or base & height), then show the answer. Requirements: … | |
So I was looking over someone elses code, and the main is unusual, no type. its just: #include <math.h> main(int argc, char *argv[]) I've come up with 2 theories: 1) It defaults to int? 2) #if/#endif directives somehow negate the need for int? Have no experience with this though, so … | |
I thought I'd set myself a challenge as I've been programming in Python a little while now (nothing too heavy, mind you!) and make a 4-in-a-row game which I could play against the computer or another person, on a grid which i specify how big. I though I had the … | |
So I'm working on a GUI program in Java, and I'm having problems dealing with some text fields i have. The text fields are resizing themselves the same size of the window, making them much larger than I wish. [IMG]http://i6.photobucket.com/albums/y201/ElChibo/tioex-2.jpg[/IMG] I would like all of the text labels to be … | |
Ive know started up programming again. My last try was in delphi where my best project was a security screensaver. Ive know decided to start up programming again and my choice this time was java whit netbeans and my project would be to rewrite the Security screensaveer and add any … | |
Hello! I was wondering if I could get some assistance with something that is probably easy for even an amateur javascript coder, but, I just can't seem to get after trying every iteration of code I can imagine. The deal is, is that I'm trying to put together a PHP … | |
Hi i am wondering if anyone has a solution for sorting by postcode area. I wanted to be able to pick off either the First letter or first two letters and group by this. I have figured out how to group by the first to characters of the postcode using … | |
Hi all, I got the following XML C# string: [CODE=XML] <Grocery> <Food> <Fresh Food> <fruit>BANANA</fruit> <meat>CHICKEN</meat> <desert>CAKE</desert> </Fresh Food> </Food> <Food> <Fresh Food> <fruit>APPLE</fruit> <meat>BEEF</meat> <desert>PIE</desert> </Fresh Food> </Food> </Grocery> [/CODE] I want to remove the Fresh Food tags to obtain the following: [CODE=XML] <Grocery> <Food> <fruit>BANANA</fruit> <meat>CHICKEN</meat> <desert>CAKE</desert> </Food> … | |
help please, i wish to know the code to redirect to an exsisting open web page from another web page(ie child page want to be closed and control want to be come to parent web form which is already previously opened) | |
Hello, I was just trying to write some simple codes to learn C. I wrote 3 functions, create a list,print a list and free a list. but i get segfault while printing the list. (by the way, list is not a list datastructure. it's just an array) In create_list, I … | |
The Java programming language provides a mechanism known as exceptions (in the glossary) to help programs report and handle errors. When an error occurs, the program throws an exception. What does this mean? It means that the normal flow of the program is interrupted and that the runtime environment attempts … | |
Hi, I want to show running time. i dont want to show present time. Time should be running on php page. Please Please help me. | |
I wrote code below it open me a new window and show current time but I want it will show it in same window and chnge each second here is my code (i think I must use [COLOR="Green"]setInterval function[/COLOR] to change time each second but if I put the call … | |
Is there anyone who can write a javascript/php code for refreshing the contents of only one DIV container on one page? ![]() | |
so basicly what i want to do is get a list of the open windows, like all of the tabs in the taskbar. thanks for your time! | |
Hello can some1 help on how to create a subform in vb.net, cause i dont have any idea how to do it. Please help | |
Hi everyone! I have an application, where a user inputs some text in a RichTextBox. I want to add a spell check, so first I have to store the words from the rtb. How to do it? Thanks | |
Hi, I am new to OOP and I have ended up in a situation that might force me to abondon some of the flexibility I had in mind in my project. Before I do so, I figure I'd ask here to see if there is an easier fix for me. … | |
hi, how to auto increment the value in database table when the button clicks.i have created a table named register .when the user completes his registration we will generate the receipt based on the registration. so for every receipt we will generate the receipt no on that. when we click … | |
Hi, I get this error when I try to access my project which I've just put up on a server - Compiler Error Message: CS0246: The type or namespace name 'DataSet1TableAdapters' could not be found (are you missing a using directive or an assembly reference?). The line it's complaining about … | |
i have 26links.when i click on "a", a grid is visible with footer row having textbox and addbutton along with words related to "A".But when i am entering words with other words also it is taking.when i click on addbutton, it should say u should enter word starting with "a" … | |
i trying to write a code which will read from user input of the percentage of some words to be appear. [B][U]example[/U][/B] user will input 50 5 when the program runs. 50 is the total number of runs and 5 means of the total runs it will have 5% of … ![]() | |
i have skinid for label.In my grid, i have several columns and i took labels in itemtemplate for that columns.i have several grids in project.how to apply for all columns for all grids where i use label thank you | |
Hi all, i need to select the paragrah from the current cursor position. any ideas? | |
Hi all, I was wondering how I would use a single text box for multiple things eg. In one text box I would type 'createfile file.txt' or something like 'stopprocess process' etc. How would I do that? Thanks | |
i am making a table with dynamic increament of rows on click of button..!! i have used an autocomplete textbox in a row...!!! which is based on textbox id..!! . . as i know that id should be unique.. so how can i change ID then..? [code=javascript] function add(oRow) { … | |
Hi,:) I'm now doing a project on c# sql project.I have a database problem,:'( when a user gives the input dynamically through the front end ,the user data can be view through data grid view .but it is not getting stored in the original database.I have tried a lot to … | |
Hello Every one, please tell me how to use dotproperty file in jsp? like i m trying to code a login page and i want if any user input wrong or null value so on the same page msg should come like please enter correct username or something like that..... … | |
I am writing an windows application in VB.Net to automate the internet explorer using Visual Studio 2005. There is a website with list of orders. I need to accept the orders automatically whenever they arrive. There are 2 pages in a websiteand they will refresh at regular intervals. In the … | |
Ok, I am writing a client for the "instant messaging" server I just wrote. The client is in all Python, and the GUI is made with Tkinter. Anyways, my first question is this: is there a way to make a scrollbar widget automatically scroll to the bottom? Second, in a … | |
Hi, so in order to make my problem more clear, I shall just make a simple example of what I am trying to do. I will start with a little code: [code=python]from Tkinter import * master = Tk() msgbox = Text(master) msgbox.pack() mytext = raw_input("> ") msgbox.insert(END, mytext) master.mainloop()[/code] Now, … |
The End.