64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for toll_booth

[CODE] def create_widgets(self): B_PAD = 4 PAD_X = 3; PAD_Y = 2 NUM_PAD = 7 '''Create Boolean variables for all the buttons.''' def create_button_vars(): self.backspace = BooleanVar() self.CE = BooleanVar() self.C = BooleanVar() self.MC = BooleanVar() self.MR = BooleanVar() self.Mminus = BooleanVar() self.num = [] for i in range (10): …

Member Avatar for vegaseat
0
130
Member Avatar for endframe

Hi all, I need some help finishing this program, I know it's easy but I'm new in C++ and programming. [CODE]#include "stdafx.h" #include <iostream> using namespace std; int main() { const int arraysize = 10; int a[arraysize] = {11,22,33,44,55,66,77,88,99,100};[/CODE] This is the start of my program ; a giving array …

Member Avatar for endframe
0
206
Member Avatar for Friktion

hello everybody, im coding a game with opengl,pyggel,python,pygame etc and it runs smoothly without any problems =) [url]www.youtube.com/watch?v=JlDuje39S_8[/url] - My python 3d game projekt <--- sorry if outside links isnt allowed =( But the thing is that when im compiling it with py2exe using this as setup.py [CODE=python] from distutils.core …

Member Avatar for vextorspace
0
429
Member Avatar for giahmed

Hy all, I am sure its very simple thing and I am not just getting it, I am trying to send textbox value from one page to another and its keep giving me an error, basicaly its not finding the class I created in previous page. My web pages are …

Member Avatar for giahmed
0
106
Member Avatar for shyami

Hi, I need to define some common variables in one file and use that file in my python script , Like in php we define some variable in (eg :definevble.config) file, later we will use that file using include method in php script. Plz let me know how to do …

Member Avatar for shyami
0
123
Member Avatar for rcook

I have a simple web application with a login page. I am now adding authentication to code that already checks username and password in a database; I use Forms Authentication to write a cookie with an authentication ticket (if that's the right term) to enable a user to access pages …

Member Avatar for rcook
0
286
Member Avatar for hosamath

Hi friends... I have a series of points which are actually the points that form a circle... Can anyone help me how to get the circle image when i load these points as input... A simple code example will be helpful... Thanks in advance....

Member Avatar for pritaeas
0
252
Member Avatar for pato wlmc

Well first of all, hi, and thanks to all of you guys, cause this may be the first time I start a thread, but not the first time that one of you solve my problems. Anyway. I'm following an internet tutorial about API development, ( [url]http://www.winprog.org/tutorial/menus.html[/url] ) But rigth now …

Member Avatar for mitrmkar
0
714
Member Avatar for jiten_raulo

Can any one tell me how to put a part of program into a header file or how to work with multiple files? According to my book, I need to put the template and class part into a separate file and include the header as "counter.h". I have done same …

Member Avatar for jiten_raulo
0
140
Member Avatar for jellybeannn

I'm working on the book "Beginning Aspnet E-Commerce with C#", but I have encountered a problem. The tutorial includes a Pager Control, this works fine for all of the products it is just when the a department is selected the pager does not work, only after a Category is selected …

0
64
Member Avatar for avinash_545

hi everybody!!!!!!! can anyone tell me how do we test the data type of variables in java, like if a variable is a string, the system prints out that this variable is string or not. more especially how can we test this on primitive data type? waiting for your replies!!!

Member Avatar for javaAddict
0
269
Member Avatar for ronaldpaul

In my project i wanna use the last_insert_id() to be stored in a session variable and after that i wanna use that session variable i.e., the value of last_insert_id() in another page. How can i carry the last_insert_id() to some other page using session or storing it in a session …

Member Avatar for CFROG
0
161
Member Avatar for anuj_sharma

Hey Guys, Should i use hidden textboxes or session variables to pass values between various jsp pages??

Member Avatar for jwenting
0
88
Member Avatar for PinoyDev

Hi guys good day. Ive create a pc time logger to detect the time-in, and to set timeout of the user. But i am having problem regarding on getting the time left value. Time out value will be the timein value plus 2 hours.Here is my code in Timer1. [code=vb] …

Member Avatar for PinoyDev
0
70
Member Avatar for gizgiz

[b]Purpose of the program:[/b] This program is supposed to use a void function called removeLetters to remove both uppercase and lowercase letters from a given string. The function isn't allowed to use square brakets (ie no arrays) and the only (1) local variable allowed must be a pointer. [b]Problem:[/b] The …

Member Avatar for gizgiz
0
139
Member Avatar for gandil

[COLOR=#000000]Can you help me to normalize Online Hotel Reservation System. In the database I will store information about the hotels (name, city, country, number of stars, room prices, total number of double rooms, total number of single rooms, number of available rooms, etc); customers (name, email, telephone, address, username, password, …

Member Avatar for jram_0024
1
11K
Member Avatar for gnarlyskim

I have to be able to read text from a file then manipulate it to find the average value of an integral over a given bounds [a,b] from an input file, then export it to another file. I do not know how to store the information to process it. Say …

Member Avatar for gnarlyskim
1
185
Member Avatar for MWE_QUE

This is homework, but I'm stumped on this problem. It prints store->storeId properly in "case 0", but storeId prints with the name added in the "printMall" function, i.e. "L01vacant" it then prints "vacant" for store->store name as it should and the rest of the printMall function prints properly. I've changed …

Member Avatar for MWE_QUE
0
129
Member Avatar for MickeyP123

In phpmyadmin and wanting to copy the mentioned rows below to within the same table. I am not copying the id so it is automatically incrementing. Why isnt it working??? Thanks in advance. INSERT INTO `table1` (title, alias, published, introtext, video, gallery, extra_fields, extra_fields_search, created, created_by, created_by_alias, checked_out, checked_out_time, modified, …

Member Avatar for MickeyP123
0
105
Member Avatar for whoamineo89

Hello oh helping minds I have a dilema...I've got to create a C language address book and not C++ or turbo C...I've already done a majority so far but I need help with a certain problem if there are any other problems please let me know. I keep getting an …

Member Avatar for Ancient Dragon
1
5K
Member Avatar for jeeter19

Hi, I'm trying to just grab a small column of data from a Database and return it. This is a function called getAccessLevel(), it returns the Access level which is an integer. There is a table called users in the DB and the column access holds either 0, 1, or …

Member Avatar for jeeter19
0
148
Member Avatar for mcco1

I have this code(in a separate thread if it helps): [CODE=C#] // I know i don't store data from here. There is a reason for it. HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(mainUrl); req.CookieContainer = this.cookieJar; req.Method = "GET"; req.GetResponse(); // Another request HttpWebRequest gReq = (HttpWebRequest)HttpWebRequest.Create(secondaryUrl); gReq.CookieContainer = this.cookieJar; gReq.Method = "GET"; …

Member Avatar for mcco1
0
130
Member Avatar for noyfb

[code] #include <iostream> #include <vector> using namespace std; int main () { int N =0; int Range=0; int NumberOfCases=0; cout << "Enter N" <<endl; cin >> N; cout << "Enter Range" <<endl; cin >> Range; cout << "Number of cases" <<endl; cin >> NumberOfCases; vector<double> range_time_Vector(Range); int K = N; …

Member Avatar for noyfb
0
122
Member Avatar for solarb

it's a update form and i want when pressing edit, the input text to be changed with the text in mysql database but it doesn't work. is there some kind of error which i don't see? or is there alternative way to do this form? [B]update.php[/B] [code]<?php include("contentdb.php"); if(isset($_POST['submit'])){ $id= …

Member Avatar for Koekoeksklok
0
160
Member Avatar for ronaldpaul

Friends, pleas tell me a simple method to upload and then view the upload image using php and mysql. The image can be stored in a separate folder or in database itself. But anyhow tell me the simplest way to do this. It'll be very good if u post the …

Member Avatar for CFROG
0
97
Member Avatar for abarlowa

What is wrong with my code? Prompt user for hourly rate. If less than $5.65 or greater than $49.99 display error message. [CODE]{ //declare variables const double HIGH = 49.99; const double LOW = 5.65; double HourlyPayRate //input Console.Write("Enter your hourly pay rate:"); HourlyPayRate = Convert.ToDouble (Console.ReadLinne()); //output if (HourlyPayRate …

Member Avatar for herbie643
0
84
Member Avatar for kiri88

Hi? i'm new at programming and im trying to decipher a code. i'm trying to count how many times a char occurs in txt file

Member Avatar for ihatehippies
0
92
Member Avatar for Majestics

How in java we can add double menus, like file bar and search bar both are different in internet explorer? Thanks in advance.

Member Avatar for Majestics
0
100
Member Avatar for sexyzebra19

I have a matrix A stored in column major order as 1 3 2 4 and I'm using this function to output it in row major order, i.e. 1 2 3 4 which is does correctly. However I'm confused about how it does this, as I thought the loops would …

Member Avatar for Dave Sinkula
0
146
Member Avatar for nuB

i am supposed to have 2 void functions and 4 value returning functions (including main) to eventually calculate netsalary from calling the specific functions to calculate tax and insurance and receive and display data.... basically i'm wondering what is my error (compiled in dev and couldn't figure out what was …

Member Avatar for nuB
0
191
Member Avatar for jamesonh20

Hi there I have a rookie question. I am trying to clean up a long list of if statements for a class in java, I know that in C# you can code #region-->#Endregion. Is there a simple way to do the same thing in Java? THANKS! Jameson'

Member Avatar for jamesonh20
0
105
Member Avatar for ambarisha.kn

I want to read all files in a particular folder using C programming. HOw to do this. Thanks. Ex: I have some 5 files in folder named c:\temp. I want to read all files one after another and want to write output file for each input file. The output files …

Member Avatar for Ancient Dragon
-1
1K
Member Avatar for dylank

Hey all you guys at DaniWeb! I have tried my hand at what I guess is Ajax, with a PHP script to execute it. The page itself renders and the form works, but the login script is not working. I'm not sure what is wrong, although I'm sure I messed …

Member Avatar for NettSite
0
160
Member Avatar for emhmk1

Hi Guys, I'm having trouble with the form reset button in my php script. The form submits to it's self in the same page. The php script has error handling i.e [CODE]if(empty($name)){ $error[] = " Enter Your Name";}[/CODE] The Problem i have is when the form is submitted it checks …

Member Avatar for emhmk1
0
85
Member Avatar for rosebabu

Can anybody say, how to minimize the window form on close button is clicked in C#? thanks in advance.

Member Avatar for Geekitygeek
0
2K
Member Avatar for qariella

After the list, sum, average, max and min have been printed, ask the user to enter a value. [B]Then print the id of each salesperson who exceeded that amount, and the amount of their sales. Also print the total number of salespeople whose sales exceeded the value entered.[/B] The bold …

Member Avatar for qariella
0
987
Member Avatar for VJ APU

Forgive me if this is already covered somewhere which I am sure it is but............ All I am trying to do is split a string that contains the \ char ie filename. Seen a few ideas and after much frustration I have settled with below code. Replace works fine. Split …

Member Avatar for VJ APU
0
180
Member Avatar for dan_ord

Hi all, I posted up a thread a few weeks ago, regarding automatically updating a drop down list from a database using ajax. Someone posted a reply suggesting i use the w3schools website for some help and i managed to put together something that worked for me. However, i'm now …

Member Avatar for dan_ord
0
2K
Member Avatar for juniorSkillz

Hi guys Having a little problem here. Please help, Im trying to have a MessageBox appear when a user reaches the textbox.maxLength property tried if (textBox2.MaxLength < 10) { MessageBox.Show("Max characters reached"); }

Member Avatar for Geekitygeek
0
1K
Member Avatar for Tigerdude

I'm supposed to be inserting words from a text file into a BST and AVL tree. I've got the words to insert correctly, and it recognizes whenever the words are repeated. It just leaves the count at 2 instead of incrementing afterwards. Can't seem to figure out why it's not …

Member Avatar for javaAddict
0
607
Member Avatar for crazy lady

Newbee needs help with program. If you would be so kind to tell me where I am going wrong. <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHMTL 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhmt1-strict.dtd"> <!-- Fig. 8.12: Product order.html --> <!-- Product script. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Product …

Member Avatar for javaAddict
0
91
Member Avatar for ajay_tabbu

my program is compiled.but on run that i have message "Exception in thread "main" java.lang.NullPointer Exception" 1. class Rev 2. { 3. char a[]; 4. char i=3; 5. void str() 6. { 7. for(i='A';i<'D';i++) 8. { 9. a[i]='i'; 10. } 11. } 12. void show() 13. { 14. for(int i='A';i<'D';i++) …

Member Avatar for BestJewSinceJC
0
163
Member Avatar for JessJames

Hey, I dont know where to start with this problem so I have a super class(Transaction) that has a constructor and I have 2 sub classes (rental and return )they both have the same constructor as the super but they have a toString method that is almost the same but …

Member Avatar for kvass
0
83
Member Avatar for ayesha789

Dears I am using Query, then I use mysql_num_rows for finding number of records, and then echo Num_rows. Now I want to make a hyperlink on count so it can show all details of query in new <div>. How I can make echo"$num_rows \n"; dynamic link. [CODE]$result = mysql_query("SELECT * …

Member Avatar for praveen_dusari
0
75
Member Avatar for mrnobody

Hi, I've done a vb.net program. The program basically uses few reference for example system.io etc.. In order for my program to run on another computer, the computer need to have .net framework 2.0 installed.. Instead of installing the whole framework, can I just pack the references I used in …

Member Avatar for mrnobody
0
1K
Member Avatar for HealBrains

Hey all, I'm trying to do some ray intersection detection but I'm having some problems. My app starts by loading a cube object into a .x file. I have a player class and a target class that both use the same model, but each has it's own world matrix. [CODE]D3DXMATRIX …

Member Avatar for HealBrains
0
210
Member Avatar for alma27534

Hi, I have been working on this program for quite some time but I can't figure out what's wrong with it. The program compiles and this is the the output I get: ?Invalid number of arguments Press any key to continue . . . Can somebody please take a look …

Member Avatar for alma27534
0
303
Member Avatar for faaz

The problem is that the program would not terminate if either the human or the computer reach 100 or above points. it is not displaying if the human wins that you won or if the computer wins then sorry you lost, try again. [CODE] #include <iostream> #include <ctime> using namespace …

Member Avatar for faaz
0
175
Member Avatar for freshfitz

How do I set a variable in mysql database to equal txt so for example I have a table user-status which has values of 0 , 1, 2 or 3. I want a drop down to say if user_status = 3 display admin if user_status = 0 display no status …

Member Avatar for damnpoet
0
119
Member Avatar for RaigaX9

Hi, I need help with this program here. I want to print an isosceles triangle. But, I keep ending up with this here where they are being spaced: --------* -------* * ------* * * -----* * * * ----* * * * * ---* * * * * * --* …

Member Avatar for RaigaX9
0
3K

The End.