43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tomtetlaw

Whenever I run this code, it always returns an empty list, can someone tell me why this is happening? [code=python] ## Written by Tom Tetlaw ## Copyright (c) 2009 ## Written in IDLE<www.python.org> import sys, os import re sys.path.append('E:/Tom's Personal Project/engine') import shared.useful.Useful import shared.charactors ##TODO: ## Make the Monster …

Software Development python
Member Avatar for shadwickman
0
212
Member Avatar for yun

I want to know that how many Student class objects in a file. plz help me out. Below is a class of Students and 2 function for read and write object in a file, in read function [code] while(in.eof()!= 1){ in.read((char *)&st,sizeof(st)); st.showData(); } [/code] st.showData(); always show the last …

Software Development c++ file-stream ios
Member Avatar for kvprajapati
0
461
Member Avatar for Paua

Hi, I hope some-one can help. I am trying to create a mobile application that uses merge replication. I am having problems synchronising CE db to coporate db. I have had major trouble setting up my laptop for this, and have been unable to fix my final error. What I'm …

Software Development windows-server windows-vista
Member Avatar for Paua
0
171
Member Avatar for gretty

Hi I am learning windows programming in C++ . I just did a tutorial learning simply making a window appear & I am surprised by the all the things necessary to make a window appear. Maybe its just the tutorial that is too complicated with unecessary code. Is all this …

Software Development c++
Member Avatar for gretty
0
114
Member Avatar for dzhugashvili

here is what I want to do: I want to read 104-character strings from a text file, one per line. I want to chop those strings in two, the first 32 characters being a string called schecksum and the last 72 characters being a string called sencdata. Then I want …

Software Development c++
Member Avatar for dzhugashvili
0
165
Member Avatar for mansour77

I am new to C# from java. In java I am able to use a decorator for a File object where I can have the file instance as a member variable and add the methods with the operations I need to perform on the file. This seems to be a …

Software Development
Member Avatar for mansour77
0
88
Member Avatar for aveek

i have written a program in which i am drawing using a mouse. however while drawing a new line the previous ones are still being shown. i have called repaint every time the mouse is moved. Can anyone please help.

Software Development java
Member Avatar for BestJewSinceJC
0
87
Member Avatar for joshmo

I have a code that calls a method, but after this call, any code after it is not executed....here is the method call skeleton [code=java] if(//some condition){ //some code myMethod(//some variables); //some code/*not executed*/ }[/code] the calling is done well but the code stays in that method i.e code following …

Software Development file-stream java
Member Avatar for joshmo
0
137
Member Avatar for nahmartin

I don't know how to solve this problem in my code voro.cpp(200): (col. 5) remark: LOOP WAS VECTORIZED voro.cpp(395): same problem voro.cpp(423): voro.cpp(427): I am using intel compiler 10.1 to compile my code the code works fine on dev C++ 4.9.9.2 and V C++ 2008 200 [CODE] for(j=0; j<3; j++) …

Software Development c++
Member Avatar for wildgoose
0
216
Member Avatar for Acegikmo

I don't get where to insert the code and such; I could really use some help with this. :) Here's my java file: (I removed irrelevant stuff) [code=java] package projectprojectile; import java.applet.*; import java.awt.*; import java.io.File; import java.util.Calendar; import java.util.LinkedList; import java.util.List; import javax.swing.JOptionPane; public class Main extends Applet implements …

Software Development java java-swing
Member Avatar for Acegikmo
0
471
Member Avatar for major_lost

I successfully created my own help file using the VB 4 help complier. Now I need the code to call my help from my program. Does anyone know how to do this?

Software Development visual-basic
Member Avatar for major_lost
0
75
Member Avatar for u8sand

I made a game, and my friend told me: It doesn't work on linux. I thought it was because when you use VK_SOMETHING that is a value that windows returns when that key is clicked. So... Is their a substitute that I could use, a different function or something that …

Software Development c++ operating-system
Member Avatar for tux4life
0
161
Member Avatar for yun

I m surprised and wanna know that how the compiler understand the sequence of how data was entered. as i didnt use any space any tab not a new line, how it can point to the original value from a single line..????????? find.txt contain the following line with out spaces …

Software Development c++ file-system ios
Member Avatar for Ancient Dragon
0
178
Member Avatar for sreeram01

hi, i have an exception nullreference was unhandled.herewith i have enclosed the code and what message i haved while executing. Imports System.IO Imports System.Net Imports System.Text Public Class Form1 Public Sub submitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submitButton.Click Dim Str As System.IO.Stream Dim srRead As System.IO.StreamReader Dim …

Software Development assembly vb.net visual-studio
Member Avatar for sreeram01
0
770
Member Avatar for PinoyDev

Good day.! How to get the last day of the current month and store it in a variable.? Thank you for giving time.?

Software Development visual-basic
Member Avatar for PinoyDev
0
300
Member Avatar for sravan953

Hey guys, I want some of your help.... How do I make a keylogging application in Python [I]without [/I]using pyHook? Any other module for that? I heard that learning about [I]threading [/I]will help...is it true? Thanks guys...

Software Development python
Member Avatar for scru
0
493
Member Avatar for ckaiser813

i'm suppose to write a program with two classes, the first class takes two numbers and adds them together. the second class has no methods but has an object called add2. this is what i got class Adder1 (object): number1 = int(input("Give me a number:")) number2 = int(input("Give me another …

Software Development python
Member Avatar for jlm699
0
126
Member Avatar for Jintu

[code=python] total = 0 max_score = -1 min_score = 100000000 total_numbers = 0 x = 0 y = 0 print("Enter a list of numbers, (Enter -1 to stop) ") print ("Press the enter key after entering each number") print ("End the list by entering -1") print () number = int(input("")) …

Software Development python
Member Avatar for vegaseat
0
141
Member Avatar for dude93

Hey, I'm not new to python but I wouldn't say I'm use to python either, I am very limited to what I can do, but I was wondering if anyone could give me some ideas for some simple programs that will teach me usefull things to learn. Thank you very …

Software Development python
Member Avatar for vegaseat
0
114
Member Avatar for tomtetlaw

Is there a different version if IDLE for Python 3.0(Python 300, Py3k)?? If there is, how do I download it?

Software Development python
Member Avatar for vegaseat
0
159
Member Avatar for sravan953

Can anybody gimme a link to a good msvcrt tutorial, because I want to learn getch() badly!

Software Development python
Member Avatar for vegaseat
0
131
Member Avatar for winmic

Hey all, I just recently got into wxpython for my job and I ran into a snag. When print previewing (using the demo code) there seems to be an insane amount of pages, yet only a few of them are viewable. So my questions are: 1) Why is there an …

Software Development printer python
Member Avatar for vegaseat
0
105
Member Avatar for sravan953

I wanted to make a Python prog just for fun, to get a pattern like: [CODE] * ** *** **** ***** ****** ******* ******** ********* **********[/CODE] So, basically, I started off by making a script to simply print [CODE] *****[/CODE] using a loop. Here's the code I used: [CODE]import time …

Software Development python
Member Avatar for vegaseat
0
96
Member Avatar for tomtetlaw

How do you specify a certain path for the import thing to import? such as [icode]import "E:\Tom's Personal Project\engine\shared.py"[/icode] Any help would be appreciated :)

Software Development python
Member Avatar for vegaseat
0
158
Member Avatar for poeticinsanity

I'm running a portion of code in a loop. It accesses a global variable only to print it, and that variable is never changed after it is set in the __init__. However, the first print statement occasionally will fail, but the second one does not. Any ideas as to why …

Software Development python
Member Avatar for vegaseat
0
106
Member Avatar for hughesadam_87

Hey guys, When using the glob import, I want it to scan all of the files in a directory, but not scan other directories in that directory. For example, say I am in a directory with the following files: [CODE]file, file1, file2, DIRECTORY1, DIRECTORY2[/CODE] When I use the glob command: …

Software Development python
Member Avatar for vegaseat
0
154
Member Avatar for C++ Obliviator

I just started with the class vector, but it didn't go so well. :( I tried this: [CODE]void Initialize() { int amount_of_char = 62; vector<char> char_table; for (int i = 97; i < 122+1; i++) // 97 -> 'a', 122 -> 'z' char_table[i] = char(i); for (int i = 65; …

Software Development c++
Member Avatar for C++ Obliviator
0
82
Member Avatar for serkan sendur

i have two cab files to install on pocket pc. after installing the second one, second one's shortcut appears twice in the programs. do you have any idea to fix this problem? thanks.

Software Development
Member Avatar for serkan sendur
0
87
Member Avatar for sravan953

I have made a Java prog which will accept a word and a sentence, and then prints the number of times the word occurs in the sentence... Here is my code: [CODE]class check_number_word { void check(String w, String s) { int l=s.length(),n=0,d=0; String s1=""; for(int j=1;j<l;j++) { s1=s.substring(d,j); if(s1.equalsIgnoreCase(w)) { …

Software Development java
Member Avatar for BestJewSinceJC
0
165
Member Avatar for BestJewSinceJC

What would be the best way to implement dynamic search? So, for example, given the words: the, then, behemoth, abchemto Typing in 'he' would return all of the above words since they all have he in them. Is the best way to do this using a Trie?

Software Development java
Member Avatar for BestJewSinceJC
0
375
Member Avatar for mypicturefaded

I have an add-in program that has several forms. When the program is done with one form, it automatically goes to the next method it needs. (Word add-in). My problem is this...When I hit cancel, I want it to stop all actions with-in my add-in. Right now, if I hit …

Software Development
Member Avatar for mypicturefaded
0
1K
Member Avatar for phillipdaw

I don't know how to describe this error so I just took a picture. The problem involves the rich text box and numericUpDowns displaying what is behind them when the form loads. Pic on Left is wrong pic on right is right. I was drawing my oscilloscope output directly onto …

Software Development
Member Avatar for phillipdaw
0
127
Member Avatar for daveofgv

Hello all, I have seen a couple threads on this site in ref to enabling and disabling buttons on different forms, however, I still can't get it right. I have went into the designer.cs and changed the button from private to public modifyer and placed [code] mainpage.adminpanelbtn.enabled == true; [/code] …

Software Development vb.net visual-studio
Member Avatar for sknake
0
1K
Member Avatar for lanepds

I have defined a variable in bash [code]$ MYDATESTAMP="2009-06-25 21:57:18"[/code] I would like to pass this to perl to perform a simple date conversion. If I enter the date manually it works. [code]$ perl -MDate::Parse -le'print str2time("2009-06-25 21:57:18");' $ 1245992238[/code] My attempts to pass the variable MYDATESTAMP into this command …

Software Development perl shell-scripting
Member Avatar for lanepds
0
937
Member Avatar for whiteyoh

Hi All, im trying to get an example to work on a main class passing variables to a class to then return the value. This is the method for variables to be passed too [code] import java.lang.Math; class CalcTest { private int area; public int getArea(int height, int width) { …

Software Development java
Member Avatar for PopeJareth
0
111
Member Avatar for serkan sendur

could you please tell me how can i create c++ rapi application?

Software Development c c# c++
Member Avatar for serkan sendur
0
258
Member Avatar for wasif005

i have problem with strings is that i read a string from file and save it into another string and then compare with the another string which user enter ....basically i am going to design a login system in which first administrator make your user name and u set a …

Software Development c++
Member Avatar for wasif005
0
120
Member Avatar for yun

Is there any better way to define PreviousDay Function??? plz let me know.. [code=cpp] enum weekdayT { Monday,Tuesday,Wednesday,Thrusday,Friday,Saturday,Sunday }; weekdayT NextDay(weekdayT day){ return weekdayT((day+1)%7); } weekdayT PreviousDay(weekdayT day){ if(day==0) return weekdayT(day+6); else return weekdayT((day-1)%7); } [/code]

Software Development c++
Member Avatar for csurfer
0
286
Member Avatar for Hiroshe

Warning, this post contains code for Euler problem 5. Try to solve it youself without looking at anyones code. Its alot more satisfying if you do it yourself. Hello, just found an interesting website called project euler. I managed to get to problem 5 without a too many problems. Anyways …

Software Development c
Member Avatar for iamthwee
0
116
Member Avatar for suretd

Hi All, I have to compile a servlet WebStocks.java. It does not compile in TextPad as it cannot locate the javax.servlet packages. I have done my homework, so I know, that the servlet package I am looking for is loaded in Tomcat in my directory: C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar I …

Member Avatar for suretd
0
174
Member Avatar for mOoEyThEcOw

So I was coding along working on another dll, I recompiled a dll containing the following code and suddenly my program was crashing, when i clicked the show info link on the 'send this report to Microsoft' dialog box, it said the dll which was throwing the error was msvcp90d.dll, …

Software Development c++ ios microsoft-access
Member Avatar for mOoEyThEcOw
1
106
Member Avatar for daveofgv

Hello all, I have a small problem that I would like to ask for help on. I appreciate anyone's reply. I have to convert a program of mine over to C#, however, I am new at C#. I know a good amount of VB.NET, but the C# language is a …

Software Development vb.net
Member Avatar for IdanS
0
141
Member Avatar for hjdaniel.sun

Hi, I want to use VB.NET to connect to sql server remotely and input and receive data from the server. Can anyone help me to do it? I really appreciate code example. Thank you very much!!

Software Development sql vb.net
Member Avatar for kvprajapati
0
307
Member Avatar for yun

i want to add a line at run time in title, but i m unable to do so.. in main() getline(-,-) is working fine but not in the below code, it simply skip it when i put values for Course Name and press enter it go to the next line …

Software Development c++ operating-system visual-studio
Member Avatar for pspwxp fan
0
231
Member Avatar for fernando82

Hi everyone! I'm desingning a database app... and need to fill a datagrid on runtime. I've checked some other post and the solution they propose are using: Set datagrid1.DataSource = rs But when i start the program the datagrid doesn't fill... i have put some textbox with references to the …

Software Development open-source visual-basic
Member Avatar for fernando82
0
314
Member Avatar for Debby0424

Why the functionality of a java based app with file access and file processing methods valuable for this type of business....? I believe that it is valuable because it allows the business to handle mutliple files from all over the wolrd and process them in a timely fashion. Say for …

Software Development java
Member Avatar for sillyboy
0
122
Member Avatar for iambinary

where does the print() subroutine, subprogram, or function exist? sure, you "call" it so it can return a value or result, but from where? from where do you "call" it? where does it exist? i don't understand!!

Software Development python
Member Avatar for vegaseat
0
116
Member Avatar for gislik

Hi, I'm new to both python and Wxpython so I was wondering if someone could help me with a problem I have. I made a button that runs the UpdateNebula function. the function takes a string called path but I haven't been able to find a way to have the …

Software Development python
Member Avatar for vegaseat
0
136
Member Avatar for ganesh_bala

I need to use huge data (10^100) in a Variable in C? How can i implement it? Double,float ranges are low.. Suggest me in this.. Thanks in advance!!

Software Development c
Member Avatar for Hiroshe
0
142
Member Avatar for hughesadam_87

Hey guys, A while ago, with your help, I was able to create a code which scans a data file for names, and when a new name is found, it appends it to a list. For each entry is the list, the code then opens a new file for each …

Software Development python
Member Avatar for jlm699
0
1K

The End.