132,726 Archived Topics
Remove Filter ![]() | |
This is probably an easy problem to solve but I'm having a bit of difficulty. The error is UnboundLocalError: local: "switch" and that's all the error says. The line refers to the line switch = - switch in the following code: [CODE] boundary = game.getBoundary() game.setBackground(java.awt.Color.black) level = 1 maxX … Software Development python | |
I have to read in values from a file and output only the ones that past the test. However, I'm not sure how to compare a few of them. I need to skip the word if it ends with '\n', '\t', or a space. So, how exactly would you handle … Software Development c++ | |
This program is all working except when a user chooses the same file as before it needs to show both orders in the file but it is only showing the latest one. [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /** * Program that allows user to select a … Software Development apple file-system java java-swing | |
I have to make a program that reads in words, deletes certain ones, stores ones that pass, and then count the total. He didn't exactly specify how the words would be coming it, but I'm assuming that if a space at the end of the word is bad, that it's … Software Development c++ | |
How would I delete one char from a string? [CODE]string aWord = "question?"; while(aWord[i]) { if(isalpha(aWord[i]))printf ("character %c is alphabetic\n",aWord[i]); else delete[i]aWord; i++; }[/CODE] Software Development c++ | |
Hi, i am developing a project on " Animation Data Structures Intelligent Teaching System". I am familiar with Core Java. I want to know what are the Concepts that i need to learn and that will help me in my project. Software Development java | |
I want to write a program which take input and save the poistions of the array elements in another array. let if i enter an array A[0]= 4 A[1]=1 A[2]=2 A[3]=3 now the output array will hold 1 2 3 0 i-e the posistions of the array elements starting from … Software Development c++ | |
Private Sub Command1_Click() If Combo1.Text = "" Then MsgBox "Please Choose Supplier Code", vbInformation Combo1.SetFocus Exit Sub End If If Combo2.Text = "" Then MsgBox "Please Choose Product Code", vbInformation Combo2.SetFocus Exit Sub End If If Text1.Text = "" Then MsgBox "Please Input the Quantity", vbInformation Text1.SetFocus Exit Sub End … Software Development visual-basic | |
Hi all I am working on application which displays text on the screen as one word of a line at a time. Now words are changing at a set speed of 240ms using ( system.threading.thread.sleep).But i want change words on the screen using left and right arrow key so that … Software Development vb.net | |
I wnt to know about a code for hide a folder for windows xp.but i know to hide a folder with set attributes.if i hide a folder with using a attribute it will show in folder option.if someone changes folder option as show system folders and files then user can … Software Development visual-basic | |
![]() | Welcome to the temporary page for the official Nightmare Productions C++ Contest. What do we hope to achieve by holding such a contest? We are attempting to spread the knowledge of C++ and hopefully get others interested in it. The contest description is below. In order to enter the contest, … Software Development c++ objective-c ![]() |
[B][U]Introduction[/U][/B] You are going to design a program which will print out each line of its input that contains a specified pattern or string of characters. For example, searching for the pattern "Humpty" in an input text file that contains the following: In Sixteen Hundred and Forty-Eight When England suffered … Software Development c++ | |
I've been having more trouble with my lottery program. At the moment I've got the program to take in the users numbers (basically any numbers between 0-49 they want for the lottery draw). These are stored in the array 'user'. I also have the random numbers created by the program … Software Development pascal | |
The code is pretty easy to understand what I am doing. You basically pick a number 1-4 and it will do either addition, subtraction, multiplication, or division. What I need it to do is after they do a problem it loops back and lets them do it again, until they … Software Development c++ | |
Hey people , i am trying to send an email, but for some reason its just not sending ... please help me out , here's my code [code] // trying this block of code try { // Looping through the rows in the datatable foreach (DataRow Row in dt.Rows) { … Software Development | |
I need to add student name and grade to a file. This is my section of code so far [code=VB] Private Sub addStudentNameGrade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addStudentNameGrade.Click Dim swrStreamWriter As IO.StreamWriter swrStreamWriter = IO.File.AppendText(path & "studentgrade.txt") swrStreamWriter.WriteLine(Me.textStudent.Text, " ", Me.textGrade.Text) 'swrStreamWriter.WriteLine(Me.textGrade.Text) swrStreamWriter.Close() End Sub [/code] … Software Development file-system vb.net | |
Hi friends, Please someone how to create a dll in vb. net class library , how to register it and how to call it using sp_oacreate. Pls provide some sample codes. | |
Hello everyone. I've just signed up to 1 years hosting with Uk based Fasthosts. They provide support for Python scripting and a free 150MB MySQL database on their Linux package. My problem is that they don't seem to have the MySQLdb module installed. Is there any way I can get … | |
Dear Friends. Q:The problem in my coding is: I want to remove items from the string array if if does match with datareader field called time1 whose number in the Sql database is 4. Would u pls tell me whats wrong with my coding .? Its urgent.. With Regards, Vinit. … Software Development vb.net | |
#include<conio.h> #include<stdio.h> #include<fstream.h> #include<graphics.h> #include<dos.h> #include<time.h> #include<STDLIB.H> // FOR EXIT #define ESC 0x1b /* Define the escape key */ void Pause(void) { int c; c = getch(); /* Read a character from kbd */ if( ESC == c ){ /* Does user wish to leave? */ exit( 1 ); /* … Software Development c++ file-stream os-x | |
Hi I have declared the class in the header file class Test{ public: // Constructor Test(); // Variables IClassFact *m_pClassFact; }; But I am getting an error error C2143: syntax error : missing ';' before '*' And also I am getting this error error C4430: missing type specifier - int … Software Development c++ | |
Have made DSN, Now i want to make connect to database.. want a vb script for this. have to fetch data from data base Somebody help please. Software Development sql visual-basic | |
I am work with sybase Adaptive Server Enterprise (ASE) 12.5 I wanna connect sybase from visual basic 6 I found this connection string: Provider=Sybase.ASEOLEDBProvider.2;Server Name=myASEserver;Server Port Address=5000;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword; but i don not have the provider Sybase.ASEOLEDBProvider.2 I want this sostware driver and know how to connect sybase please help … Software Development visual-basic | |
Private Sub Command1_Click() Set rs1 = DB.OpenRecordset("Table1", dbOpenDynaset) If rs1.EOF = True Then MsgBox "Record is Empty" Else MsgBox "Got IT" rs1.MoveLast If Not rs1.EOF Then rs1.MoveFirst Do While Not rs1.EOF If rs1!Name <> "" And rs1!age <> "" Then Set rs2 = DB.OpenRecordset("SELECT Name FROM Table2 WHERE Name like … Software Development visual-basic | |
Okay, I'm making a program that puts six word sequences into a hash table by taking the ascii value of each letter of the word and adding it to the sum, and multiplying it by a value, such as; num = num + int(firstName[nq])*(nq+1); in a loop. Now, I have … Software Development c++ | |
Hello, I have a group of regular expressions <Element Generation at d66238> <Element Vitals at d662b0> <Element Network at d66670> <Element Hardware at d66eb8> <Element Memory at d6ac88> <Element Swap at d6e0a8> <Element Swapdevices at d6e238> <Element FileSystem at d6e5d0> <Element Vitals at d662b0> i need to get the word … Software Development hardware-swap python | |
Hi i live in the new york area and does anyone know where in new york or have a look up resource on where to find java programming courses? anywhere to teach java during summer or during winter any place to look up information would be helpful..i tried google but … Software Development java | |
[code]public Card getCard(int position) { /** * Gets the card from the specified position in the hand. * Null is returned if the position isn't in the hand. */ if(position>=0 && position < hand.size()) return (Card)hand.removeElementAt(position); else return null; }[/code] error message: return (Card)hand.removeElementAt(position); is highlighted, "inconvertible types" Software Development java | |
i am designing a code that will calculate tomorrows date but there is some problem with the code, when i enter year = 2008 or anyother month =12 day = 31 it gives tmorrows date as 1/2/2008 please help and tell me if i can do more improvements thanks [CODE]#include<conio.h> … Software Development c | |
Hello [B]How to send a file from server to client. [/B] I am a bigger in C with unix, i am trying to read a file from server and display it in client , i got a separate code to read a file , and i tried to connect the … Software Development c client-server unix | |
If you wanted to run bash shell commands inside of a script (python), how would you do it; beginner here :) Thanks for the input, RHCE Software Development python | |
So I've been trying to see if I can write a Facebook app, that uses Perl on my side, and interfaces with people who install the app on their Facebook page. But it's so hard to see if this exists! The Facebook dox, well I am lazy, but they don't … Software Development perl | |
I need to be able to calculate the size in pixels of a given piece of text from the font name and point size. Google has not turned up anything I can use as yet (or maybe understand). Clues anyone? Bob Software Development c | |
Hello Everyone, I am a total beginner in UNIX/Shell script. I am in the process of creating a huge script for a spellchecker program. What it does is spellcheck files and throws output in a temporary file. What I need help in is forming a [B]for loop [/B]where it will … Software Development shell-scripting unix | |
I am working on a problem and trying to read a data and creating a chart the problem is when ever I read any thing from file it add \n or \r in with it but I change the type of digital data but I dont know what to do … Software Development python | |
heloo can anyone plz tell me how use functions like power and setw.... in programmes... thanku Software Development c++ | |
hey i have to make a program using win32 c++ and i need to get my hands on some information from the registry which i cannot find. the problem is i need to find information about the graphic card the pc is using and this software has 2 be ported … Software Development c++ | |
Hi i have written a code for concatenation of two strings by overloading the string operator. The program works fine but i don't understand the sequence of steps happening. [code][Use language = C++] #include <iostream> using namespace std; class String { int len; char *p; public: String () { cout … Software Development c++ | |
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class HiLo extends JApplet { Image cardImages; /** * An image that holds the pictures of all the cards */ public void init() { /** * This method loads the card picture and lays out the applet. */ cardImages = getImage(getCodeBase(), "smallcards.gif"); setBackground(Color.blue); … Software Development java java-swing | |
Hi I'm pretty new to C (about a week experience) and I was wondering if C had anything like Python's random.choice() function. Basically it just selected a random element from what you gave it, a number from an array or a character from a string. If there is no function … Software Development c | |
I've got executable code that is partially working, so i know i've done something wrong in it. In it you type in the rainfall for each month in inches and will display the total, average, largest and smallest rainfalls(with the month). I have the the total, average and largest(except the … Software Development c++ | |
I've configured my Windows system to launch my application when someone opens a file with a specific extension (example: launchMyApp.xyz). Much like double-clicking on document.txt will open Notepad. launchMyApp.xyz contains a series of strings that I want to use in my application. What I can't figure out how to do … Software Development | |
I just wanted to make sure i am interperating code correctly when i write or read it when it comes to fstream. when you say ofstream example; your basically making a keyword "example" to call different functions. aka example.open() or .close. but, if i used example as the out put … Software Development c++ | |
Hello, I need some help filling an array with UNIQUE random numbers. So far I've figured out how to fill an array with random numbers, that's easy, but I'm stuck on how to avoid filling it with duplicate values. I'm assuming that i'll have to use either a linear or … Software Development c++ | |
i made a game called chimp and when i start it it just freezes the game window, idle and the python shell, any ideas? heres the code" [code=python] import os, sys import pygame from pygame.locals import * if not pygame.font: print 'Warning, fonts disabled' if not pygame.mixer: print 'Warning, sound … Software Development python | |
this is a similar example to what i have. it's simplified but it still get's the same error. i need to be able to use << operator to print out all information from class A. i have no idea how to do that. i tried casting it as an A … Software Development c++ | |
Hi all, I am using MS Windows SP2. I should like to share my positive and negative experience with the PPM (Perl Package Manager) with the community. For a reason I uninstalled Perl from my computer and installed again. After installation only DBI was present, and for Mysql the DBD::mysql … Software Development mysql perl window-manager |
The End.