43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for aroshkhan

a salesman travel from sindth to punjab province. He may visit either n=2,3,4,5 or 6 cities of punjab. For every number of cities n he may adopt different roots. Some roots will be longer and other shorter. Develop a Cpp program.

Software Development c c# c++
Member Avatar for Ancient Dragon
0
159
Member Avatar for davidw87

Hi i was wondering if anyone could help me, im wanting to when you click in a certain area it changes the background image thanks import Tkinter as tk from Tkinter import* import urllib import base64 def click(event): if event.x > 100 and event.x < 430: if event.y > 100 …

Software Development gui python tkinter
Member Avatar for vegaseat
0
476
Member Avatar for Bo_1

Hello, I have a problem with a Form (EJournalF) that is activated unexpectedly and can't find from where. If I let it be Auto_Created in Project/Option/Font Auto_Create there are 2 instances at run-time, if it is listed in Available_Forms, only one instance is created. I have a MenyForm as Mainform …

Software Development pascal
Member Avatar for Bo_1
0
251
Member Avatar for MikeBah

I've been given the following instruction: *Add a new method to the library that applies a function to every value in the tree. (This is an iterator method for trees.)* int bst_char_iterate(bst_char *t, char (*fun)(char item)) *NB: The BST property will only be preserved by this method if the function …

Software Development c
Member Avatar for anas.man
0
192
Member Avatar for phoenix_2000

Heya all, Right now, i'm working on a small, text-based game, but i'm a bit confused about how to get my coupeling right. at the moment, i have 5 classes: an Item class, an inventory, a player, a room and a 'game' class that loads the game. The game class …

Software Development java
Member Avatar for phoenix_2000
0
188
Member Avatar for </scorpion>

How to check if startdate and enddate overlaps when changing date in datetimecontrol? (C# or SHAREPOINT)pls. is there anyone who knows how to check if dates are overlapping? this is my gridview: | ID | cost | start date | end date | status | --------------------------------------------- | 1 | 66.00| …

Software Development sharepoint
Member Avatar for </scorpion>
0
2K
Member Avatar for lewashby

class MemberCounter: members = 0 def init(self): MemberCounter.members += 1 # m1 = MemberCounter() # m1.init() # MemberCounter.members -> 1 # m2 = MemberCounter() # m2.init() # MemberCounter.members -> 2 # m1.members -> 2 #m2.members -> 2 # m1.members = 'Two' # m1.members -> 'Two' # m2.members -> 2 In …

Software Development python
Member Avatar for lewashby
0
182
Member Avatar for artemix22

i am so confuse dude.. why in my visual studio 2010 ultimate didn't show crystal report gallery? after i click "add new item" and add crystal report, it just show me SAP page that say "learn and download". i have install SAP crystal report runtime engine for .NET framework 4(32-bit). …

Software Development vb.net visual-studio
Member Avatar for Sqiar
0
182
Member Avatar for JOSheaIV

Alright so here's a good one for you guys. Long story short I am trying to create a .bmp file out of a byte []. Now I have code that will convert a byte [] to an Image that I then save to a file, but this doesn't work. Why? …

Software Development file-system
Member Avatar for JOSheaIV
0
209
Member Avatar for simran_4

Hello all, I am stuck with a nullpointerException at line 41 and 60.Can someone please help me out.any kind of help will be appreciated. Thanks import javax.swing.*; import javax.swing.event.*; import java.awt.Color; import java.awt.*; class calenders extends JFrame { int i=0; int j=0; int k=0; JFrame jf; FlowLayout fl; JPanel jp[]; …

Software Development java java-swing
Member Avatar for simran_4
0
565
Member Avatar for chewyonglin

anybody can help me do it?.. The objective of this assignment is to refresh and enhance the skills of the students in problem solving involving functions, arrays, classes and others using the C++ programming language. Students MUST use the inheritance and polymorphism concepts in the OOP. Students are required to …

Software Development objective-c oop
0
107
Member Avatar for roidbeginner

I have text file that contains username and password userandPassword.txt chris ABC jane DEF john DEF I am tryng to Decrypt the password using caesar cipher, with a key of 3 from the text file. which means that if I key in username: chris and password:XYZ, it will login successfully. …

Software Development c c# c++
Member Avatar for roidbeginner
0
1K
Member Avatar for Pickletronic

Hello, I've been trying to create a function to calculate and return the total payment. RadioDay is a radio button with value of 7 while RadioHour is 70. Somehow I am getting InvalidCastException "Conversion from string "" to type 'Integer' is not valid." from the part where I want to …

Software Development vb.net
Member Avatar for Pickletronic
0
349
Member Avatar for scheppy

Hi all. Im having trouble getting my menu to work on my window. this is what I have so far as for my code. package sparepartinventory; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.*; /** * * @author jonathan */ public class SparePartInventory { /** * @param args the command line arguments …

Software Development java java-netbeans java-swing
Member Avatar for JamesCherrill
0
280
Member Avatar for yAjMeL

Please help me..What is wrong with this syntax...there are 2 parts of error.. Private Sub class_initialize() DoEvents Set con = New ADODB.Connection With con .ConnectionString = "Driver=(MySQL ODBC 3.51 Driver);SERVER=localhost;PWD=;UID=root;PORT=3306;DATABASe=cvsur;" .CursorLocation = adUseClient .Open End With End Sub **.Open** was the error from this syntax..(Sytax Above) ______________________________________________________________ And another one …

Software Development visual-basic
Member Avatar for yAjMeL
0
177
Member Avatar for Caulm64

#Name: Calum Macleod #Date : November 6, 2012 #Purpose: A Python program with a loop that lets the user enter a series of whole numbers. #The user should enter the number -99 to signal the end of series. #After all the numbers have been entered, #the program should display the …

Software Development python
Member Avatar for sneekula
0
10K
Member Avatar for godzab

Hello all, I am trying to find all occurences of a letter in a word. If the letter is present in the word, then I save it to a String. For example here is the text: Hello World, my name is godzab. I search the text, and if there is …

Software Development java
Member Avatar for godzab
0
106
Member Avatar for hellohellohello

I need to read excel files and compare them and produce new outcomes using Python. i have realized that by suing the following codes I can read an excel file: import xlrd wb = xlrd.open_workbook('values.xls') wb.sheet_names() But i keep getting error of: [COLOR="Red"]Traceback (most recent call last): File "C:/Python26/Atest/filename.py", line …

Software Development file-system python
Member Avatar for akiva.berger
0
5K
Member Avatar for mixelplik

I want to pass an input file to a function and within the function, fill an array by reference. It isn't allowing me to do this, it keeps telling me it's expecting a ";" after i in the function. I couldn't really find anything about this in my book - …

Software Development c++
Member Avatar for mixelplik
0
266
Member Avatar for nadiam

so this piece of coding is having a problem. namely the search funtion. it will search but the result would only be the first element. the second will not be seached. like for example first element is lily and second element is john. search for the name lily will result …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
4K
Member Avatar for ronnel09_2

Please help me with this, i'm trying to create a domino game (which a project in school) i'm a midway learner of Java Prog, but still i haven't know a lot. My problem is, i'm trying to draw over the background image of my playFrame, but the rectangle does not …

Software Development java java-swing
Member Avatar for ronnel09_2
0
196
Member Avatar for Learner010

hello today i start writing an application which uses mdi forms(its new to me). and i use the following code:(i set form1=idmdicontainer=true) , is this correct way to create mdi forms ? further i write the code : there i have 2 more forms (form2 and form 3) Private Sub …

Software Development vb.net
Member Avatar for Learner010
0
1K
Member Avatar for kcid108

Is it possible to create a program in VB 6.0 or VB.Net that diagnose a computer??? For example check any problems with hard disk or memory or any other peripherals... if it can be done. can somebody point me to the right direction on how can I do this??? thanks …

Software Development visual-basic
Member Avatar for kcid108
0
237
Member Avatar for christinetom

Trying to compile an Fast Light Tool Kit project for the first time. This is one I've generated in FLUID and dragged into Code::Blocks IDE (MinGW compiler). Not sure what this error means or how to fix it but it seems that it's very common? Any clues as to what …

Software Development c++ ide
Member Avatar for Ancient Dragon
0
18K
Member Avatar for yann.bohbot.9

Hey everyone, I posted recently an issue that was almost resolved but I have a similar question but have different variables. I'm really new to C and I'm a bit confused. Like I said on the other post I need to seperate a string using strtok() and store the seperated …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
261
Member Avatar for shchandhu

i started learing java reading thinking in java i cam across this java objects do not have same lifetime as primitives an object retains in memory even after its scope until garbage collector detects and releases the memory well whats the lifetime of primitives..?? their memory will be released after …

Software Development java
Member Avatar for JamesCherrill
0
127
Member Avatar for Seba Sama

Hello, I'm trying to understand some things about derived classes: how to add something "extra" to existing functions in base class. My base class is "shape2D" like a rectangle, 3 functions: set values, calculate, show results. No problem here. Then I create a derived class named "shape3D". Please note the …

Software Development c++
Member Avatar for Tumlee
0
352
Member Avatar for Twee Nguyen

Hello everyone, I just start to study about Java and I need to design a website in Java. I do not know I should create a Java Application project or Java Web or Java EE.... Could you help me to start this? Thank you.

Software Development java web-design
Member Avatar for peter_budo
0
249
Member Avatar for fheppell

I'm writing a script that downloads files for web design, and this line produces Traceback (most recent call last): File "bootlace.py", line 60, in <module> download(data['jquery'], 'Downloading jquery. (File size %s)', 'js/') File "bootlace.py", line 11, in download file_size = int(meta.getheaders("Content-Length")[0]) IndexError: list index out of range That line is …

Software Development json python web-design
Member Avatar for snippsat
0
2K
Member Avatar for cambalinho

how can i get the font of a control? for i change what i need and then select it

Software Development c++
Member Avatar for cambalinho
0
84
Member Avatar for pars99

So, I see pointers defined in many different ways but I never quite understood what the difference was. Could someone explain it to me? Examples: `int * a; int* a; int *a` That second one may or may not be actual C++ but I've seen it done in all those …

Software Development c++
Member Avatar for pars99
0
140
Member Avatar for Builder_1

the folllowing code i have made but its not catering for the vowels coming together...what should i do in this code to accurately count the number of vowels and count the remining char left in string without vowels as after tokenization only the first token remains in the char array/string …

Software Development c++
Member Avatar for Builder_1
0
568
Member Avatar for CoilFyzx

Good day folks. Problem: My program needs to import data from a database and display them in a table then manipulate and display the data in various ways. That bit is solved the next part is where I need help. The program then needs to save locally... 1. the newly …

Software Development gui java storage
Member Avatar for CoilFyzx
0
408
Member Avatar for mixelplik

I'm practicing arrrays and in the following program I'm passing a multidimensional array to a function to fill it. This worked with a single dimensional array just fine. (1) Is this bad practice? (2) Do the multi-D arrays work the same way as the regular ones. In the program below …

Software Development c++
Member Avatar for mixelplik
0
214
Member Avatar for kentuckyjoe

I have a question about best practices as far as opening and closing the database connetion in my app. Currently I am opening and closing each time the database is accessed with a query or update. Should I be doing this? It’s a lot of opens and closes. Or maybe …

Software Development vb.net
Member Avatar for Reverend Jim
0
184
Member Avatar for vjeshemv2000

Hai all, i have created a project in visual basic 6 and i made the exe file by clicking the command in file menu " Make Exe ........". but the icon represents like a form. i wnat to change this icon to my own. how can i change it. is …

Software Development visual-basic
Member Avatar for Omega330
0
3K
Member Avatar for LeNenne

In a list box some email now I will that the corresponding name to the email rs.MoveLast rs.MoveFirst max = rs.RecordCount rs.MoveFirst LstData3.Clear List1e.Clear For i = 1 To max If Not Len(Trim(rs("Email"))) = 0 Then LstData3.AddItem rs("email") & " " & rs("eftn") & " " & rs("namn") If Not …

Software Development visual-basic
Member Avatar for Minimalist
0
365
Member Avatar for sravan953

Can the sibprocess.call('') function be used to execute .mp3 files, it doesn't work for me. Which function is used to run any video or audio file from within Python?

Software Development audio python
Member Avatar for aru123
0
2K
Member Avatar for senokuza

#include<stdio.h> #include<stdlib.h> #include<string.h> #define sizeofhash 30 struct nsbh { char nama[100]; char norek[20]; char ttl[40]; char jk[20]; char alamat[30]; char kota[50]; char nohp[15]; int saldo; struct nsbh *next; }; struct nsbh bank; typedef struct nsbh atm; atm *hash[sizeofhash]; atm *a=NULL; atm *b=NULL; atm *c=NULL; //Nasabah bank; //Nasabah * pbank = …

Software Development c
Member Avatar for senokuza
0
297
Member Avatar for imBaCodes

Can anyone show on how can i move an image on an excel sheet to a specific cell. Thank you in advance.

Software Development image visual-basic
Member Avatar for mikepeal
0
4K
Member Avatar for mikewyatt

I know that this is probably the stupidest question that I have ever asked but here goes....... I am trying to create a new application in netbeans..... and having no luck at all. First I create a new project called Interactive Campaign Manager by choosing java category and then Java …

Software Development java java-netbeans java-swing oracle
Member Avatar for mikewyatt
0
212
Member Avatar for bryann

I am trying to create a Caesar Cipher in Python. I have managed to put together my program with the help of some other websites but have hit a bit of a wall. My code allows me to encrypt a single character and will then ouput this and write it …

Software Development python
Member Avatar for mathijs
0
253
Member Avatar for triumphost

Why is accessing data in an uninitialised array undefined behaviour? I ask because I was doing some benchmarking on `vector<int>` vs. `int*` vs. `int**`. My results were: http://stackoverflow.com/questions/20863478/class-using-stdvector-allocation-slower-than-pointer-allocation-by-a-lot Now I'm being told if I use the raw array and try to access an index without initialising it first, it is …

Software Development c++
Member Avatar for mike_2000_17
0
193
Member Avatar for PerplexedB

When one sets the DropDownStyle property of a combobox control to DropDownList, the system (from windows 7 on, not sure I had this problem in Vista) changes the appearance of the field, so that it somehow reminds one of a command button. I definitely need the DropDownList behavior, but I'd …

Software Development vb.net windows-vista
Member Avatar for PerplexedB
0
206
Member Avatar for James19142

I'm new to Visual Studio & trying to build an application in it for the first time. The code compiles. I used to get the error load from the debugger as a result of not downloading the corresponding .pdb files. After changing a setting in the debugger options, all the …

Software Development c++ visual-studio
Member Avatar for James19142
0
1K
Member Avatar for marigold23

Hey there everyone. well i have been working on python for about 2 months now and i just cant seem to get my background image to work. I have created the GUI with Tkinter and put a label in it with my name etc, but the idea was to have …

Software Development gui image python tkinter
Member Avatar for mrv8corvette
0
6K
Member Avatar for mixelplik

#include <iostream> #include <iomanip> using namespace std; int main() { cout << "\n0----------------------1------8\n"; cout << setw(22) << left << "Registration Fee "; cout << setw(8) << right << fixed << setprecision(2) << "$ " << 22.0 << endl; cout << setw(22) << left << "Hotel Total "; cout << setw(8) …

Software Development c++
Member Avatar for mixelplik
0
206
Member Avatar for srikanth2321

Hello, I'm writing a plugin for a software in eclipse. I'm using vtd-xml.jar for importing an xml file. I have added to the build path by rigt clicking on the paroject and selecting the opetion add to build path. While I do the operations from eclipse it is working fine …

Software Development file-system java
Member Avatar for srikanth2321
0
248
Member Avatar for srinu_1

hi, **please help me to solve the error for:** **text1.txt:** line1 <data> line2 <items> line3 <match name="item1" rhs="domain.com"></match> line4 <match name="item2" rhs="domainn.com"></match> line5 <match name="item2" rhs="1010data.com"></match> line6 </items> line7 </data> **text2.txt:** line1 djshjsdf line2 sdfngjfg check domain.com,domain.com,1010data.com in text2.com, if not there print domain.com,domain.com,1010data.com in to the 3rd text file(text3.txt) …

Software Development python regex
Member Avatar for snippsat
0
374
Member Avatar for Damian_2

Okay so I have `MainShop`(base class) then `SwordShop` and `BowShop`(derived classes) and another derived class called `Inventory`. I have a vector under protected in my base class, and when I access it from my derived classes it's okay, but each one has its own value. How can I set them …

Software Development c++
Member Avatar for Damian_2
0
239

The End.