132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jcafaro10

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
Member Avatar for jcafaro10
0
183
Member Avatar for DemonGal711

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++
Member Avatar for DemonGal711
0
82
Member Avatar for christiangirl

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
Member Avatar for christiangirl
0
138
Member Avatar for DemonGal711

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++
Member Avatar for DemonGal711
0
100
Member Avatar for JackDurden

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++
Member Avatar for cikara21
0
223
Member Avatar for nikhath

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
Member Avatar for Ezzaral
0
76
Member Avatar for Awais Ahmad

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++
Member Avatar for Laiq Ahmed
0
136
Member Avatar for ryan311

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
Member Avatar for aktharshaik
0
172
Member Avatar for harrybern

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
Member Avatar for harrybern
0
143
Member Avatar for Aravindasrat

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
Member Avatar for debasisdas
0
111
Member Avatar for drkessence

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
Member Avatar for drkessence
0
210
Member Avatar for gharish

[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++
Member Avatar for Salem
0
138
Member Avatar for smorton123

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
Member Avatar for jsosnowski
0
441
Member Avatar for davids2004

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++
Member Avatar for davids2004
0
171
Member Avatar for cVz

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
Member Avatar for cVz
0
108
Member Avatar for bpacheco1227

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
Member Avatar for bpacheco1227
0
125
Member Avatar for deepukng

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.

Software Development sql vb.net
Member Avatar for CornerAnalyst
0
2K
Member Avatar for tucksterble

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 …

Software Development mysql python
Member Avatar for jbennet
0
131
Member Avatar for carobee
Member Avatar for dickersonka
0
94
Member Avatar for VINITSONI

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
Member Avatar for CornerAnalyst
0
177
Member Avatar for Prashant45

#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
Member Avatar for ArkM
0
2K
Member Avatar for karang

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++
Member Avatar for ArkM
0
191
Member Avatar for dharam_05

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
Member Avatar for aktharshaik
0
163
Member Avatar for weshahy123

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
Member Avatar for aktharshaik
0
176
Member Avatar for cebubinary

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
Member Avatar for pnorten462
0
63
Member Avatar for Proseidon

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++
Member Avatar for ArkM
0
156
Member Avatar for adam291086

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
Member Avatar for Gribouillis
0
104
Member Avatar for aodpreacher

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
Member Avatar for stultuske
0
114
Member Avatar for krhillery

[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
Member Avatar for stultuske
0
109
Member Avatar for raja289

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
Member Avatar for devnar
0
120
Member Avatar for manojn1979

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
Member Avatar for manojn1979
0
156
Member Avatar for jmn0729

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
Member Avatar for Gribouillis
0
411
Member Avatar for SergioQ

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
Member Avatar for KevinADC
0
105
Member Avatar for rlp1938

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
Member Avatar for d0pedup
0
226
Member Avatar for learnpro

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
Member Avatar for eggi
0
180
Member Avatar for oldSoftDev

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
Member Avatar for oldSoftDev
0
108
Member Avatar for ammameiya

does anyone knows how to conver from LPTSTR to std::string or std::wstring ? example : i want to convert f_path to abc ang def... [CODE] LPTSTR f_path; std::string abc; std::wstring def; [/CODE] thanks in advance

Software Development c++
Member Avatar for ammameiya
0
252
Member Avatar for M^2

heloo can anyone plz tell me how use functions like power and setw.... in programmes... thanku

Software Development c++
Member Avatar for davids2004
0
128
Member Avatar for complete

After someone creates a DLL in C# using the Microsoft Visual development environment, how would another programmer take that code, make a new project that includes the DLL's source and make a GUI that uses the DLL'S API?

Software Development api c c# c++ gui
Member Avatar for dickersonka
0
136
Member Avatar for Superstar288

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++
Member Avatar for seanhunt
0
93
Member Avatar for sweeya

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++
Member Avatar for seanhunt
0
397
Member Avatar for krhillery

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
Member Avatar for Ezzaral
0
276
Member Avatar for Erikmmp

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
Member Avatar for Erikmmp
0
123
Member Avatar for Foe89

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++
Member Avatar for Foe89
0
284
Member Avatar for chortlehoort

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
Member Avatar for LizR
0
74
Member Avatar for clutchkiller

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++
Member Avatar for clutchkiller
0
124
Member Avatar for bling_bling_vr6

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++
Member Avatar for kitf84
0
3K
Member Avatar for tomtetlaw

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
Member Avatar for tomtetlaw
0
199
Member Avatar for mbayabo

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++
Member Avatar for grumpier
0
118
Member Avatar for idbgy

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
Member Avatar for idbgy
0
270

The End.