132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for South

Note: I am fairly new to this but can't figure this problem out. I want to find the age of people as a question and for them to enter it themselves. The problem is, is when I want to subtract c - b it says error, because both of them …

Software Development python
Member Avatar for South
0
133
Member Avatar for flowerzink

Hello there people, I hope you can help me with this one. I'm having a very serious problem when using the Top() method of a stack, difined like this: [CODE]template<class T> T Stack<T>::Top() const {// Return top element. if (IsEmpty()) throw OutOfBounds(); // Top fails else return stack[top]; }[/CODE] and …

Software Development c++
Member Avatar for flowerzink
0
256
Member Avatar for RogerInHawaii

I have a panel object that contains a number of controls. I want to change the backColor of that panel whenever the user clicks either on one of the controls or on the panel itself. I suspect I need to detect that the panel "has focus", but I can't figure …

Software Development
Member Avatar for Momerath
0
150
Member Avatar for jkrueger

Hi Am trying to get my head around using with in some code which is putting 2 files together using random.choice. How do I prevent repeats with random.choice? [CODE]with open(name, "r") as f1: beginnings = [word.rstrip(" \n") for word in f1] with open("conjunct.txt", "r") as f2: endings = [word.rstrip(" \n") …

Software Development python
Member Avatar for jkrueger
0
258
Member Avatar for eman 22

how can I read a text file byte by byte?

Software Development c++
Member Avatar for NathanOliver
0
85
Member Avatar for gedas

hey, i have been trying to sign jar file in order to use my applet to connect to mysql database. i am using netbeans and i have been looking for the turorials how to sign jar file but all of them tend to skip steps and i am not sure …

Software Development java
Member Avatar for Ezzaral
0
106
Member Avatar for SeanC

Hi all, I'm currently trying to solve a problem with a JList. I've got an actionPerformed event applied to the JList (also tried the item updated event but it has the same effect), and whenever this event is fired, (i.e. the user makes a selection), something happens. Now, the problem …

Software Development java java-swing
Member Avatar for Ezzaral
0
406
Member Avatar for WigglesMcMuffin

Hey, I have trying to build a large hierarchical tree of all sorts of creatures in Python by using class inheritance. However I seem to have been halted before I can even get anywhere. I created my first base class: [CODE=python] class Creature(object): def __init__(self): self.hitPoints = 100 self.legs = …

Software Development python
Member Avatar for WigglesMcMuffin
0
187
Member Avatar for nory22

Am trying to make this program in c which draws the following [CODE]\\* * * \\** *** ** \\*** ***** *** \\***************[/CODE] if the user in puts 4.... ((need help)) i only want to use the nested for loop and the if else statements so please need help that's what …

Software Development c
Member Avatar for Narue
0
114
Member Avatar for osirus0830

I am currently attempting to teach myself C++ so I don't have the benefit of a prof or TA. The question at the end of the chapter that I'm working on wants me to create an array of structures and to initialize the array of structures using the new function. …

Software Development c++
Member Avatar for osirus0830
0
184
Member Avatar for ninjatalon

Today I was taught about virtual methods but got lost somewhere in the pointers. Here is an example [CODE] class Person { protected: string name; public: virtual string get_name() { return name; } }; class TFaculty:public Person { private: string title; public: virtual string get_name() { return title + " …

Software Development c++
Member Avatar for Fbody
0
143
Member Avatar for Mike Bishop

i have the following code which works fine where there is data in the table. when the table is empty and there is no data in the @Ctotal varible i get my error MessageBox.Show("Unable to get Claim Total") is there anyway i can ignore this if there isn't a value …

Software Development open-source sql vb.net
Member Avatar for Unhnd_Exception
0
88
Member Avatar for magravis

Hi! I am trying to make a program, where it opens a text file. If it reads, for instance the "UP and the 2 #s after" in the file, it will print, on the same line (with the data) a result of another #. for instance: (command, code, and code2 …

Software Development c++
Member Avatar for WaltP
0
118
Member Avatar for SMITA6076

I wrote the following method to get the current date for an invoice: [CODE] public String getDate() { DateFormat dateFormat = new SimpleDateFormat("MMMMMMMMM d, yyyy"); Date orderDate = new Date(); return dateFormat.format(orderDate); }[/CODE] but now I have to add two weeks (14 days) to that date (to get the expected …

Software Development java
Member Avatar for SMITA6076
0
922
Member Avatar for vineeth vs

is it not enough to declare the struct variables as shown?? getting error that some are undeclared pls help... insertion on a binary search tree....[CODE][/CODE] [CODE]#include<stdio.h> #include<stdlib.h> struct node { int data; struct node *lchild,*rchild; }*ptr,*new; void insert(int item,struct node *root) { ptr=root; while(ptr!=NULL) { if(item>ptr->data) { if(ptr->rchild!=NULL) insert(item,rchild); else …

Software Development c
Member Avatar for Narue
0
246
Member Avatar for Kath_Fish

hey..now i want to split my output to vertical form.But my output got no any space.So how should i split it to vertical form. output now: 212132134214 i want split to 2 1 2 1 3 2 1 3 4 2 1 4 Hope someone can help me...thanks ya...

Software Development
Member Avatar for Momerath
0
91
Member Avatar for darkelflemurian

Hello everyone, I have the following situation: The computer i use to develop sometimes is getting very slow and the ram memory goes to 100%. I want to know if using visual basic 6, or visual basic net, or visual basic script, there is a way to clean ram memory, …

Software Development vb.net visual-basic
Member Avatar for jlego
0
112
Member Avatar for Clinton Portis

I was just wondering if ya'll knew of any dictionary libraries that I could include in one of my c++ projects. A quick google & forum search have offered solutions in other languages, such as python and c# but have seen nothing specific for c++. Thanks in advance. -d.w.

Software Development c++
Member Avatar for Narue
0
110
Member Avatar for feedz87

Private Sub MDIForm_Load() show Me.BackColor = &H80000005 HideTBButton "", True frmShortcuts.show CrystalReport0.Connect = "westranet.westham.com.my" & ";UID=sa;PWD=123;DSQ=WMS_TEST;" **Error point on Connect

Software Development visual-basic
Member Avatar for samsylvestertty
0
247
Member Avatar for Swift2

Currently I have this code: [CODE]if any(w in itemname for w in ("Password","User","Server")): entry.setvalue(myutils.password_recover(itemvalue)) [/CODE] And I want "E-mail To" to also be a string next to "Server" .. However, if I add "To" then it picks up EVERYTHING that has the letters 'to' . If I add "E-mail To" …

Software Development python
Member Avatar for Swift2
0
84
Member Avatar for lu25

i have a file that contains hexadecimal values and i want to convert them to int how do u do that exactly?? [CODE] import java.util.Scanner; import java.io.File; import java.io.IOException; public class CacheSimulation { public static void main(String args[]) throws IOException { int hexAdd [] = new int [32]; //array to …

Software Development java
Member Avatar for Slyvr
0
180
Member Avatar for Robert955

Hello, Im trying to install XNA 3.1, I have visual studio 2008 professional and I really need 3.1 (not 3.0 or 4.0) also I cant use visual studio 2010. Ive uploaded all the logs here: [url]http://cid-598c7218de9e79e1.skydrive.live.com/redir.aspx?resid=598C7218DE9E79E1!123[/url] Thanks in advance! Robert.

Software Development visual-studio
Member Avatar for Robert955
0
325
Member Avatar for caltech

Here are my error messages: [INDENT]! "printStock(int, int)", referenced from: _main in main.o _main in main.o ! "Sales(int, int, double)", referenced from: _main in main.o Symbol(s) not found[/INDENT] Here is my code: [CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> using namespace std; void printStock(int,int); double Sales(int,int,double); int main () …

Software Development c++
Member Avatar for caltech
0
131
Member Avatar for ram.patil

1. .......Algorithm to find the first n Hardy-Ramanujan numbers.... since 1729 is the least ..... I request to post the solution for this............

Software Development algorithm python
Member Avatar for TrustyTony
0
2K
Member Avatar for Ksadler818

Below is my home work problem. I don't want the answer, I am just looking for an example of how I can count the occurance of each number in the array numbers and assign that value to the count array. Thanks for your help!!!!!! *---------------------------------------… * Sample Output: *** start …

Software Development c c# c++
Member Avatar for WaltP
0
195
Member Avatar for atticusr5

I am not sure what I have done wrong. Essentially I am searching an array for colors. If there is no input, on button click you get an error. If the color does not exist you get an error. If it exists then it tells you. The latter two events …

Software Development vb.net
Member Avatar for abhay1234
0
69
Member Avatar for nigelv1

Please help. Im having trouble displaying the checkbox's text in the listview form. It only display's the text of the 1st checkbox. I cant seem to display the remaining checkbox.text. It only display's the 1st checkbox in my ListView form. I have another form for ListView.vb Here is the code: …

Software Development listview vb.net
Member Avatar for codeorder
0
105
Member Avatar for lxXTaCoXxl

Okay, I have a menu Item that I only want to be enabled and visible if the user activates it through encryption key. My menu item is on a separate form than the encryption analysis and I can't figure out why it won't enable the item. It will pop up …

Software Development encryption
Member Avatar for lxXTaCoXxl
0
85
Member Avatar for PaulBird

[IMG]http://i1187.photobucket.com/albums/z394/crazythang/photo-1.jpg[/IMG] i try to compile a simple c++ hello world, and i get this, PLZ HELP i compile with g++...

Software Development c++
Member Avatar for rubberman
0
308
Member Avatar for iamthesgt

I am working on a VideoServer for my company, and in making the cgi files for the Web interface, I came across the following error: " invalid conversion from ‘int’ to ‘VideoOutputMode‘ " This was from line 4 of the below code, in the WebInterface file: [CODE]form_iterator vout_mode = formData.getElement("DisplaySettingsVOutMode"); …

Software Development c++ client-server video
Member Avatar for iamthesgt
0
3K
Member Avatar for manofhouse

Trying to convert from binary to hex but for some reason it keeps bringing up the error instead of the output [CODE] #include<iostream> #include<string> #include<cmath> using namespace std; void BintoHex (int[]); bool CheckBin (int[], bool); void Hexadecimal (int[]); string hexadecimal; void main() { int bin[4]; int binary; bool reentry = …

Software Development c c++
Member Avatar for Narue
0
234
Member Avatar for lauw0203

Hello :) I'm creating a license plate recognition system for my coursework at University. We need to use Binary trees, which I've done but the information needs to be stored in a file to read and write to. I've created some text files with XML tags in for Cars, Lorries, …

Software Development c++ programming-construct visual-studio
Member Avatar for lauw0203
0
183
Member Avatar for Aepexx

So what I'm aiming for here is to take the user's input as float and write code to split up that input into individual digits and use an array. How would I go about doing this? Here is what my code looks like currently: [CODE]import java.util.Scanner; public class Asn8 { …

Software Development java
Member Avatar for FRGT/10
0
230
Member Avatar for iainiow

Hi, I have written a polling service that checks a directory for new files & then distributes them to new locations. The service is so quick, that no soon as the file has arrived in the watched folder, it is moved in to its new location. One concern that I …

Software Development file-system
Member Avatar for iainiow
0
79
Member Avatar for eldaerys

Iam doing a sample project for school and i CHOSE Tic Tac toe. Could anyone show me a sample program of it becuase i have no idea where to start. And do I use a picture box to draw the lines?

Software Development vb.net
Member Avatar for Luc001
0
99
Member Avatar for emreozpalamutcu

I found this code on the internet which is an good keylogger only issue it always types capitals how to make the keylogger recognise if its capital or not? ///////////////////////////////////////////////////////////////////////////////////////// [CODE]#include <iostream> using namespace std; #include <windows.h> #include <winuser.h> int Save (int key_stroke, char *file); void Stealth(); int main() { …

Software Development c++
Member Avatar for Narue
0
133
Member Avatar for kacieh80

My boss says we are going to be creating "some cross platform windows type apps that will be used for utilities and some user things" and he is interested in using Python. I have used Python and love it, but only with a web framework and low level scripting. I …

Software Development gui python
Member Avatar for e-papa
0
407
Member Avatar for MarvelWolverine

Hi, I am writing a program to solve the 8puzzle, but for some reason i am having more difficulty with the structure than the algorithm.... I have two classes, a tree and node class. My main problem is to put the nodes in an array in the tree class. Second, …

Software Development algorithm c++ oop
Member Avatar for Narue
0
315
Member Avatar for ashley11
Member Avatar for ashley11
0
94
Member Avatar for e-papa

Hi there guys, i'm just learning python and have been finding it interesting, but i've been finding it hard to understand classes and objects. Please is there a very explanatory tutorial or can you be of help, looking forward to your replies.

Software Development python
Member Avatar for e-papa
0
359
Member Avatar for Arjun_Sarankulu

I have two collection(array list) [CODE] foreach (string templine1 in arrline1)//arrline1 is the first collection { int counti = 0 foreach (string templine1 in arrline1)//arrline2 is the second collection { int countj = 0 } arrline1.RemoveAt(countj); arrline1.RemoveAt(counti); } But giving error [B]Cannot Modify Collection[/B] [/CODE] I am spliting the line …

Software Development
Member Avatar for Saikalyankumar
0
73
Member Avatar for shakisparki

void * realloc(void*ptr , size_t size) is the second argument supposed to be the number of bytes to be allocated, e.g 5 * sizeof(int) or just the number of elements needed e.g 5 or 10

Software Development c
Member Avatar for Narue
0
113
Member Avatar for nigelv1

Guys help please. I have a form that has a check box. And a form containing a list view. How can I display multiple check box in the list view? Sorry newbie.

Software Development display visual-basic
Member Avatar for debasisdas
0
157
Member Avatar for vho123

I am having trouble trying to implement parameter entities so that i can repeat text multiple times within the DTD. example XML code: [CODE] <accounts> <luke> <shipping_address> <address></address> <street></street> <city></city> <postcode></postcode> </shipping_address> </luke> <angie> <billing_address> <address></address> <street></street> <city></city> <postcode></postcode> </billing_address> </angie> </accounts> [/CODE] The address, street, city, postcode elements both …

Software Development xml
Member Avatar for xml_looser
0
159
Member Avatar for karthiyayiniyp

how to update the different text in vb to the same field in oracle my code is below [CODE]If ar.BOF = False Then ar.MoveFirst ar.AddNew ar.Fields(0) = registernumber1.Text ar.Fields(1) = name1.Text ar.Fields(2) = status1.Text ar.Fields(3) = Form9.batch.Text ar.Fields(4) = Form9.year.Text ar.Fields(5) = Form9.department.Text ar.Fields(6) = Form9.semester.Text ar.Fields(7) = Form9.section.Text ar.Fields(8) …

Software Development oracle visual-basic
Member Avatar for debasisdas
0
137
Member Avatar for Saikalyankumar

The Password in default in every text box will appear like ............... in the Textbox instead of, I want to make it to be changed like ******************** in a Web Application. Can any one suggest me how to change the Style of the Password Char.

Software Development
Member Avatar for srvstv.prnc
0
178
Member Avatar for gladtoplay5

I am currently working on a program that takes one measurement of a circle and then gives the rest although i came across a problem while trying to make it loop back if you input an invalid number and my compiler keeps saying i have an error with were my …

Software Development c c# c++
Member Avatar for Fbody
0
341
Member Avatar for stan_l

This is my first post and my first experience with Python. My environment is Windows XP/Win7. I have installed ActivePython 2.7, extensions and other packages and run many test scripts. I was especially interested that a .py file could include code to self-register as a COM object, and according to …

Software Development python visual-basic visual-studio
Member Avatar for stan_l
0
308
Member Avatar for karthiyayiniyp

hi, i need to execute a query for each button in VB. example to insert,delete etc.... please suggest quick reply

Software Development visual-basic
Member Avatar for debasisdas
0
53
Member Avatar for tomtetlaw

For some reason my resource file isn't getting compiled when I compile in VC++ 2010 express. Even when I make changes to the .rc file. This is the contents of it: [code=c++] #include <windows.h> #include <commctrl.h> #include "resource.h" LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US IDD_ASSERT DIALOGEX 150, 100, 180, 180 STYLE DS_MODALFRAME | …

Software Development c++
Member Avatar for tomtetlaw
0
207

The End.