132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tonywacu

hello, i'm a great beginner in Python. But now my problem is that i have to model the growth of plant development using L-system.... but where to start this?? please, i need your advices otherwise i m lost.... please. i hope to hear from your very soon....thx

Software Development python
Member Avatar for Gribouillis
0
37
Member Avatar for xcorpionxting

I am building a program requiring making some classes with inheritance. I can't seem to be able to access the members of the class objects. My code looks like this: [CODE]#include <iostream.h> #include <stdlib.h> #include <time.h> class Animal{ public: int number; int legs; Animal(){ number = rand()%9; } }; class …

Software Development c c# c++
Member Avatar for xcorpionxting
0
177
Member Avatar for ZoomZoom

hey guys, im having problem converting this to a while loop. int lineB; int starB; for(lineB=1; lineB<=10;lineB++) { for(starB=10; starB>=lineB; starB--) System.out.print("*"); System.out.println(); } System.out.println(); Can it be written like this? int lineB=1; int starB=1; while(lineB<=10) { while(starB>=lineB) { StarB--; System.out.print("*"); System.out.println(); } lineB++; }

Software Development java
Member Avatar for Ezzaral
0
1K
Member Avatar for gogo000

how do i chck that a string contains integers or characters or is empty???

Software Development c c# c++
Member Avatar for mrnutty
0
95
Member Avatar for samarudge

Hi, I downloaded the open source project Guitar Tuner ([url]http://sourceforge.net/projects/guitartuner/[/url]) Inside it there is an index.html file, a TunerApplet.jar file and a TunerApplet.java file (As well as some images and GPL etc.) When i open index.html the applet displays as it should however if I try to recompile (Even without …

Software Development java open-source
Member Avatar for samarudge
0
127
Member Avatar for uv2009

Hello all, I would be grateful for your advice regarding something I tried to do using unique() but it didn't work. I have a two dimensional numpy array that looks like that (but much larger): >>> pop_A1 array([[10, 2, 10], [10, 9, 10], [10, 9, 10], [10, 9, 10], [10, …

Software Development python
Member Avatar for uv2009
0
149
Member Avatar for mariusmssj

want to be able to count the words in an array or a string :S but i am not sure how to do it could i get some help please what i want to do is be able to tell how many words have been entered. so i will need …

Software Development c c# c++
Member Avatar for mrnutty
0
172
Member Avatar for smachee

I am doing a homework problem and am having a hard time understanding exactly how I should be doing this. Any nudge in the right direction would be helpful. :) The problem is as follows: Ship, CruiseShip, and CargoShip Classes Design a Ship class that the following members: • A …

Software Development java
Member Avatar for smachee
0
3K
Member Avatar for railmaster7

I'm having trouble with some syntax errors, and also wanted to get an opinion of what I've written will work as needed. I'm writing an awk report script to organize data from a file and calculate the amount of sales. There are 3 kinds of lines that we will need …

Software Development shell-scripting
0
63
Member Avatar for goisagi

Hi, there! I'm pretty new to the programing world and I have a question. How can I write this code so it returns to surv1.set_sex = raw_input? after the "not in sex statement"? It's really confusing maybe I should try and write it in someother way? I don't quite understand …

Software Development python
Member Avatar for goisagi
0
78
Member Avatar for NinjaLink

hey, i wrote a program to create a hash table using an array of numbers, but I do not know how to display the actual table on my screen. Does anyone know how to display my results? So far, I am able to print the numbers that I have in …

Software Development c++
Member Avatar for jonsca
0
135
Member Avatar for kubo08

Hi, Please can anybody help me how i can create plugin to Postgre SQL/PostGis? Thank you very much

Software Development
Member Avatar for kubo08
0
111
Member Avatar for DrLod

Hi again, much questions today! So i'm having an Form for adding pictures with som details to a database. Everythings works well but some attributes i wish the user didnt need to enter, such as ,type (jpeg, gif), size, date.

Software Development
Member Avatar for DrLod
0
70
Member Avatar for Dokino

hello, I'm writing calculator with Python and i came across few problems. First problem is that if user enters letters it would ask him to reenter them i thought i could do it like this [code=python]try: class num: x = float(raw_input("number\n")) numb = num() except: bull = False else: bull …

Software Development python
Member Avatar for Dokino
0
130
Member Avatar for RichardCrickets

Hello daniweb, I am new to java and am trying to wrap my head around parsing XML with Java. I've decided to try DOM with Xerces to start because it seems pretty simple, however I am getting NoClassDefFound errors. I'm sure it's something really simple that I have overlooked due …

Software Development apache ide java java-netbeans xml
Member Avatar for Ezzaral
0
1K
Member Avatar for PopnFresh

I'm using Visual Studio 6.0 for C++ and while I'm stepping through my code in Debug mode, I'm not able to view any of my static variables in the "Locals" section of the context window. I know there has to be a way to set this up, as the computers …

Software Development c++ visual-studio
Member Avatar for mesmer
0
2K
Member Avatar for Towely

I'm having a few issues with my Pig Latin program. First, The program doesn't loop correctly. I need it to keep prompting the user for input until the user presses CTRL+D, but I can't figure out how. Right now, it never re-writes the line "Enter some text (CTRL-D to end):". …

Software Development c++
Member Avatar for Towely
0
188
Member Avatar for merse

String is an object, but it can be initialize without (), like [CODE]string str;[/CODE] However if I define a user defined object, I must initialize it like: [CODE]myclass myobj(); [/CODE] How is it possibel to not use: () ?

Software Development c++
Member Avatar for mrnutty
0
101
Member Avatar for calypso&noname

This question has largely already been posted, and I apologize for that. However, I cannot get the max an min values to change from anything except -1. I'd love to make them actually work; I feel like the comparison statements are correct. I know the counter is working properly, and …

Software Development c++
Member Avatar for calypso&noname
0
124
Member Avatar for Mclovin1234

An integer is said to be prime, if it is divisible by only 1 and itself. For example, 2,3,5 and 7 are prime, but 4,6,8 and 9 are not. Write a function that determines whether a number is prime. Use this function in a program that determines and prints all …

Software Development c++
Member Avatar for mrnutty
0
99
Member Avatar for tangieb01

The questions are at the bottom of the code. Need Java Help! I don't know what I'm doing or where to start!? Here is the first program: public class IntClass { private int x; public IntClass() { x = 0; } public IntClass(int num) { x = num; } public …

Software Development java
Member Avatar for BestJewSinceJC
0
107
Member Avatar for EvaDo

Hi!totally new, i did an undergrad in non-python related science, and I'm trying to move into incorporating python into my postgrad, so my questions right now are fairly basic. I basically want to run muscle (a sequence alignment tool) on a large number of files.how do i start a python …

Software Development python
Member Avatar for Gribouillis
0
182
Member Avatar for dark1806

hi i need a litle help.....i must write a program that search for a string in a text file and return the line in the text file were string was found...string its an argv....i wrote this code but it returns the whole text file when i search for something [CODE=c] …

Software Development c
Member Avatar for Narue
0
91
Member Avatar for iassael

how can i declare something like this? int main(int argc, char *argv[]){ char *users[] = {}; char *names[] = {}; openPasswd(users, names); return 0; } void openPasswd(char &users[] = {}, char &names[] = {}){ } as you see i want to populate the 2 char arrays from the function back …

Software Development c
Member Avatar for twomers
0
115
Member Avatar for nola_Coder

I'm working on a Floyd's Algorithm type Java program. What I have done so far is represent a directed graph in a 2d array, and I am trying to transform that into a 2d array representing the graph's paths of length 2. I planned for it to fill the adj2[][] …

Software Development algorithm java
Member Avatar for nola_Coder
0
170
Member Avatar for student88

hi all .. just want to ask if anyone have an idea how can i move image down throug keyboard cursors up an down .. i know that there is the keydown event and the keyup event but really i don't know how to write the code .. other qusetion …

Software Development
Member Avatar for student88
0
184
Member Avatar for Dex02

Hello guys, i need help. I just began to learn c++, and i have a problem. How to write a program, which count numbers in a interval from k to n. I now the program is simple but i just can t bring it to work. Im using the loop …

Software Development c++
Member Avatar for Dex02
0
112
Member Avatar for kpcorp

OK i have been stuck with this particular problem and driving me crazy any insight would be helpful. I am trying to create a program that asks user for a string and using the scanner method count the instances it appears in a txt file below is the code oh …

Software Development java
Member Avatar for Ezzaral
0
102
Member Avatar for samarth

Hi, I have the following piece of code. I do the following here 1)open a file. 2) Print the filepointer positon . I get 0 3)Read the file in a while loop till i reach the end 4)close the file 5)Open the same file 6) Print the file pointer position …

Software Development c c# c++ file-system ios
Member Avatar for gastonci
0
272
Member Avatar for Clawsy

Hello, In my project I have to capture screen activity (including audio) to a video file. I try using JMF for this. I don't know how to use those two classes: DataSource.java and LiveStream.java. I read them line by line. I probably have to create a Processor and feed it …

Member Avatar for Clawsy
0
726
Member Avatar for ericcool

Required to use PriorityQueue to implements Dijkstra’s algorithm for solving the single-source shortest-path problem for weighted graphs without negative edge weights. I have a wrong output of my program. Here's the code: [CODE] //Graph.h class Graph { public: Graph(int r = 1, int c = 1); // constructor void setCost(int …

Software Development algorithm c++ queue
Member Avatar for ericcool
0
145
Member Avatar for dsylebee

Hi everyone, thanks for reading this! I have a RichTextBox in my form which contains alot of text. the content of this richtextbox is going to be sent by email but first I need to convert it to HTML format.. Now I know it exists but I can't manage to …

Software Development html-css
Member Avatar for DdoubleD
0
722
Member Avatar for Mahsa_C++

Hello to all ! i am encoding a class about rational numbers, holding the numerator and a denominator and all operators like are overloaded for it..it works all so fine ecxept for one wierd point: my cast-to-double operator is called at the times it is not called at all..for example …

Software Development c++
Member Avatar for Mahsa_C++
0
460
Member Avatar for lewashby

In the following code, could someone please explain these if statements? elif 5 <= unhappiness <= 10:, & elif 11 <= unhappiness <15:, they have two arguments, one on each side which is something I haven't seen before. Also, what the one to the far right for anyway? Also, this …

Software Development python
Member Avatar for masterofpuppets
0
154
Member Avatar for ababhijit das
Member Avatar for Narue
0
101
Member Avatar for hailpam

Hi all, I've a problem: my application must convert ms word documents (imported from another system) into rtf documents, in order to be manipulated with OOo APIs and [U]to be immune from mistakes[/U] (for coding incompatibility reasons). I ask you: how can I manipulate ms word documents directly from my …

Software Development java
Member Avatar for hailpam
0
194
Member Avatar for tennisshoes

Hail. I'm having trouble with this program...here is the discription... Description: Design and implement an application that creates a histogram that allows you to visually inspect the frequency distribution of a set of values. The program should read in an arbitrary number of integers that are in the range 1 …

Software Development c++
Member Avatar for Narue
0
450
Member Avatar for supriya mysore

i have a combo box in vb6.0 which i need to get a column of data from oracle database, how can i extract a perticular column of data to a combo box

Software Development oracle visual-basic
Member Avatar for debasisdas
0
113
Member Avatar for hamidvosugh

Hi Would any one tell me how can I generate a random permutation of N numbers in c++? Is there any algorithm in STL for this purpose? Thanks in advance

Software Development algorithm c++
Member Avatar for hamidvosugh
0
209
Member Avatar for shakunni

I know how to use the file_pointer=fopen("location","type") to open and check if a file exists. But I'm not sure how I would use this command or a similar one to check if a folder exists? What command do I have to use to check if a folder exists in the …

Software Development c
Member Avatar for Ancient Dragon
0
108
Member Avatar for Bemani_lover

Ok, so I need a little bit of help with a program i'm writing. Let me give you the details. The user is suppose to enter two sentences with all lower case letters and have the first letter of each sentence become capitalized. Here is the code so far:[CODE] // …

Software Development c++
Member Avatar for Bemani_lover
0
182
Member Avatar for procomp65

Hi I have a data logger that records different lenghts of data. I download it in my application and create graphs. I need to show a progressbar to indicate how long the download is going to take. I get data from the logger to indicate how long the data run …

Software Development
Member Avatar for procomp65
0
703
Member Avatar for silveram

Can you convert the object returned by jTable.getValueAt(Row,Col) to an integer?

Software Development java
Member Avatar for javaAddict
0
92
Member Avatar for kaydub123

I need to write: Starting weight of food (in lbs:ozs)=8:9 into a python 3.0, I'm very new to this and what I came up with was: Starting_weight_of_food_in_lbs{:}ozs=input("Enter Starting_weight_of_food_in_lbs{:}ozs") print("Starting_weight_of_food_in_lbs{:}ozs entered=", Starting_weight_of_food_in_lbs{:}ozs) and I belive i'm way off....any help would be great!

Software Development python
Member Avatar for masterofpuppets
0
136
Member Avatar for rajeshwari_ib

how to store image file into database using python

Software Development image python
Member Avatar for ov3rcl0ck
0
163
Member Avatar for Japus

Hello I've got a project running at school where I've got to create Pacman, everything is going great. But I want to load an image to use as ghost, background or pacman. Currently it's a square which is pretty stupid. But how can I convert the image from jpg, gif …

Software Development assembly image
Member Avatar for ov3rcl0ck
0
246
Member Avatar for Chris11246

Whenever I try to run my program it keeps giving me an overflow error and I dont know why. The problem is shown when i call this sub: [CODE]blueP.shootBall(blueS.x, blueS.y, blueP.ang, blueP.captured, ball.x, ball.y, ball.velx, ball.vely)[/CODE] this is the sub [CODE]Public Sub shootBall(ByVal x, ByVal y, ByVal ang, ByRef caputred, …

Software Development vb.net
Member Avatar for Chris11246
0
71
Member Avatar for P00dle

Hi, In my program, a text file is read in, and certain parts of it are written to a XML file. There are special characters(e.g. &) that need to be escaped, so I need to escape all of them. How can I manage to do this?

Software Development java xml
Member Avatar for P00dle
0
88
Member Avatar for SharpNovice

Hello, firstly I would like to thank you in advance for any assistance provided. I am new to software development and have designed several Client/Server applications over the last 12 months or so, I am currently working on a project that involves a user logging in to gain access to …

Software Development c# client-server
Member Avatar for privatevoid
0
681
Member Avatar for deadllama19

There were two other variation which I completed but I am confused with this one: Write a method for each triangle variation. Use nested for loops to draw the triangles. Variation 3: /** Precondition: width is an odd number >1*/ public void diamond (int width) { } if width = …

Software Development java
Member Avatar for GTJava
0
102

The End.