64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for txwooley

If I have a list of 5 random integers, is there a simple way to iterate through the list and see how many of each number there are without using 25 if/elif statements. For example my list might contain [3, 7, 10, 10, 14]. How would I determine that there …

Member Avatar for txwooley
0
114
Member Avatar for crackerjacker

i was wondering, is their any way to do something, say msgbox, when an exe is ended via the end process in the task manager? thanks in advance!

Member Avatar for crackerjacker
0
125
Member Avatar for soppyhankins

Hello again all!!! I just have two quick questions... 1.) Is it possible for one to run a program through the "system(command)" and have the output come out on top of an SDL program? Like if I had a background of some sort and typed "system(echo "Hello!")" could I have …

Member Avatar for soppyhankins
0
209
Member Avatar for txwooley

I am trying to order a list containing integers. I want them sorted in numerical order from lowest to highest. I tried using sort but got the list baxk exactly as it was. [code=python] x = [5, 3, 7] x.sort print x [/CODE] What command would I usr to make …

Member Avatar for txwooley
0
84
Member Avatar for serkan sendur

i want to see all the function calls from the very first to the very last one. is that possible? i tried call stack window but it shows the ones in the scope of the break point.

Member Avatar for serkan sendur
0
71
Member Avatar for AMetnik

Ok, i have read alot about this bugs now, and nothing seems to help. Hope someone have a step by step solution for me, or atleast can give me some more insight hehe ;) Here is a few intel on my work. Im working in netbeans on my labtop, uploading …

Member Avatar for peter_budo
0
602
Member Avatar for grisha83

I have two methods. One method was to set location of 2 points x and y. Another method was to copy that location. I used arrays. Well the program compiles but it doesn't display my values properly. Error message says: [D@af9e22. Does anyone know what this is? Thank you // …

Member Avatar for grisha83
0
77
Member Avatar for ddanbe

I have a form with a readonly textbox, some layoutpanels with some buttons in it and together they make up a calculator. (Yes I know this is YAC (yet another...)) but I have fun while still learning! When I click the buttons and manipulate the Text property of the textbox, …

Member Avatar for ddanbe
0
832
Member Avatar for tinajl

Hi, I am brand new to the DaniWeb Forums. I'm also very new to VB, and I taking my first course on it. I nearly have a large project done, but I have one main issue that I have not been able to resolve on my own as of yet. …

Member Avatar for tinajl
0
90
Member Avatar for Seamus McCarthy

[CODE] public void deleteDvd(String title) { String DvdCompare; Dvd dvdObj; Collections.sort(dvds); for(int i = 0;i< dvds.size();i++) { DvdCompare = dvds.get(i).getdvdTitle(); dvdObj = dvds.get(i); if(title.equals(DvdCompare)) { System.out.println("Dvd is in system"); int index =Collections.binarySearch(dvds,DvdCompare); dvds.remove(index); //delete method in arrayList } else if (!title.equals(DvdCompare)) { System.out.println("Not found Dvd Object"); } } }[/CODE] I'm …

Member Avatar for Seamus McCarthy
0
187
Member Avatar for toadzky

I have a combo box that is populated from entries in a SQLite table. The entries are city names. Here is the code for the data binding: [code] cbb_City.DataSource = data; cbb_City.DisplayMember = "Accounts.City"; cbb_City.ValueMember = "Accounts.City"; [/code] It gets the values just fine but it has an entry for …

Member Avatar for toadzky
0
3K
Member Avatar for Xamas

I have class: [code=c++]template <class T> class Graph; And I have a function: template <class T> void Graph<T>::erase_greater(T needle) { if(TEMPLATE TYPE IS "STRING" OR "CHAR") { do nothing; } else { if(TEMPLATE TYPE IS ONE OF THE INT TYPES) { if(strlen(var1) > strlen(var2)) { USE Var2; } else { …

Member Avatar for twomers
0
178
Member Avatar for sunilsinha

Hi, I have to zoom a div. an image is placed as div background using css. while doing zoom in, what i did is increased width and height of div by 25px, but image which placed as div background is not streching. Also, when i zoom it, the text placed …

Member Avatar for sunilsinha
0
90
Member Avatar for Peyton

Hi there, Say I have the following while loop, that loops on the condition that a lne (a string) is received from a file: [CODE]while ( getline( inData2, line ) ) // Increment rows till none left { if ( !line ) { cout << "No data entered. Please enter …

Member Avatar for William Hemsworth
0
148
Member Avatar for jyotiu

have recently migrated my ubb forum website([url]http://2aforum.com/[/url]) to a new web hosting server, i have placed the files on new server and i think directory structure is right and also set up the database through phpmyadmin, and changed config file accordingly but still i am getting this error [COLOR="Red"]UBB Message …

Member Avatar for jyotiu
0
151
Member Avatar for jyotiu

Fatal error: require_once() [function.require]: Failed opening required '/forum/forums/libs/functions_forums.inc.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/j/o/h/johncardillo/html/forum/forums/scripts/cfrm.inc.php on line 50 how can i solve this error?

Member Avatar for jyotiu
0
138
Member Avatar for DaveD3

I am new to C# and .NET and am having a problem. I have a windows form application. I created a Ole data adapter to look at an Access Database with 3 tables. I then created a dataset which gets loaded by the adapter when the process starts. I then …

Member Avatar for Diamonddrake
0
82
Member Avatar for grisha83

Hello, I was trying to get hold of arrays and read lots of stuff. So when i started coding, i got an error message saying incompatible types. I checked with general compliance and it should be ok. Maybe netbeans causing it? Anyway, any kind of help will be appreciated [ICODE] …

Member Avatar for kvprajapati
0
94
Member Avatar for Zanbi

Pardon my newbness, I only just found this site today and I have been having this problem for a bit. Background: I am using Python 2.5.2 that I recieved from a CD from my college. My OS is Windows XP, and my internet provider is Internet Explorer. Problem: When I …

Member Avatar for lllllIllIlllI
0
1K
Member Avatar for Sky Diploma

I am getting a segmentation fault when i run the follwing program. This program takes in a const char* and returns the integer format. I also need advice on converting a C++ Octal or Hexadecimal Notationed string to an integer. Here is the code [CODE=C++] #include <iostream> #include <cstring> int …

Member Avatar for tux4life
0
233
Member Avatar for David.lewing

I have programed before (QuickBASIC and Macromedia Flash MX) but I am new on Python I want to create a program in which you give it a keyword and it generates a cypher. Like this: (Built in alphabet) ABCDEFGHIJKLMNOPQRSTUVWXYZ (Asks for keyword) (Lets say the keyword is BLOCK) BLOCK (Adds …

Member Avatar for woooee
0
373
Member Avatar for RayvenHawk

I'm writing a simple number generator program and I'm trying to find an easier way to get a random number, store it then display it. The catch is I don't want duplicated numbers (each need to be different). here is what I have so far, it does work but I'll …

Member Avatar for RayvenHawk
0
189
Member Avatar for Peyton

Hi, I am having a problem with the following function: [CODE]void calcEnergy( vector< vector<double> > &Energy, vector< vector<double> > &Data, const double Constant ) { double Time = 6; // store the change in time double energy ; // Temp variable to store energy double v1,v2; for ( size_t i …

Member Avatar for ArkM
0
111
Member Avatar for serkan sendur

guys i want to debug an application without using a break point. the problem is i dont know which function of the class is called first, so i dont know where to put the break point. i want the debugger to stop when any of its method is called. is …

Member Avatar for serkan sendur
0
87
Member Avatar for grisha83

Hello, I feel embarrassed to ask these types of questions but i can't get answers to them in my text book. So here you go: I have an assignment of copying the constructor writing clone() method and add() method. While i understand the idea of creating of clone and add …

Member Avatar for grisha83
0
111
Member Avatar for Vinzcent

Hey, I have a problem when I'm trying to delete an image file. I always get an error that says: IOExeption was unhandled. Acces denied because the file is beining used by another process. I do'nt know what process that could be and how to solve it. [CODE]private void comboBox3_SelectedIndexChanged(object …

Member Avatar for serkan sendur
0
76
Member Avatar for pdunc88

Hi there, I have an array of strings defined in the following way; [code] string wordbank[]={"yes", "no", "hello", "goodbye"}; [/code] My problem is I would like to create a seperate array of characters for each element of that array. Something of the form; char *word_0[]={'y','e','s'} The things I have tried …

Member Avatar for pdunc88
0
90
Member Avatar for aveao

I am needing help with what is probably a very easy task to complete, but I have been working on it for a while and need another pair of eyes to help me figure out the missing piece. I should know how to do this but for some reason the …

Member Avatar for aveao
0
78
Member Avatar for khusani

Hi all, I am new to image processing :rolleyes: . what i want to do is read the header section of an image of any type (jpg,bmp,gif ...etc) and show it on the screen. then save the header in a text file and the new image (without the header in …

Member Avatar for thazel
0
119
Member Avatar for funkyfresh

Before I explain what I mean in the title, I want to say that I 1) Have very little experience with python, so take anything I say with that in mind. I've only read about it, haven't really used it (although I have installed it), 2) I [B]want[/B] to learn …

Member Avatar for jlm699
0
139
Member Avatar for Reprise

I tried searching the forum, but I couldn't find any threads that really dealt with what I'm trying to do here. I have a struct set up with three fields (shown below). [code] struct StudentInfo { char id[10]; double mark; char grade; }; [/code] [I]Note that the id MUST be …

Member Avatar for Reprise
0
1K
Member Avatar for shadiadiph

I am having problems with this form it has two submit options a button and an onchange instance the onchange just will not work can any one tell me why? my doc type is [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" xml:lang="en" lang="en"> [/code] the form …

Member Avatar for shadiadiph
0
95
Member Avatar for dev18

[code=java] public static void setValues(PreparedStatement statement, Object... values) throws SQLException { for(int i = 0; i < values.length; i++) { if(values[i] instanceof Integer) { int value = (Integer) values[i]; statement.setInt(i, value); } else if(values[i] instanceof String) { String value = (String) values[i]; statement.setString(i, value); } } } public static ResultSet …

Member Avatar for dev18
0
2K
Member Avatar for sandhya_r

hi, i am useing the netbeans for the first time n i am trying to connect to a MS Access DB through the wizard but i am not able to. I entered for a DSNless connection: Name:JDBC-ODBC Bridge. Driver: sun.jdbc.odbc.JdbcOdbcDriver Database URL: jdbc:odbc: Driver={Microsoft Access Driver (.*mdb)};dbq=C:\Users\Vamsi\Documents\PIN.mdb; the issue its …

Member Avatar for kvprajapati
0
137
Member Avatar for grisha83

Hello, I am working on the problem of creating an abstract class Shape also with Package shape and then creating a subclasses Circle, Square and etc. I belive, i don't have a complete understanding of an abstract. Anyways i keep getting an error: " Shape.Circle is not abstract and does …

Member Avatar for grisha83
0
163
Member Avatar for ElWape

If I have a class that has a vector as a private member, a get function to access the vector, and I iterator over the vector, the iteration only works correctly if I make a new copy of the vector: [code] class MyClass { public: typedef vector<int> Vector; MyClass(); ~MyClass() …

Member Avatar for Ancient Dragon
0
143
Member Avatar for OffTheLeft

Hi all, I am in need of some assistance with addresses & pointers as my dysfunctional professor is of no help. (I'll be as succinct as possible.) First, the program must call three subroutines from main to fill "n" array elements with a given value; for instance, one must set …

Member Avatar for OffTheLeft
0
105
Member Avatar for csharplearner

Hello all, I work on MySQL and i have knowledge about it. I have no idea of what Apache is? I googled and came to know just like MySQL it is also a Web Server and nothing more about it. When people ask me if i have experience with Apache?! …

Member Avatar for csharplearner
0
274
Member Avatar for andyT

Hello, I'm trying to get the STL equal_range function to work on a data structure I've designed, but I may be trying to use the equal_range function in a non-standard way. Is there a way to get this to work? Basically, I have a vector of vectors of structures (elements) …

Member Avatar for andyT
0
190
Member Avatar for JamesCherrill

OK, I'm obviously going bonkers here, but has something happened to the java code tags? Why doesn't this work in preview mode? [CODE=java] i++; [/CODE]

Member Avatar for JamesCherrill
0
157
Member Avatar for Sky Diploma

Here i have to define a function which will reverse a c-styled string. I have made 2 functions one using dynamic memory and the other not using dynamic memory. I would like to know of any improvements that can be made in the code. I would also like you to …

Member Avatar for tux4life
0
138
Member Avatar for curtissumpter

Hi, There is too much space between the Organized in / Pioneered by text and the Text Input Areas. How do you shrink this amount of space? [code=html] <html> <head> <title>Prefecture History and Facts</title></head> <body><h1>Prefecture History / Facts</h1><hr> <table> <tr> <td>4th Prefecture of New York State, U.S.A. </td> <tr> <td …

Member Avatar for daggerpound
0
105
Member Avatar for starsinthesky

hi, i have a hard time testing my PHP mail() function in the localhost. can you teach me? it's my first time to use this mail() function. this is my PHP code in the file: contact.php [code] <?php $email_to = $_REQUEST['email_to']; $subject = "Re: FAQ Suggestion"; $email = "d26thletter@yahoo.com"; $message …

Member Avatar for nhocikaka
0
2K
Member Avatar for BruenorBH

I want a user to be able to select an audio file to play but am unable to figure out how to create a file open dialog box in Win32 API. I could create one from scratch but am hoping that there is an easier way than manually creating it. …

Member Avatar for BruenorBH
0
168
Member Avatar for Nisaac

Hello guys, I am new to this website. It's nice to see these friendly people, anyways.... I have been trying to learn Java for a little bit now, I know the basics and some of the advanced things. But I came across a problem that is intriguing me so much. …

Member Avatar for Nisaac
0
206
Member Avatar for bokz06

Hi, i am having trouble with an assignment. i need to create an array, store numbers in the array... sqaure, cube and square root those numbers individually using different methods. display the resuts with a dialog box. after that i need to find the sum of the numbers in the …

Member Avatar for bokz06
0
113
Member Avatar for jagdeep89

Q1: Write a program to implement a survey that prompts respondents to enter an integral value within a specified range to indicate how they like a new product. Since the program must be adaptable to any arbitrary number of respondents and value ranges, define macro MAX_RESPONDENTS to represent the maximum …

Member Avatar for ndeniche
-1
365
Member Avatar for Grn Xtrm

Hello friends, I'm working on a program that takes a number input from the user and recursively sums the number 'n' to one. For example, inputting a 5 would sum 1/5 + 1/4 + 1/3+ 1/2 + 1/1. I have sucessfully gotten the fraction sequence to display but I am …

Member Avatar for Grn Xtrm
0
793
Member Avatar for aashishn86

in my form i give the user two options, either to 'add a new transaction' or delete an existing one. the code for it is: for add transaction [code] <table align=center border='1' bordercolor="#ffffff" cellpadding="0" cellspacing="0" class='verdana2' width="100%"> <tr <td bgcolor='#cccccc' align='middle'> <b><A style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Sans-Serif; TEXT-DECORATION: …

0
71
Member Avatar for AbuShokry

Hello all, I need to update a field in a table with a value that contains dashes it. (e.g. 10-5-2). the field type is Text The problem is that the field gets updated with "3" which is the result of the mathematical expression 10-5-3. And that's not what I want …

Member Avatar for AbuShokry
0
70

The End.