64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bmichelle510

Hi, I am having a problem with this program. I don't know why the counter won't work correctly. After "doctor is out" is clicked the inCounter should be zero. So when the "doctor is in" is clicked "the doctor is in" should be displayed, but "the doctor IS IN, Already!" …

Member Avatar for bmichelle510
0
233
Member Avatar for eceisl

I need to write a recursive Python function that takes a numeric list as its argument, finds and returns the minimum of its elements. I am not allowed to use min() function of Python. I'll be very grateful if someone can help me.

Member Avatar for TrustyTony
0
109
Member Avatar for anamoblu56

Have patience as I am a beginner at this.I have completeed my 2d Array and have displayed its contents successfully. At the end of my program I want to total column 1 and 2 ([0],[1]) and eventually average it, but my code is not giving me the correct math(see input …

Member Avatar for anamoblu56
0
103
Member Avatar for ahoysailor

Ok, so basically I have a text file that contains the following: Resource3 "Actuator" Resource10 "Insert Exhaust Valve" Resource1 "6, 10, 18, 1" Resource21 "Emergency Stop" Resource2 "Cool Down in Progress" etc. etc. I want to read the file line by line and store it in a vector (this is …

Member Avatar for mrnutty
0
177
Member Avatar for vaironl

Even after I set a for loop in my constructor I receive a null pointer exception any ideas why? here is a bit of the code [CODE] private String[] ingredientName,units = new String [40]; private double[] ingredientAmount = new double [40]; public Recipe() // Recipe Constructor example { for(int setVals …

Member Avatar for hfx642
0
146
Member Avatar for cool_zephyr

hello everyone..i'm trying to connect to the localhost through a windows pocket pc 5.0 emulator but I'm getting some error like "Cannot connect with current connection settings" and sometimes like "The page cannot be displayed because the server couldn't be found" though the local server is running..As I'm new to …

Member Avatar for cool_zephyr
0
237
Member Avatar for uzidon

All right, the solution for this question might be awkwardly simple, but I'm totally lost and confused on this. I have created a Windows Form Application in Visual C++ 2010 Ultimate and included some resource files (BMP Images) in Form1.resX. For example, one of them is picture1.bmp. I have a …

Member Avatar for uzidon
0
1K
Member Avatar for merjune
Member Avatar for VernonDozier

I've made a small program that draws black rectangles on a JPanel at random places. I would like to give the user the option to save this JPanel as a .gif file, but I'm not sure where to start. The function I need to write is SaveJPanelAsGIF below on line …

Member Avatar for ferwerda
0
421
Member Avatar for consc197

How can i add a menu and make it to appear on all forms within that project? I remember that 2 years ago i was able to do this with VB6 however with VB 2010 i am unable to do this currently. Right now i added a Menu Strip on …

Member Avatar for consc197
0
167
Member Avatar for Panathinaikos22

Hello, i have Eclipse Indigo & and i download Android SDK, atk im working with Android 2.2 version When i run Virtual Device for 1st time everything is ok, but when i close it and i try to run it for 2nd 3rd time eclipse stucks, and i must restart …

Member Avatar for peter_budo
0
119
Member Avatar for consc197

Hello everyone, I have been coding a Reset Login Details form, the user needs to enter the new Username, the new Password and the Current Password. Here is my code below - something in the form is not working as i am getting an error when i fill in the …

Member Avatar for consc197
0
220
Member Avatar for cyberwarezcp

Hello, I wanna asking How to Make a Waiting while Proccessing? I mean I want when the software proccessing login into my Online database, the Button1,TextBox1,TextBox2, LinkLabel1,LinkLabel2 will hide and the Waiting Picture is show, Here is my code : [CODE] Button1.Visible = False Button2.Visible = False TextBox1.Visible = False …

Member Avatar for cyberwarezcp
0
145
Member Avatar for bhagyap

Hi.. I am populating treeview using XML and then trying to access the nodes of treeview into webbrowser to view the files using the following code.. Can anyone please guide me with this?? [CODE] private void treeView1_MouseDoubleClick(object sender, MouseEventArgs e) { webBrowser1.Navigate(treeView1.SelectedNode.Text); } [/CODE] The following is the function to …

Member Avatar for bhagyap
0
204
Member Avatar for blackrobe

Hey, I'm studying for a final exam and I came across an old question asking to give an algorithm that runs in [TEX]O(logn)[/TEX] and deletes an arbitrary element from an [TEX]n[/TEX] element [B]Min-Heap[/B] if given its index. I was thinking the right approach would be to use Hash table for …

Member Avatar for blackrobe
0
675
Member Avatar for Arkinder

I recently had an assignment that asked us to restrict the amount of characters a user can enter for his or her name. My professor said this is useful in the event that your program is being "attacked." The simplest solution was to use C strings: [CODE]#include <iostream> const int …

Member Avatar for Arkinder
0
6K
Member Avatar for Jameske

So I have written some code which reads a file line by line, breaking each line into characters and storing into a multidimensional array. However the program freezes and crashes at lines 31-34. When debugging the code runs successfully through the for loop once, then fails at 32 the second …

Member Avatar for Jameske
0
216
Member Avatar for wmurrow

I have to count the number of records being read in and print them to the screen. A record consists of: website name (temp.url), website revenue (temp.rev) and website hits (temp.hits). These are all read in and returned as temp. For the life of me though, I can't figure out …

Member Avatar for wmurrow
0
110
Member Avatar for jetlife76

I have a program that simulates the Powerball Lottery game, i have been working on it for weeks now. My issue is with the quick pick option. when the quick pick numbers match the winning numbers it doesn't show the matches. If the user enters the numbers manually it does. …

Member Avatar for jetlife76
0
332
Member Avatar for Phasma

[B]Read a CSV file into a DataGridView[/B] [CODE]'12/4/2011 'Code to read CSV file with headers using 'ACE.OLEDB.12.0 Connection 'The following is a Sampling of <EXTENSION.csv> 'The CSV file contains all the Extension on my Desktop Computer 'The full file has 923 Rows with Headers: 'EXTENSION,DESCRIPTION,EXECUTABLE_PATH '.mde,Microsoft Office Access MDE Database,C:\Program …

Member Avatar for Phasma
0
1K
Member Avatar for NoUserNameHere

Not getting any compile error, but I'm getting an output that looks like: -858993460 5 4 3 2 Instead of 5 4 3 2 1. What am I doing wrong? [CODE]#include <iostream> #include <stack> using namespace std; template <typename T> void reverse(stack<T> &sk) { stack<int> tempStack; while(!sk.empty()) { tempStack.push(sk.top()); sk.pop(); …

Member Avatar for tharumax
0
101
Member Avatar for dan420

Hello, I have a table with 10 rows. each row has 3 columns. column1 is product name column2 is a drop down box with values from 1to10. column3 is a check box. When the checkbox is checked I would like to get the entire row value (product name, quantity) Can …

Member Avatar for diafol
0
169
Member Avatar for Kuroshi

I get this compiler error: `Monster' was not declared in this scope, in this code: [CODE]#ifndef ROOM_H #define ROOM_H #include <stdio.h> #include <stdlib.h> #include <time.h> #include <vector> #include <iostream> #include "Monster.h" using namespace std; const int ROWS = 20; const int COLS = 20; class Room { private: vector<int> indexes; …

Member Avatar for VernonDozier
0
127
Member Avatar for niggz

Hello masters! I have a project and need a bit of your help. I would like to access/get values from certain fields from a database and assing that value to a variable. Database is included into my project along with DataSet. Is there any simple way to access certain field? …

Member Avatar for thines01
0
213
Member Avatar for CodeAdmiral

For a school project, I am trying to make a program that gets user input and finds the factorial of the input. I wrote this bit of code and got tons of errors. Help, anybody? [CODE]import javax.swing.*; import java.awt.*; import java.io.*; import java.util.*; class TestFactorial { public int x = …

Member Avatar for thines01
0
255
Member Avatar for jerrinfive

i have two tables in a single database sales... one is product other is order... i want someones help to know how can i do one operation.... i.e when i click on order i want to subtract that one order from the product table.... can u help me with the …

Member Avatar for qazplm114477
0
121
Member Avatar for djbrown

As a newbie at 63, I have learned how to build an SQL database from scratch, interrogate it and present results, but I just cannot wrap my bhead around the following issue. I am in the process of constructing a site that will return a list of suppliers to a …

Member Avatar for diafol
0
239
Member Avatar for towerrounder

Hi all. I come from an MS SQL background and a newbie in MY SQL. Im trying to run a simple query to populate a table: [CODE]Declare @I As Int Select @I = 1 While (@I < 100) Begin Insert into tbWhatEva Select @I Select @I = @I + 1 …

Member Avatar for towerrounder
0
212
Member Avatar for gourav1

let an integer say, x=0xffffff0; when i shift left 4 positions in it.it got negative. x=x<<1; doing this 4th time,number got negative. please tell why it is so.

Member Avatar for JamesCherrill
0
311
Member Avatar for Ahmed2

Hello every body I'm trying to iterate through a list for a certian number of times using a for loop. below is the current code I've written, but this will iterate through the list until it ends. [CODE]list<FileInfo*>::iterator p = currentlist.begin(); while(p != currentlist.end()) { cout << (*p)->remainingtime << " …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for sharathg.satya

hi all Can we (compile and execute) or just execute a c file from another c file? am asked this question and i am unable to find any solution to this problem. A 'c' file is executed and it must contain code that will execute another 'c' program olease help …

Member Avatar for Narue
0
266
Member Avatar for morrisproject

Hi I am using the following code to logout: my logout button calls logout.php [U][B]logout.php[/B][/U] <? session_start(); session_destroy(); header("location:site.php"); ?> This doesnt seem to reidrect to my site.php page, it just loads a blank logout.php page, any ideas?

Member Avatar for hakeemtunde
0
130
Member Avatar for gorbulas

Hello Having trouble reading in some 8-bit data (not text) from serial port using pyserial module. Am storing the data in a string buffer as it comes in, that's working fine. Problem is that I'm printing the buffer out to the terminal screen, after a wee bit of data (30~200 …

Member Avatar for Gribouillis
0
346
Member Avatar for Lemony Lime

So, I have a two part question for you... I'm going to be writing several lines of code to a .txt file, but I won't know what each line is, or how many there will be. There could easily be hundreds of lines. I need to add a prefix to …

Member Avatar for gorbulas
0
226
Member Avatar for divsok

Suppose the xMethod() is invoked in the following constructor in a class, xMethod() is _________ in the class. public MyClass() { xMethod(); } A. a static method B. an instance method C. a static method or an instance method what is the answer a or b or c

Member Avatar for stultuske
0
1K
Member Avatar for arindam31

Hi Guys , this questioned has been asked before , but the answers haven helped me . I want to seperate lines when i am appending the text control. But "\n" is simply not working . I am using Python 2.7 , on Windows 7. Please help. I want to …

Member Avatar for arindam31
0
34K
Member Avatar for cvanithakpm

please help me by answereing my three question 1)page redirection is possible through which methods? 2) another question which is the default port number of jws? 3)we can write servlet programs by using http packages only ah?

Member Avatar for StephNicolaou
0
135
Member Avatar for jcarbillon

Guys, need help again, I cant get my mail script working... here is my code [CODE]<?php require_once "Mail.php"; $from = "Sandra Sender <sender@example.com>"; $to = "Ramona Recipient <recipient@example.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "ssl://mail.example.com"; $port = "465"; $username = "smtp_username"; $password = "smtp_password"; $headers = …

Member Avatar for jcarbillon
0
412
Member Avatar for Danizand

I am trying to extract data from multiple files into one output file. At the moment I am able to extract the columns I want into a vector in a vector: [code] vector< vector<double> > out; //2D vector ofstream myfile ("example.txt"); //outputfile //the data contained in data[n][6] is put into …

Member Avatar for Danizand
0
2K
Member Avatar for Thermalnuke

Simple Q. I have... Why is there a need have multiple forms with in a database? Does it just make it more simpler and more organized?

Member Avatar for adam_k
0
95
Member Avatar for subith86

Hi all, Sorry if this is a stupid question. Assume I have a code like this. [CODE] char *temp = "poiuytrewq"; std::cout<<*temp<<std::endl; //should print p function(temp); std::cout<<*temp<<std::endl; //should print i [/CODE] Basically my function() in the above snippet increments the pointer twice so that temp point to 'i' now. I …

Member Avatar for subith86
0
179
Member Avatar for bhagawatshinde

Hi, How to avoid webbrowser data copy, paste to word or notepad in vb.net. Disable right click on webbrowser by using [ICODE]IswebbrowserContextmenuEnabled =false[/ICODE] Thanks in Advance...

Member Avatar for bhagawatshinde
0
120
Member Avatar for cip6791

Hi all, I'm doing some tests with ajax and php. The below code works when I load the page, but I would like to call it when I click a button. How can that be done? index.php: [CODE]<script type='text/javascript'> $.ajax({ type: "POST", url: "test.php", data: "name=name&location=location", success: function(msg){ alert( "Data …

Member Avatar for cip6791
1
16K
Member Avatar for Xaviorin

I'll keep it simple and hopefully whatever simple error I keep overlooking can be used as a learning experience for others. This program uses a user created file called patient.dat that contains the following: Smith Eleanore 110/73 Jones Tom 200/78 The error I am having is that Mr Tom Jones …

Member Avatar for Xaviorin
0
239
Member Avatar for arjunpk

hi... i'm getting a null reference exception unhandled error..... i have inserted the code snippet and a screenshot... please tell me where i'm going wrong..... [CODE] DataSources[] dataSources; int i = 0; _list = doc.GetElementsByTagName("DataSource"); foreach (XmlNode tempNode in _list) { //MessageBox.Show(tempNode.Attributes["Name"].Value.ToString()); //MessageBox.Show(tempNode.InnerXml.ToString()); dataSources[i]=new DataSources(); dataSources[i].getContent(tempNode); i++; }[/CODE] the class …

Member Avatar for theepan1
0
207
Member Avatar for jcAmats

hi! can someone help debug my codes? getline() works properly in my main() but if i'm putting it to another function, it ignores the first getline() w/o entering any words and goes to the 2nd getline. my program works like this: i have a menu() that lets the user to …

Member Avatar for jcAmats
0
385
Member Avatar for |-|x

I was just about to post asking how to do this when I stumbled across the solution. All my research on the web suggests that the only way is to use stored procedures with an output parameter. Unfortunately, my queries are necessarily dynamically generated, and output parameters do not work …

1
108
Member Avatar for manhthaodn

Here is the link to download my database with sample data (Management Inventory): [url]http://www.mediafire.com/?9o5ycrqot2risa8[/url] I am making a query to access redundant or missing quatity of material. [B]Report[/B] MatId CusMatName TDK NTK XTK ... . . . . . . . . with: TDK: [CODE]select detail.MatId as ID_Nhap, SUM(Quantity) as …

Member Avatar for manhthaodn
0
167
Member Avatar for rse

Hello, I have a php variable $birthday, I am showing it's value like this: [icode] <div id= "dob" class="pick_number">Day of Birth: <?php echo $birthday ?></div> <div id="test"></div> // value should be printed back in here. [/icode] I need to pass the value of $birthday via ajax, I had the following …

Member Avatar for rse
0
174
Member Avatar for Morten Brendefu

I am trying to write a few very dynamic procedures and functions and wonder about transferring parameters to a procedure as an Array. This is actually easy enough done.... just that I would like to pass something like [CODE] VAR a,b,c : INTEGER; Name, Text1,Text2 : STRING; todaysDate : TDate; …

Member Avatar for Morten Brendefu
0
1K

The End.