43,549 Solved Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
![]() | 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 |
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 | |
[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 | |
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 | |
![]() | Can anybody gimme a link to a good msvcrt tutorial, because I want to learn getch() badly! Software Development python |
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 … | |
![]() | 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 |
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 | |
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 | |
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 | |
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++ | |
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 | |
![]() | 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 |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
could you please tell me how can i create c++ rapi application? | |
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++ | |
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++ | |
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 ![]() | |
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 … Software Development apache java java-jsp open-source operating-system session | |
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 | |
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 | |
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!! | |
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 | |
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 | |
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 | |
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 | |
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 |
The End.