43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bsod1

I'm writing some basic programs on python and I need an IDE with advanced code completion(like bpython). I've tried eric, eclipse, IDLE but those are not good at code completion, I need something like bpython(if you don't know, just try, it's great at code completion and hints)

Software Development ide python
Member Avatar for AutoPython
-1
93
Member Avatar for jacline

Hi to all, I have a homework about a banking system. I try to adding a branch in an array and the size of array dynamically increased. Here is my code but it gives run time error. [CODE]#include "BankingSystem.h" #include "Branch.h" #include <iostream> using namespace std; BankingSystem::BankingSystem(){ size=0; branches=NULL; } …

Software Development c++
Member Avatar for jacline
0
12K
Member Avatar for leegeorg07

Hi again, I'm now working on a twitter client and I'm wondering how people update their programs when it needs it, for example when I commit a change. Any help on the subject would be most appreciated thanks

Software Development python
Member Avatar for Stefano Mtangoo
0
200
Member Avatar for Sseeth

[CODE]string lastNames(string name[],int SIZE){ stringstream ss; for(int i = 0; i < SIZE; i++){ ss << '"' << name[i].substr(0) << name[i].erase(name[i].find(',')) << '"' << " "; } return ss.str(); }[/CODE] this is outputting my list of names correctly other than all the names come out twice like "namename" how can …

Software Development c++
Member Avatar for Sseeth
0
101
Member Avatar for teddy78

I have a code that uses queue in c++ and 3 class Message, MessageSender, and MessageReceiver to express queue content. The program runned but it expressed wrong output as I hope. I inputted 3 message object but queue expressed no messages received. Please help me find errors. I think this …

Software Development c++ queue
Member Avatar for teddy78
0
460
Member Avatar for mindgames

Does memory allocated for built-in types (in particular int, float and double) with the new operator initialize them to 0 (or 0.0, as the case may be)? Just trying to remember. (I seem to remember that new invokes a constructor even for the built-in types, but i'm not sure).

Software Development c++
Member Avatar for mindgames
0
82
Member Avatar for Stefano Mtangoo

Hi all, I use codeblocks to compile a simple project (actually an example) from [url]http://www.inet.hr/~zcindori/libwmp3/libwmp3.html#playc++[/url]. I have included the .h file and I fail to include .lib/.a I keep getting error[color=red] ld.exe||cannot find -libwmp3|[/color] Is there a missing thing?

Software Development c++
Member Avatar for Stefano Mtangoo
0
105
Member Avatar for T-Dogg3030

I am trying to use an array that can change in length by the number in the command line. Arrays must be constant at the time of declaration. Can anyone help? [CODE] using namespace std; int main (int argc, char *argv[]) { int nulls=atoi(argv[2]); int arry[nulls]; } [/CODE]

Software Development c++
Member Avatar for Narue
0
199
Member Avatar for prilton

hi everyone, i'm new here also new in c#.Please help me to re-populate my listview in form1 from the database when i close form2(modal). is is from form2 formClosing event [CODE]private void Client_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = false; ClientInfo a = new ClientInfo(); a.displayClient();//displayClient() is responsible for displaying …

Software Development listview
Member Avatar for Geekitygeek
0
125
Member Avatar for Es Sayen

hello, when user slect an item from combobox, then its corresponding data should be displayed in the textboxes and labels placed on the form. like if i select a rollno then the name, address, age should appear on the form. kindly, let me know the code for this. Thanks in …

Software Development display visual-basic
Member Avatar for abdalla_92
0
1K
Member Avatar for Clawsy

Please someone help me... why image panel not showing that image in the frame: [code] //image panel class import java.awt.*; import java.awt.image.BufferedImage; import javax.swing.*; public class ImagePanel extends JPanel { private BufferedImage img; public ImagePanel(BufferedImage img) { this.img = img; Dimension size = new Dimension(500,500); setPreferredSize(size); setMinimumSize(size); setMaximumSize(size); setSize(size); setLayout(null); …

Software Development image java java-swing
Member Avatar for Clawsy
0
205
Member Avatar for P00dle

I have to read through a text file and replace all occurences of [CODE]%%CNT1%%[/CODE] with the value of a counter. The part of my code that does the actuall replacements looks like this: [CODE]for i in range(1, (count1 + 1)): out.writelines(re.sub("%%CNT1%%", str(i), text))[/CODE] This works fine. Now what I need …

Software Development python
Member Avatar for P00dle
0
66
Member Avatar for Iam3R

hi , i have read that c99 introduced: inline,_Bool,restrict,_Complex,_Imaginary i have used _Bool here but do no how to use remaining all please any one used the above can help me. [CODE] int main() { _Bool b; b=true;// giving error true undeclared ,cant i use that way // with out …

Software Development c
Member Avatar for Iam3R
0
2K
Member Avatar for vbtryer

Hi guys, For the last 30 mins i have been trying to remove a part of a textbox, in this case i want to remove [url]http://www.youtube.com/watch?v=[/url] and remove anything after the end starting with &. do you understand what I mean? Any help appreciated, I really tried.

Software Development vb.net
Member Avatar for GeekByChoiCe
0
144
Member Avatar for michellspijkers

Hi! I'm a newbie in this community. I am developing a VB6 app which displays 100 pictures one at a time at random using a button click event. This works fine so far. Using the same random number generated to display the picture using a ' select case' routine, it …

Software Development visual-basic
Member Avatar for AndreRet
0
141
Member Avatar for SurviBee

I'm attempting to implement the trapezoidal method of calculating the integral of a curve. It's supposed to be the measure of water flow out of a tank's release valve. The water flow is a function of time in seconds where Y is the rate of discharge and X is time. …

Software Development c++
Member Avatar for sweetkim_2008
0
203
Member Avatar for Warragul

The select case construct is moving to the Case Else line every time the programme loops, even though there are "Longvue" & "Roseleigh" entries in the worksheet.[code]Option Explicit Option Compare Text Sub Complete() Dim HOComplete As Range Dim Client As String Dim JobNumber As Range Dim workrange1 As Range Dim …

Software Development microsoft-office vb.net visual-basic
Member Avatar for Stevoni
0
165
Member Avatar for _dragonwolf_

I have file with a list of names in it and next to the names is a series of digits. The digits represent its level of popularity per every 10 years. The program I have asks the user to input the file path, then it asks for the user to …

Software Development file-system java
Member Avatar for kvprajapati
0
163
Member Avatar for dorotalp91

This program is supposed to ask the user to input a number and the print will read out the factorial. This code is wrong how do I fix it? Maybe not add much just jumbled up variables? Help! This was given to me created in BLUE J software i know …

Software Development java
Member Avatar for dorotalp91
0
163
Member Avatar for smnadig

Hi All, I am facing a problem with using the function [B]strtok()[/B]. Following is just a sample code. The code below stores the string [B]str[/B] delimited by comma into an array. I want to modify the code below so that array would contain an empty space/new line if a value …

Software Development c
Member Avatar for ABuNeNe
0
228
Member Avatar for Smith5646

I have a program that allows the user to add steps to a process (tabpages in a control). All tabpages are generated on the fly by duplicating a "template" tabpage and consequently have the same control names such as textboxStepDesc. Here is the hierarchy of the controls to get to …

Software Development vb.net
Member Avatar for kvprajapati
0
157
Member Avatar for El Duke

Hello all, I have been developing a code based on Google Translate Python Wrapper. I have done it all, perfectly, except for one thing, I will explain it by pointing to code: there is the defined global languages list, and there are two main functions (Translate(), and UserSubmitted() ) now …

Software Development python
Member Avatar for El Duke
0
129
Member Avatar for pankaj.garg

i have 4-5 forms...all of them are called by each other by some or other procedure...now i want to initialize an variable with an integer value only when my program starts.... my problem is where ever i declare the variable...the form gets called and the variable gets re-initialized... or can …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
107
Member Avatar for awn

Hi, I'm writing an application in python to read data from a joystick and display it onto a screen with a background image overlay. i used the canvas widget to display the data to my screen. The problem is, the text keeps updating the entries without clearing the previous entry …

Software Development python tkinter
Member Avatar for awn
0
801
Member Avatar for Archenemie

28 Minutes Ago | Add Reputation Comment | Flag Bad Post One last problem with my script, it returns this error message... [CODE]Traceback (most recent call last): File "C:/Python26/Renamer 3", line 23, in <module> os.rename(fname, b)WindowsError: [Error 2] The system cannot find the file specified.Traceback (most recent call last): File …

Software Development python regex
Member Avatar for Archenemie
0
217
Member Avatar for smachee

Hi. I am new to Java and am trying to figure out a homework problem. It is a password verifier with the following criteria: [LIST] [*]at least 6 characters long [*]conatin at least one uppercase and one lowercase letter [*]should have at least one digit [/LIST] This is what I …

Software Development java
Member Avatar for smachee
2
3K
Member Avatar for ahamed101

Hi All, Let me explain the problem. I have multiple include files as in class1.inc, class2.inc, class3.inc etc. Contents of an include file will be like class1.inc [code=c] { "john", 12, 68, "steve", 12, 98, "mat", 12, 95, }; [/code] This will basically serve as a static array of structures. …

Software Development c
Member Avatar for gerard4143
2
1K
Member Avatar for icygalz

[CODE]void findMax(int arr[], int n, int* pToMax) { if (n <= 0) return; // no items, no maximum! int max = arr[0]; pToMax = &arr[0]; for (int i = 1; i < n; i++) { if (arr[i] > max) { max = arr[i]; pToMax = (arr+i); } } } int …

Software Development c++
Member Avatar for Narue
1
4K
Member Avatar for persianprez

I cannot find one example of somebody doing this, only sorting by the first item. Here is my code: [CODE] dict.sort() for key in dict.keys(): print key, "%8s"% dict[key] [/CODE] I'm only getting an alphabetical sorting of the left side of the dictionary.. like this: a:4 c:3 b:12 a 4 …

Software Development python
Member Avatar for persianprez
0
251
Member Avatar for n3r3d

Hello, i have one question for reading from file. I get data from file ulaz.txt and i want to data in there would be stored like [CODE]some text;1934 text 2;2342[/CODE] for now its stored like [CODE]sometext 1934 text2 2342[/CODE] so i want to be able to use space between text …

Software Development c c# c++
Member Avatar for pecet
0
259
Member Avatar for NorthDakota

Hi all :) I'd like to make a little vb.net program that executes searches on a msaccess database. I use a textbox to get the value to search and than i'd like to search all the values that has the textbox value in the middle. So, the queries should look …

Software Development microsoft-access vb.net
Member Avatar for NorthDakota
0
184
Member Avatar for lookof2day

I've been trying to get a list of values from database using hibernate. I'm using MS SQL Server XE 2005 and using Hibernate 3.2.2 to fetch DB rows. I've tried JDBC drivers provided by Microsoft as well as jTDS but all I get is an empty list. Here is my …

Software Development java session xml
Member Avatar for lookof2day
0
827
Member Avatar for chromatinpt

Hello again! I have a form (Form1) with some textbox, call it textbox1. With a button event I open a second form and hide de Form1. In this Form2 I dont use the value, I just make other things.. then open a another form, Form3 here I want to use …

Software Development
Member Avatar for chromatinpt
0
127
Member Avatar for Stefano Mtangoo

Hi All, I'm trying to make commandline mp3 player using [URL="http://www.inet.hr/~zcindori/libwmp3/index.html"]libwmp3[/URL]. I use codeblocks and have tried alot and I get error below. I have tried to include libwmp3.h, add libwmp3.a try changing compiler; but no success :( Please help me to get through. I use the code for mp3 …

Software Development c++
Member Avatar for Stefano Mtangoo
0
207
Member Avatar for Mitja Bonca

I am learing programming for a bit more then 6 months, and recently someone told me my concept is not the best one, he proposed me that I rather split my code into business logic layer and data access layer. And now I would like to ask someone if he …

Software Development
Member Avatar for Mitja Bonca
0
238
Member Avatar for NguyenThai

I have question about the listbox. My listbox is binding to a database, and I use SelectedValueChanged to determine which my record I chose, I also get a couple button to interact with the sorting but the problem is whenever I change the database, like update new sql query, it …

Software Development
Member Avatar for Geekitygeek
0
219
Member Avatar for TheBeast32

Hi, I installed cygwin recently and wanted to do some network programming with it. Since I have never used unix sockets before, I'm reading Beej's Guide To Network Programming. I took this from section 5.1 and tried to compile it. I get a few errors that I can't figure out …

Member Avatar for developer_borja
0
671
Member Avatar for naziatarannum

Hi all, I have a simple question as it appears. But am unable to get the solution. Question is -how do I get the access time of a file in unix. please advise on the command. Thanks

Software Development shell-scripting unix
Member Avatar for Aia
0
109
Member Avatar for Lukezzz

I have a code that is running like this and calling an event. The event is writing some lines to a textfile. But after each loop, the event is writing one more line each time. It seems that the += is filling the left side up. Is there a way …

Software Development c++
Member Avatar for Nick Evan
0
86
Member Avatar for gabec94

Hi, I am trying to write a binary search. The main method randomly makes an array of 1 mil int's, and the binary search returns if an entered int is in the array, but I seem to be having trouble getting it to work, I've been working on it for …

Software Development java
Member Avatar for gabec94
0
116
Member Avatar for sathya8819

Hi. I am implementing the Kuwahara Filter in c#. The code for this is given below. [CODE] unsafe { Bitmap bmps = (Bitmap)pictureBox1.Image; Bitmap bmpd = (Bitmap)pictureBox1.Image.Clone(); BitmapData bms = bmps.LockBits(new Rectangle(0, 0, bmps.Width, bmps.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); BitmapData bmd = bmpd.LockBits(new Rectangle(0, 0, bmpd.Width, bmpd.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); byte* b1 = …

Software Development image
Member Avatar for Geekitygeek
0
306
Member Avatar for sathya8819

I am implementing an image processing related code in C#. It works almost fine, but I find a problem that I am anable to solve. When I run the project, I get the output perfectly. But when I minimize the screen and expand it, the originial image appears distorted. I …

Software Development image
Member Avatar for sathya8819
0
703
Member Avatar for Ulukay

Im trying to make 400 textlabels at runtime but i dont see them , Why not ? [CODE]Private orderArray(41, 10) As Label for x=1 to 40 For u = 1 To 10 orderArray(x, u) = New Label orderArray(x, u).BorderStyle = BorderStyle.Fixed3D orderArray(x, u).Text = "----klhjk--" orderArray(x, u).Height = 20 orderArray(x, …

Software Development vb.net
Member Avatar for Ulukay
0
98
Member Avatar for Jalwes

Could anyone tell me why, in the following code, getline doesn't allow the user to enter any input? Thanks in advance. [CODE] #include <cstdlib> #include <iostream> #include <vector> #include <string> using namespace std; int main(int argc, char *argv[]) { char answer = 'n'; int selection; vector <string> strings; do { …

Software Development c++
Member Avatar for jonsca
0
97
Member Avatar for klackey19

Hey everyone, I'm coding a program in C and have a pointer called pRoot. I need to do (2 * pRoot) .. but the compiler says I cannot. Is there some legal way of implementing this pointer arithmetic? Thanks in advance for your help!

Software Development c legal
Member Avatar for Narue
0
142
Member Avatar for sexyzebra19

I've put so much effort into making this program and it keeps crashing! I previously had the two functions in separate files which were working fine, but I combined them into 2 - the poly function is still working fine, but the bisection function crashes at the line: "Enter the …

Software Development c++
Member Avatar for jonsca
0
126
Member Avatar for Jaydenn

Well, I have a main form (Form1) and a second form (Form2) which is a preference box. Anyways, I made a combobox and a button on the second form, and a button on the first form which opens up the new one. Everything works well until you try to use …

Software Development
Member Avatar for Jaydenn
0
97
Member Avatar for Archenemie

Just like in the title, instead of renaming the files in the "target folder" it just renames all possible files in the python directory, and im not sure how to fix it, although this is my best attempt. [CODE] #!usr/local/bin/python import re, os from os.path import join as pjoin targetfolder …

Software Development python
Member Avatar for Archenemie
0
197
Member Avatar for Stefano Mtangoo

Hello, is there any other site that is dedicated on python exercises from standard Library to external? I plan to start doing exercise to measure my muscles in python and enrich my understanding! I have seen here some exercises which I'll do them (on stickies) Thanks all Steve

Software Development python
Member Avatar for elasolova
0
184
Member Avatar for Mitja Bonca

This is the code I have: [CODE] public class BusinessLayer { public Employee[] GetAllEmployees() { Employee[] employees; DataSet myDataSet = DataBaseLayer.GetAllEmployees(); /// How can I convert the myDataSet to Employee List return employees; } }[/CODE]

Software Development dataset
Member Avatar for DdoubleD
0
2K

The End.