132,726 Archived Topics
Remove Filter ![]() | |
I am fairly new to python.I am currently using python scripting.My problem is,I have some txt files from which i need to extract only words(characters) and remove digits,new lines and special characters(like ----, []) and store it in a another txt file with a different name. Please help. Software Development python | |
does anyone know how to randomize a frame, the whole frame including the textbox and labels in it...i tried a code but didn't work. i copied the frame and assigned it as index (#)...and also the textbox and labels... Software Development visual-basic | |
How to make c++ fullscreen (sort of) in vista :- [URL="http://img167.imageshack.us/img167/4783/45870184ss2.jpg"]http://img167.imageshack.us/img167/4783/45870184ss2.jpg[/URL] Your screen should look like this :- [URL="http://img518.imageshack.us/img518/6136/sshot3td7.png"]http://img518.imageshack.us/img518/6136/sshot3td7.png[/URL] | |
Hey, Im modifying a program i wrote in vb2005 [express] in vb 2008. My computer runs vista 64bit and ive had problems with 2008 where the program wouldnt run on a xp x86 computer. I ended up having to write that program in c++. Has anyone had that problem before … Software Development visual-basic | |
I am starting to develop a calculator in C++ which accepts the expression in the form: 2+3 or 2/3 ,etc. ( for the time being, only two operands and one operator) Once i get that done, I will begin the process of continuely expanding it :) The problem I am … Software Development c++ | |
Hi. I'm new user in ubuntu and I like very much the glade interface designer. I designed my first app and tryed to run it from python with this script: [CODE] #!/usr/bin/env python import sys import pygtk import gtk import gtk.glade class MainWindow: """ This is the main window """ … Software Development gui python ubuntu user-interface xml | |
i have this code to check and make sure that I wont be inserting duplicate records into my table. i take whatever is in the dr variable and if it is 0 then I go ahead, if not I don't do anything with the variables, I am using Excel, and … Software Development open-source vb.net | |
I want to call a perl script from inside another perl script, but everytime I run it, a cmd window pops up, even if I close all the I/O handles. Is there any way to avoid the cmd window to popup in perl? I want to avoid annoying windows to … Software Development perl | |
I am working on an application that has a menu window with 2 buttons for menu options. I would like the application to function in the following way. When a menu option button is clicked, the menu window disappears and the window for the menu selection appears. When the close … | |
I've created a playing card descendent of TCustomControl and I want it to have rounded corners. The card is displayed in a Paint procedure where I determine the bitmap and then use a Canvas.Draw(0, 0, FCardBMP); This approach works well except - no rounded corners. Setting FCardBMP.Transparent := true; doesn't … Software Development pascal | |
I need help in writing a C++ class definition called SIMPLEST_GRADES which will evaluate the students performance. It will take the three exams of four students and takes its average of those three exams. Can you tell me what I can do to fix this program or do I have … | |
Hi, Iam look looking some standalone python package for both in windows and linux. In windows py2exe tool serving my purpose,is there any similar tool i can find in linux.? Though most of linux machine having python installation,but some customized linux machines are not having python.If some body suggest me … Software Development python | |
Hi all, I am writing my first servlet, and facing some troubles. I have my servlet: [code] package com.example.servlet; // other imports... public class Hello extends HttpServlet{ public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ res.setContentType("text/html"); PrintWriter out = res.getWriter(); String name = req.getParameter("name"); out.println("<HTML>"); out.println("<HEAD><TITLE>Hello, " + name … | |
i would like to copy the contents of a byte array to a long variable. my code looks like this: [code] long key = 0; for (i = 0; i < 8; i++) { key <<= 8; key |= (long)(buffer[i]); //<- this line causes the problem }[/code] however, when i … Software Development c++ | |
Hi everyone, can anybody give a code example of how to manipulate CD/DVD ROMs of a machine using VB.Net 2005; .Net Framework 2.0 (e.g. determining which one of my local disk drives is a CD/DVD ROM and especially how to EJECT/CLOSE the CD/DVD ROMs). Any example will be of great … Software Development vb.net | |
I'm trying to make a program that asks the user what he/she wants to do, but when invalid inputs are entered, the program does not tell the user right away. Also, the sentinel value does not work. Thanks. [code] #include <stdio.h> int main () { int selection; float sum, difference, … Software Development c | |
An example of a function definition in C language is given below: char fun (int a, float b, int c) { /* body */ … } Assuming that the only types allowed are char, int, float (no arrays, no pointers, etc.), write a grammar for function headers, i.e., the portion … Software Development c++ | |
Hi to everyone. It's my first post here and I'd like to get some help. A friend of mine has 2 (simple for you) problems to solve and she doesn't have a clue (and nether do I). Prob 1.) Write a code in C++ (visual) that reads from the keyboard … Software Development c++ | |
Hello everyone.. I need some basic help in the monitoring of a website.. Can anyone out here help me with the retrieving of the URL of a website..?? Thanks a lot in advance.. Software Development java | |
I am using this code inside a button. When clicking the button I browerDialog appears. I can now browe to a folder and press OK. The Directory will be inserted in the textBox1. What I now want to do is this: Inside of this Folder I have a .txt File. … Software Development c++ | |
'javac' is not recognized as an internal or external command, operable program or batch file. Software Development java | |
im trying to create a 2D array using a random generator but the compiler keeps giving me compiling error no matter how i modify the calling function [CODE]#include <iostream> #include <ctime> using namespace std; const int MAX = 4; void constructArray (int a [][MAX], int); int main() { int a … Software Development c++ | |
I have downloaded the visual C++ express 2005.Actually i have no experience with the visual C++, i used to develop with Visual Basic earlier but i don't know some of the following thing: 1. How can i enable the line numbers in my source code? 2. Where can i find … Software Development c++ open-source visual-basic | |
anyone can help to store keystokes in list box in vb 6.0 used in my software Software Development visual-basic | |
Hi, I am having problem in compiling the following piece of simple code(it didn't work in any of the compilers VC++,GCC etc) [code] #include<iostream> using namespace std; int main() { while((char c = cin.get()) != 'q') cout<<endl<<"Character printed = "<<c<<endl; } [/code] ERRORS: expected primary-expression before "char" expected `)' before … Software Development c++ | |
can anyone help me how to create or to make my program a self running and don.t not be open to run. Software Development visual-basic | |
Hello everyone! I have a specific C question that I have not been able to solve. How do you count the number of particular numbers inside an integer variable? For example: int variable; The user inputs 22222 into the variable. The program displays "You entered five twos". How do you … Software Development c | |
Hi, I am using Delphi 7 personal along with Indy 10. I have a program that uploads a 7 mb .dat file to a remote server thru ftp. I have my code wrapped into a try/except but for some reason and at some point, the transfer fails, and i get … | |
Hi to all the posters. I have come up with new problem using crimson parser to parse an xml file. I am creating xml file using crimson parser and DOM object. I have created a xml file using xmldocument object and i am setting nodes value according to tag name … | |
Hi I am a new user of python and I want to use command.getoutput as follows: val="/usr1/test/hello/ " date1 =commands.getoutput('ls -lrt $val | grep "LATEST" | cut -d ">" -f2 | tr -d " "') My problem is that I want to use "/usr1/test/hello/ " inside the command using variable … Software Development python | |
Hi guys, quick question for you. [code]for (i = 0; i < NUM_EMPS; i++) { cout << "First and Last Name: "; cin.getline( names[i], 31 ); for (index = 0; index < NUM_MONTHS; index++) { cout << "Hours worked in "; cout << months[index]; cout << ": "; cin >> … Software Development c++ | |
Hello guys, I wanna write a program that count for me the number of each letter I have in a text file then I want to cout the words and count the number of repetition of each word. I was able to do it except for counting the repetition And … Software Development c++ | |
import javax.swing.JOptionPane; public class cafe2 { public static void main(String args[]) { String name,ch; double price = 0.00; double sum=0.00; int cho=0; name=JOptionPane.showInputDialog("Enter Customer Name:"); do{ ch=JOptionPane.showInputDialog( " Food Name "+ "\n-----------------------------------------------------"+ "\n1) French Fries $ 3.50"+ "\n2) Fish and Chips $ 5.50"+ "\n3) Goat Cheese Pizza $20.70"+ "\n4) Chicken … Software Development java java-swing | |
ok i have an assignement the assignment is to make a menu with these selection Write a program that displays a menu with the following choices to the user. A - Find the largest # with a known quantity of numbers B - Find the smallest # with an unknown … Software Development c++ | |
Hello, I was creating a game in java and a thought came to mind, would it be better to dump it all and start from scratch with C++. So my question is, with all the cons I've listed and all the other issues that you know, what am I better … | |
It seems that the command Shell() in VB.NET is becoming obsolete because of its out-datedness and other reasons, but i cant find a way i can still use a command line in my applications, Because I'm not that experienced with C#, I still don't know some of the basics, is … Software Development vb.net | |
Hi! I'm just at the the research and design stage for my final college project, I'm just wondering what some more experienced programmers think is the best way to get started with simple graphics and sound. The program is really just going to be a scripting language (not sure if … Software Development c++ | |
Hi Friends, I'm afraid I need help again.... I wrote this program, and it won't compile...and now I have to add to it. Here is the program: public class InventoryProgram1App { /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println("InventoryProgram1App"); { {public class … Software Development java | |
can anyone teach me how to correct my code....when I debug this the 12th line or the sndPlaySound("shot.wav", SND_ASYNC) line shows an error "A call to PInvoke function 'StartForm!StartForm.StartForm::sndPlaySound' has unbalanced the stack. This is likely because the managed PInvoke ".Please help me with this one this is a requirement … Software Development vb.net | |
i get to down as far as the tax equation and it won't run, any ideas?? from graphics import * def main(): win=GraphWin("Taxation Calculator",300,240) win.setCoords(0.0,0.0,3.0,4.0) #draw interactive entry boxes Text(Point(1,3),"Salary: ").draw(win) input=Entry(Point(2,3),5) input.setText("0000") Output=Text(Point(2,1)," ") Output.draw(win) Button=Text(Point(1.5,2.0), "Calculate Tax") Button.draw(win) Rectangle(Point(1,1.5),Point(2,2.5)).draw(win) #wait for mouse click win.getMouse() #convert Tax amount= eval(input.getText()) … Software Development gui pay-per-click python | |
I bought the book C++ Primer Plus [url]http://www.amazon.com/C%2B%2B-Primer-Plus-Stephen-Prata/dp/0672326973/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1202680271&sr=8-1[/url] because i plan on learning the C++ language, but i can't really understand what it is trying to say when it is suggesting compilers. Can anyone give their feedback on the best compilers for beginners? And also, C++ is the best place … Software Development c++ | |
Hi to all viewers and members! can anybody help me or gave me any idea about parallel port interfacing that accepts input from a switch instead of keyboard and that input will be displayed in a seven segment.just a sample c program that has an input(inport) and ouput(outport) through the … Software Development c | |
I'm planning on creating a simple password manager program. For the program I'm going to have an encrypted file which will the store the user's passwords. What is the most secure and best encryption module? cheers :) Software Development encryption python | |
Hi, i am writing a program to manipulate polynomials. however, i am having problems with my root function. this function is meant to find the real roots of a polynomial using newton-raphson formula. please help me. [code] #include<iostream> #include <sstream> using namespace std; //A class to handle a list node … Software Development c++ linked-list ![]() | |
im trying to use the .get() method to get all the text from a tkinter text widget. the code im using is [ICODE]text = root.textwidget.get(1,end)[/ICODE] i get the error "name error: global name 'end' is not defined" is there a word specficly for the end of the text or am … | |
hi I have to made a program which read all blocks of hard disk and after reading give me hard disk capacity and its bad block i C language. Kindly tell me how can i read hard disk blocks and how i can know this block is bad or ok … Software Development c | |
Can one of you geniuses out there help me please. They say that compiling and running hello world is the hardest bit. They're right. I've got debian on my laptop. I read a so-called tutorial that reccomended gcc hw.c OK. So I get a file called a.out. Allegedly an executable. … | |
This is supposed to return the index of the first empty string in the array using recursion. Instead of returning the index of the FIRST empty string, this function I wrote returns the index of the LAST empty string. I have no idea how to search from the beginning of … Software Development c++ | |
hello ive been working on this project for the past couple of days, and i keep on getting the same error. it tells me that the term will not evaluate a function with two arguments. please help me! thanks [CODE]#include <iostream> #include <cmath> using namespace std; int main () { … Software Development c++ | |
hi, i wrote this program on polynomials and how to manipulate them. however, i am having a problem with my eval function. it is supposed to evaluate the polynomial at a particular number. however, whenever i call a.eval(2.0), i keep getting polynomial a. please help me look into this. [code] … Software Development c++ |
The End.