43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Excizted

Hello :) I've got this resource (as in files on the pc) management system, that had been tested but now seems to be malfunctioning. I've been debugging for way too long now, and I can't figure out the issue. I'm going to post some of my code first, and then …

Software Development c++
Member Avatar for Excizted
0
719
Member Avatar for carrzkiss

Hello All; I would like to start off by saying hello, and that this is actually my first post to the group, even though I have been a member for many years. I am a ASP Classic Programmer, professionally for a little over a year, I have developed some rather …

Member Avatar for carrzkiss
0
725
Member Avatar for severman

hi all i'm trying to draw an oval/ellipse over an existing square the problem is that the oval is drawn behind the rectangle how do i fix this? here is my form's code [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; …

Software Development image
Member Avatar for severman
0
172
Member Avatar for jcao219

I personally prefer the 3 syntax over 2, but I notice most of the code snippets in this forum are for Python 2. Is it because we are still in a steady transition from 2 to 3, or is it something else?

Software Development python
Member Avatar for hondros
0
209
Member Avatar for lotrsimp12345

Here's my code. [CODE] (define L ()) (define (union L1 L2) ;continue until one list is empty (do() ((or (null? L1) (null? L2))) (cond ((<(car L1)(car L2)) (attach(car L1)(cdr L1)L2)) ((eq?(car L1)(car L2)) (attach(car L1)(cdr L1)(cdr L2))) (else(>(car L1)(car L2)) (attach(car L2)L1(cdr L2))) ) ) ;after which you continue to …

Software Development
0
71
Member Avatar for ereruh

Hey. I'm pretty new to C# and programming overall. I'm trying to make a Hangman game. Let's say the user want to make a guess at the letter "t". Then he should just have to press "t" on his keyboard and the form should recognize it. I currently can't even …

Software Development
Member Avatar for ereruh
0
139
Member Avatar for hkBattousai

This sample code is from [URL="http://msdn.microsoft.com/en-us/library/aa287786%28VS.71%29.aspx"]MSDN[/URL]. [CODE]private string name; public string Name { get { return name; } set { name = value; } }[/CODE] I looked several examples, and they are the same. Why do we keep two different properties to store the name, namely "name" and "Name". I …

Software Development c c# c++
Member Avatar for hkBattousai
0
426
Member Avatar for spetsnaz26

For example if I have this int type variable X that increment from 1 at the beginning to 10 when the program ends, how to open and write to 10 different files (data1.txt,data2.txt,data3.txt....) everytime X increments? I've tried with the following but it didn't work: [CODE]string filename ("data"); int X; …

Software Development c++
Member Avatar for spetsnaz26
0
255
Member Avatar for nitin2010

When I am going to modify hashtable data it is giving me the exception.`"Collection was modified; enumeration operation may not execute"` Here is the code.. foreach (DictionaryEntry Item in hashtable) { switch(Item.key.ToString()) { case "Color": { hashtable["Color"]="ffffff"; break; } case "Width": { hashtable["Width"]="40"; break; } } } My qustion is …

Software Development
Member Avatar for privatevoid
0
170
Member Avatar for Zat

I'm trying to write a program and am having some major issues. I've written a decent program but people are complaining about some of the cosmetic issues. I have very little experience with code (maybe 10 days of frustrating Internet research). Here A few issues that i have that keep …

Software Development microsoft-office vb.net
Member Avatar for vodkasoda
0
137
Member Avatar for jonnod123

Hi all, I have a c# winform with a SQL Server 2005 backend. When I update my database from textboxes in the form, in one particular table all the nvarchar entries are padded with white space. This doesn't happen for other tables. All the fields that are being padded are …

Software Development sql
Member Avatar for jonnod123
0
150
Member Avatar for gunbuster363

The methods is so complicated. I want to check the execution time of each statement so that I can modify that part in order to increase speed. Thanks in advance, Raymond

Software Development python
Member Avatar for hondros
0
97
Member Avatar for richardtreier

Maybe you know the mmotps GunZ([URL="http://trinityent.org"]http://trinityent.org/home[/URL]). i have already written a few macros for it (so a program, which clicks and presses the keys for you ingame) with the program actool([URL="http://www.actool.net/"]http://www.actool.net/[/URL]). But i am tired of using this pascal-like programming language... [B]So is there a possibility to get a macro, …

Software Development pascal python
Member Avatar for richardtreier
0
238
Member Avatar for whimsical1987

I have to work on a method called extract feature which has to check for the pattern i pass to the method in the matrix I pass This is an example pattern = {{0,100,0},{255,255,255},{0,100,0}}; Though I pass any different pattern it has to check for that pattern in the matrix …

Software Development java
Member Avatar for whimsical1987
0
807
Member Avatar for hosam2k

hi all im stuck to my assignment 1. i want to know how to use function search in order i can search each character in a string then count the number of it. for example: given : home alone the output will be : the string has 9 characters including …

Software Development c
Member Avatar for Adak
0
144
Member Avatar for yozuca

When I run it,it appear [COLOR="Red"]error 88:'')'' is expected[/COLOR] in A[L]:=sort;. I think it is no need to add '')''. What error 88 mean:?: [CODE]const max = 100; var A: array[1..max] of real; function Sort(L, R:integer):real; begin for L:= L to R-1 do begin if A[L]<A[L+1] then begin sort:=A[L+1]; A[L+1]:=A[L]; …

Software Development pascal
Member Avatar for cao
0
212
Member Avatar for kur3k

Hello My english is not good, so pleas - understat me ;-) I have two question about python ;) 1. I'm from poland, in poland letter a == Ä…, z == ź itp. Can i remove polsich letter? example in input - jacek bÄ…k in output - jacek bak I …

Software Development python
Member Avatar for jice
0
671
Member Avatar for xsach

[CODE]import java.io.*; import java.util.*; import java.io.FileWriter; import java.io.IOException; public class Dirtrav { public static void main(String args[]) { // String rootDir="C:\\Projects\\PerfBVT'\\W6_TopicVsQueue_8.2.0.0.74_040110\\"; File directory = new File("C:\\Projects\\PerfBVT'\\W6_TopicVsQueue_8.2.0.0.74_040110"); identifydir(directory); } //File directory = new File("C:\\Projects\\PerfBVT'\\W6_TopicVsQueue_8.2.0.0.74_040110\\"); public static void identifydir(File di) { File[] files = di.listFiles(); if (! di.exists()) { System.out.println("Invalid path"); return; …

Software Development java
Member Avatar for masijade
0
122
Member Avatar for Darkicon

Using the following sub to download a file I receive an "Access to the path 'path' is denied" no matter where I try to download it to even if I run the program as an administrator. Why do I get an access denied error? [CODE=VBNet] Private Sub Button1_Click(ByVal sender As …

Software Development vb.net
Member Avatar for Darkicon
0
1K
Member Avatar for Purnima12

[CODE] while True: try: wd = int(input('How wide would you like your letter to be? (5 - 20)' + ': ')) break except ValueError: print ("Oops! That was no valid number. Try again...")[/CODE] If the user inserts a number that is not 5 - 20, I want the program to …

Software Development python
Member Avatar for TrustyTony
0
544
Member Avatar for philipB

I'm working with 2d arrays (which I kinda understand) and a bubbleSort, which I sorta but don't really understand and perhaps those * and & which I'm totally lost on, especially the * which can mean what it means or the opposite of what it means? I don't get that. …

Software Development c++
Member Avatar for WaltP
0
232
Member Avatar for Lee21

Guyz, I want to know about the Form Disposed Event. I want that everytime I click the close button ("red X button located at the top right of the form") there will be a message box that asking if I want to exit, then if I click yes the programs …

Software Development vb.net
Member Avatar for Lee21
0
132
Member Avatar for jonniebl

I am new to programming with vb2008 and I am trying to fill out a form on line. The form looks for keystrokes and keeps track of the number of characters typed. There are two elements on the form that use this method. The first area will allow me to …

Software Development html-amp vb.net
Member Avatar for Oxiegen
0
382
Member Avatar for pinsickle

[CODE]class BTreeNode : public LinkedNode { public: BTreeNode (BTreeNode* child0, int key0, BTreeNode* child1); BTreeNode (const BTreeNode& sibling); bool isNotLeaf (void) const; BTreeNode* findChild (int newKey) const; BTreeNode* addKey (int newKey, BTreeNode* newChild = 0); BTreeNode* getChild (int i) const; void write (ostream& outfile) const; private: void setChild (int i, …

Software Development c++
Member Avatar for pinsickle
0
99
Member Avatar for sunlitdays

Hi there, I'm trying to write code for an assignment that asks me to read a string and convert all uppercase letters in it to lowercase without using tolower(), since we haven't covered it yet. This is what I have so far: [code] #include <iostream> using namespace std; int main …

Software Development c++
Member Avatar for chiwawa10
0
240
Member Avatar for jozz3

How would you define a recursive function that asks the user for a string and prints it from the outside in. For example, 123456 would print as 162534. Any help would be appreciated.

Software Development python
Member Avatar for jozz3
0
575
Member Avatar for simbomatic

Hello, I could really use some help with a project I am working on. The project will basically need to track changes that occur within a string so they can be highlighted. Ideally the application would spot that change in the string and prehaps inside a new word at the …

Software Development
Member Avatar for simbomatic
0
150
Member Avatar for miskeen

Hi, I have different variables and I want to have a final variable that represents the concatenation of those variables by taking a specific number of bits from each variable. For example, if I have 3 variables var1, var2 and var3 and I want to take 3, 2 and 1 …

Software Development c++
Member Avatar for miskeen
0
109
Member Avatar for summey

Use the program, Passing-by-value, on the bottom of pp. 248–249 and the program, Passing-by-reference, on pp. 255–256 as a starting point for this assignment. Write a similar program, but change the code to pass two variables to the function call rather than one. that's my assignment and i have tried …

Software Development c++
Member Avatar for summey
0
351
Member Avatar for PTRMAN1

First time using void functions. Apologies again for the noobish thread. I have a few questions on this problem. 1) Since the variables miles, gallons and milesPerGallon are used in both main and void, do I need to initialize them in each place? Or if they're initialized in main do …

Software Development c++
Member Avatar for PTRMAN1
0
103
Member Avatar for losh177

Hi, I'm having some problems with an infinite loop. For some reason, the process 112 is not being send anywhere. What i'm suppose to to do is to mimic a CPU. Each line represents a process which the first number is the machine time that it suppose to be send …

Software Development java queue
0
133
Member Avatar for ana_eht

Hello again Thank u for your kind helps again i have a question my problem is this i have a program with 3 list boxes when user choose an Item in one list box that item in parallel list boxes must also be chosen here is an example Quantity..... Name......Price …

Software Development vb.net
Member Avatar for ana_eht
0
98
Member Avatar for miguelms19

Just need a few pointers with the code below. I have the below class to complete but I am stuck on the isAllValidDigits() method where i have to create a loop to check and return true if all the int values of the authorId array and the programId array are …

Software Development java
Member Avatar for vchandra
0
91
Member Avatar for ihatehippies

[CODE=python]>>> import wx >>> wx.NullBitmap.SubBitmap Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> wx.NullBitmap.SubBitmap File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 659, in GetSubBitmap return _gdi_.Bitmap_GetSubBitmap(*args, **kwargs) TypeError: Bitmap_GetSubBitmap() takes exactly 2 arguments (1 given)[/CODE] I didn't call it, I just tried to reference it. happens with all these methods wx.DefaultDateTime.Day …

Software Development python
Member Avatar for ihatehippies
0
225
Member Avatar for miskeen

Hi, I want to convert unit32 variable to uint16 variable because I can't read uint16 directly from a file using sscanf. Is that possible? Thank you!

Software Development c++
Member Avatar for miskeen
0
2K
Member Avatar for sree_ec

Hi, i have some questions mostly regarding the memory segments... Can any one help me out.. 1. During a function call in C, where is the return value of the called function stored.. This is mainly a question came when i was thinking of steps during a function call. The …

Software Development c
Member Avatar for sree_ec
0
86
Member Avatar for sinister747

Hi All, I am pretty new to Java and i am having difficulty using overloading on the [I]equals[/I] and [I]compareTo[/I] methods. I have a sample application for a school and i need to check for duplicates in records using the equals and compareTo methods. All records have Firstname, Lastname and …

Software Development java
Member Avatar for sinister747
0
106
Member Avatar for Geodude0487

Hi I'm not sure if the answer is anywhere else in the forums but I have yet to find it. I'm working on a school project where we basically have to write a TicketMaster esque program. We have a main form, with a log-in form, and a register form. We …

Software Development c#
Member Avatar for Geodude0487
0
181
Member Avatar for goodwin912

I've got a little app to resize and watermark images. At the moment it only does one at a time but I would like to get it to do a full folder of images in one go. I have done this previously in VB using loops but im new to …

Software Development image python tkinter
Member Avatar for Tech B
0
233
Member Avatar for superchica08

hello to everyone i am new to this stuff so i was wondering if anyone could help me fix this error that i get on a code that is for a payroll assignment. when i build it i get this [B]C4551: function call missing argument list[/B]. would really like the …

Software Development c++
Member Avatar for jwenting
0
1K
Member Avatar for neti1987

Hi! I try to create HashSet of the next object: [CODE] import java.nio.file.Path; public class WatchedPath { public Path dir; public boolean recursive; public Filter filter; // Ctor with only Path - for comparing between the object (comparing is only by the path!) public WatchedPath(Path dir) { this.dir = dir; …

Software Development java
Member Avatar for neti1987
0
2K
Member Avatar for inisca

Hello all I have a problem.I am trying to convert 'System:tring ^' to 'const char *' but i don`t know how. can some one please help me? I use VC++ 2005 I need to open files with extension .wav my code is: [CODE] public:System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { OpenFileDialog …

Software Development audio c++
Member Avatar for jonsca
0
134
Member Avatar for Lee21

guyz I need help regarding declarations of global variable.. I created a module here is the script. [CODE] Module modGlobalvar Public name As String ----------------------------------------------------------------------------------- 'here is the code in my login form Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click Try sqlcon.Close() scmd = New …

Software Development vb.net
Member Avatar for Lee21
0
2K
Member Avatar for pritesh2010

hello every one i had created one application front end as vb.net and back end is Access 2003. after this i had created a setup of that application. it perfectly work on my computer but when i am installing setup on my friends computer it install and run time it …

Software Development vb.net
Member Avatar for kvprajapati
0
112
Member Avatar for kjock002

the random function gives you a number between 0.0 and 1.0 . im trying to get a random number between -0.5 and 0.5. i asked someone for help and they told me to go off of this: [0, 1) + .1 this changes the range to [1, 2) and i …

Software Development python
Member Avatar for Gribouillis
0
101
Member Avatar for bandit711

Having problem set code up for five rows and 4 column. Any ideas have too do it the code, i am currently using: [CODE] cout << setfill(' ') <<setiosflags(ios::left) << setw(11) << "Student" << setw(10) << "Quiz1" << setw(8) << "Quiz2" << setw(8) << "Quiz3" << setw(8) << "Quiz4" << …

Software Development c++ ios
Member Avatar for bandit711
0
172
Member Avatar for leviaeon

i have an error with this sample code i got from the net... the error says: TypeError: unsupported operand types for +: 'int' and 'str' here is the code: from time import ctime [COLOR="Red"]import[/COLOR] codecs [COLOR="red"]import[/COLOR] inbox, appuifw box = inbox.Inbox() msg = box.sms_messages() f = [COLOR="red"]codecs.[/COLOR][COLOR="Green"]open[/COLOR]('E:/Others/listSMS.txt', 'w', 'utf8') # …

Software Development python
Member Avatar for leviaeon
0
93
Member Avatar for mikeyboy02

Hi I'm new to java and working on a program where I want to show the number of rentals for one person in one box and the total rentals in another box. I am having trouble storing the variable or it is not recognizing that I want to keep adding …

Software Development java
Member Avatar for mikeyboy02
0
109
Member Avatar for pateldeep454

I am having error in the following code. What should I do to fix it? Also, how should I call it in main method to test the code? please HELP :( [CODE] package sortingelements; public class Main { public static void main(String[] args) { } public int indexOfMaxInRange (int[] myArray, …

Software Development java
Member Avatar for Danny_501
0
124
Member Avatar for J.Killa

In my program, I have to input a word and then a character. The program will tell me how many times does the character appear in the word...my problem is that I have to find this character with the find(str,ind)...I know the ind is the index and can be manipulated …

Software Development c++
Member Avatar for J.Killa
0
305

The End.