43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for VernonDozier

Hi, I am working on a project wherein one program writes to a file, but allows a different program to read from that file BEFORE the first program is finished writing to it. In this project, the first program is a game. When someone scores in the game, that activity …

Software Development c++ file-system
Member Avatar for VernonDozier
0
214
Member Avatar for tripjokers69

I have a two part assignment. Part one is to create a menu driven program using variables to do certain tasks. Part two is to convert the variables being used into 2 arrays. The code for part one is post below and works perfectly for everything that is required. My …

Software Development c++
Member Avatar for tripjokers69
0
105
Member Avatar for edek

The program as it is generates: [ICODE]>Parent1 >Parent2 >In Child >Parent3 Successfull...[/ICODE] If I remove the comment from line 31 - just below "//THE PROBLEM:" so the "gets(buff);" is executed it gives: [ICODE]>Parent1 >Parent2[/ICODE] and... waits (both parent and child processes running - both waiting). I would like to be …

Software Development c++ file-stream
Member Avatar for vijayan121
0
261
Member Avatar for Littlen

Hi all Ive writing a simple j2me program to read from a file. Im running the midlet on a pda but im having trouble accessing the file. Im using J9 JVM on a Dell Axim, ive also installed the JSR-75 (which is need to access files), however im still having …

Software Development file-system java
Member Avatar for Littlen
0
95
Member Avatar for Seamus McCarthy

Please help i'm trying to click on the screen just inside the box coordinates of (x,y) but it clicks everywhere on the screen!! [code=cplusplus] void cursorpoint() { #include "cursor.h" int x ; int y ; //x will have the x position and y will have the y position of mouse …

Software Development c++ display
Member Avatar for Seamus McCarthy
0
147
Member Avatar for Kythas

I'm trying to parse through a large file (544,000+ rows). I'm pulling information from each row and creating a SQL statement with that information, and trying to remove duplicates. Here is my current code: [code=Python] try: fdata = open(vhdat).readlines() except IOError, detail: print "Error opening file. ", detail # Define …

Software Development python
Member Avatar for jice
0
134
Member Avatar for marceta

Hey guys, I'm working on a basic search engine and am really close to completion. I currently have a function that takes a string and compares each word and its synonyms to a webpage. My output at the moment is [("closeness" percentage of terms to webpage, webpage contents,(x,y),(x,y)...(x,y)] I am …

Software Development python
Member Avatar for jrcagle
0
176
Member Avatar for Adila

i got until here.. [code=java] public class ButtonListener implements ActionListener { public void actionPerformed(ActionEvent buttonEvent) { int delay = 1000; //milliseconds ActionListener taskPerformer = new ActionListener(){ public void actionPerformed(ActionEvent evt) { JFrame myFrame1 = new JFrame(); MySadFace sad = new MySadFace(); myFrame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); myFrame1.getContentPane().add(sad); myFrame1.setSize(400, 200); myFrame1.setVisible(true); } }; Timer test …

Software Development java
Member Avatar for Adila
0
217
Member Avatar for Google Spider

Hi, I'm getting seg fault in this [code] #include <iostream> int main() { char *p; *p='w'; std::cout<<p; return 0; }[/code] I'm sure it is due to the line [code] *p='w';[/code] I interpret this line as [QUOTE]Value at address p = 'w'[/QUOTE]. I would like to hear an explanation on why …

Software Development c++
Member Avatar for Google Spider
0
137
Member Avatar for leedsy7

Can anyone provide me with code on how to Delete a row from a list box?? lstReorder.RemoveItem (index) I believe is the right code. However this does not actually do anything by itself. How do i tell the program what the index refers to? ie what the index is? for …

Software Development visual-basic
Member Avatar for Henry Schubel
0
1K
Member Avatar for hkarthik

Hi everybody, I am new to j2me. Can anybody tell me how to start working with j2me.

Software Development java
Member Avatar for Samudricka
0
107
Member Avatar for november_pooh

i write a program that it needed to get a couple string from string. e.g : November -> i want to get "vem" only... how i can do this?? any help will be appreciated thank you

Software Development vb.net
Member Avatar for Jx_Man
0
90
Member Avatar for swapna7999

is it possible to pass the value of a text box and the caption of a label from one form to another

Software Development visual-basic
Member Avatar for swapna7999
0
76
Member Avatar for Moporho

I am trying to get my 2d array to total up values. It is laid out perfectly, but my values do not calculate. Is my math wrong? Please help?? [code] #include <iostream> using std::cout; using std::cin; using std::endl; #include <iomanip> using std::setw; int main() { const int DAY = 7; …

Software Development c++
Member Avatar for Moporho
0
146
Member Avatar for glfnfvr

I am trying to write a code that asks for a date in a user form text box and then takes that date and looks for it in a range. Once it finds that date I want to enter the data from the second text box in a cell on …

Software Development visual-basic
Member Avatar for glfnfvr
0
128
Member Avatar for WonderWomen204

Hey there. It's Erinn and I just have a quick question about my assignment that I am working on. I have everything right except for one part...don't u hate that...lol. Anyway, here is the code and assignment below. Sorry there is no code, but it's been a long day and …

Software Development c++
Member Avatar for WonderWomen204
0
132
Member Avatar for godevars

Here's one I haven't been able to find an answer to. I have 4 arrays: @array1, @array2, @array3, @array4. I ran code to compare the values of 2 arrays to see number of values in common: [CODE]use strict; use warnings; my (%union, %intersect); foreach my $e (@array1, @array2) { $union{$e}++ …

Software Development perl
Member Avatar for katharnakh
0
2K
Member Avatar for kushyer

I'm using Xubuntu, and I've found that I can't change text control foreground colors in WxPython, on this Linux. They change fine in Windows. They won't change in Xubuntu—it doesn't matter if I use Xfce, Gnome, or KDE; it's the same. It's always black (very problematic when you have a …

Software Development python tkinter ubuntu
Member Avatar for kushyer
0
297
Member Avatar for phalaris_trip

I would like to create a specialisation of.. template <typename CEnemy_Ty> class CEnemyManager {}; ..for a class called CTank which is a CEnemy But by defining.. template <> class CEnemyManager<CTank>{} ..it means I have to copy+paste huge chunks of unchanged code, just to change say one or two functions. By …

Software Development c++
Member Avatar for phalaris_trip
0
102
Member Avatar for buddha527

Hello, I need help adding two arrays of different sizes [i.e. 3005 + 305 = 3310 ]. I am sorry but I do not have any code to post because I am completely lost on how to even go about starting this, so any hints or help on what to …

Software Development c++
Member Avatar for vmanes
0
2K
Member Avatar for natd

I am having trouble reversing the words in a sentence. For example "a line of text" should be printed "text of line a". So far I can only print the last word, it is probably obvious but at the minute i just can't see how to do it. Any help …

Software Development c
Member Avatar for natd
0
812
Member Avatar for CodeBoy101

Hi I need an example of how threads are coded and implemented in Dev-C++, any help would be greatly appreciated. :)

Software Development c++
Member Avatar for CodeBoy101
0
189
Member Avatar for wrichardson530

Hi all. I'm having difficulty making a log-in screen. i am using an adoc contorl called adoClerk, which contains only two fields and ClerkId and Password. The ClerkId is a autonum and password is text. I Have two text boxes that need to be read from this screen txtClerId and …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
212
Member Avatar for emilio

how can i make my combobox to show it's max index at all times?

Software Development
Member Avatar for emilio
0
84
Member Avatar for Nemoticchigga

Does anybody know where I can get some basic source code on the creation and use of threads (I know about threads, just never coded them, and reading up on them, some of the inputs into CreateThread are confusing)?

Software Development c++
Member Avatar for Nemoticchigga
0
106
Member Avatar for D boss

hi guys, i am working on applets, below is a bit of coding i am working on, it compiles with out any problem, but when i run it i get an error msg saying: `"Exception thread "main" java.lang.NoSuchMethodError: main"` if any one can advice it will be appreciated a lot... …

Software Development java
Member Avatar for D boss
0
87
Member Avatar for Noliving

I basically have the entire program done except for one little problem my maxDepth output is wrong! But the rest of the assignment is after your program gets the correct answers, add static variables calls, depth, and maxDepth to your class and add code to your implementation of Z to …

Software Development java java-swing
Member Avatar for Noliving
0
86
Member Avatar for Acidburn

Hey guys, I've got a class defined has the following: [code] class TData(object) : #Overriden constructor def __init__(self, oc, via ): self.oc = oc self.via = via [/code] now in a separate file I'm trying it iterate through that using recursion. [code] def search(critia, searchSpace, value) : print "Calling search …

Software Development python
Member Avatar for Acidburn
0
257
Member Avatar for alexhkleung

i want to frd the[COLOR="Green"][B] MainControl[/B][/COLOR] with the derived class [COLOR="Green"][B]food [/B][/COLOR] [B][COLOR="Green"] objects.h (abstract base)[/COLOR][/B] [CODE=C++] #include "maincontrol.h" class objects {...}; [/CODE] [B] [COLOR="Green"]food.h (derived)[/COLOR][/B] [CODE=c++] #include "objects.h" using namespace std; class food: public objects {...}; [/CODE] [COLOR="Green"][B]maincontrol.h[/B][/COLOR] [CODE=c++] class objects; class food; class MainControl { public: friend objects; …

Software Development c++
Member Avatar for alexhkleung
0
123
Member Avatar for swapna7999

hi thanks for ur suggessions now i got mysql connection with vb but i need to use the mysql Queries in this application hope i wil get solution thank u very much

Software Development mysql visual-basic
Member Avatar for swapna7999
0
843
Member Avatar for swapna7999

hi there thanks guys now im able to connect to the mysql database and know how to use select statement to access the the data in the database but what to do to view the data retrieved by the select statement

Software Development mysql visual-basic
Member Avatar for swapna7999
0
79
Member Avatar for shreka

Hello, I have been asked to create a pascal program but I am finding it really difficult because I haven't dealt with text files or binary searches before. The program is supposed to read a Student ID and then the program should display the Student's details. All of the data …

Software Development pascal
Member Avatar for another guest
0
522
Member Avatar for Moporho

I am trying to solve a problem from a lab challenge. I can not get the program to compile correctly. Please look over and let me know where I need to be looking to solve this Use a two-dimensional array to solve the following problem. A company has four salespeople …

Software Development c++ ios
Member Avatar for Moporho
0
4K
Member Avatar for CaffeineCoder

OK, this should be easy (in theory) but I'm having issues with the java applet showing up in the HTML. The applet works when I run it within the IDE, but when I try to run the applet, a message in the bottom left of the applet window says that …

Software Development html-css ide java
Member Avatar for CaffeineCoder
0
122
Member Avatar for mikky05v

this is simulated data on daily vehicle traffic crossing a bridge for one week. From Monday through Sunday the daily vehicle counts were {986, 818, 638, 763, 992, 534, 683}. Create an input file named cars_data.dat containing these numbers. Write a program that will read these values from the input …

Software Development c++
Member Avatar for hammerhead
0
150
Member Avatar for Islandstone

I'm having trouble running my compiled program on other computers. The script is a wxPython GUI app that creates a task bar icon. The script works perfectly on my computer both standard, in the pdb and compiled. But on two other computers it gave two different errors. The first one …

Member Avatar for Islandstone
0
328
Member Avatar for Raptoricus

Hi I have been programming for about 3 weeks now and am really starting to get somewhere with it, but I have encountered a problem with this text rpg that I am making, the problem is I have made 3 header files being 1.character(contains character class) 2. monster(another class file …

Software Development c++
Member Avatar for Raptoricus
0
126
Member Avatar for Yellowdog428

for some reason I cannot add integers in an array of structures. here is the code. [CODE=c++]#include<iostream> #include<iomanip> using namespace std; const int SIZE = 5; struct playerInfo { char name[30]; //Players name int number; int points; }; int main() { int total = 0; // to hold total points …

Software Development c++
Member Avatar for Ancient Dragon
0
87
Member Avatar for b04e3ian

Hi there, I'm very new to programming, and I have this assignment where I'm supposed to create a 2D game in python. The character in the game is Homer Simpson, and I'm trying to get him to move within the maze thats already been created for me. I believe I …

Software Development python
Member Avatar for vegaseat
0
397
Member Avatar for leedsy7

hey Really strugling with Access today so i could do with some help :) I'm attempting to add items to a list box. The Sources are 2 text boxes which have been fed to from a querey. So first I tried... lstReorder.AddItem (ITEM_NUMBER.Text) lstReorder.AddItem (ITEM_DESCRIPTION_1.Text) Which brought up the error …

Software Development visual-basic
Member Avatar for leedsy7
0
252
Member Avatar for allialli

[B]hi. can anyone please help me with this assignment?[/B] Write a function called divideMe which takes two integer parameters x and y and returns a double which is the division of these numbers (x / y). If y is zero, print the message "Divisor can not be zero!" and return …

Software Development c++
Member Avatar for allialli
0
321
Member Avatar for Noliving

Here is the preorder: [code=java]private void preOrderTraverse(Node < E > node, int depth, StringBuilder sb) { for (int i = 1; i < depth; i++) { sb.append(" "); } if (node == null) { sb.append("null\n"); } else { sb.append(node.toString()); sb.append("\n"); preOrderTraverse(node.left, depth + 1, sb); preOrderTraverse(node.right, depth + 1, sb); …

Software Development first-post java
Member Avatar for jinternalframe
0
95
Member Avatar for stan.joe1

I wants to input a list of day temperatures and count the number of days with temperatures above 20 degrees. The C++ program below is supposed to do this and display the result. A temperature of -100 indicates the end of the data. #include <iostream> using namespace std; int main( …

Software Development c++
Member Avatar for dmanw100
0
327
Member Avatar for fusi0n423

Hi all I'm new here I've been working on a project that has a multiset class. I need a function that accepts a integer value and returns the value held there. The multiset is a data[SIZE][2] where everything is stored where data[i][0] is the number and data[i][1] is how many …

Software Development c++
Member Avatar for fusi0n423
0
124
Member Avatar for Xlphos

Hi I was wondering if anyone can help me. I am trying to create a game in visual python and have come to a complete stop. I need to be able to run many while loops at the same time, i have looked into threading but can't get my head …

Software Development python
Member Avatar for woooee
0
143
Member Avatar for TPclan

I am an extreme new comer to C++. Currently I have written a short script in VBscript to delete two specific files on a specific day. This script is set in the start up menu so that it checks for the day of the week. If the day matches the …

Software Development c++ vbscript
Member Avatar for Arne Kristoffer
0
127
Member Avatar for Berniceazzopard

Hey i am doing a database of a bueaty salon with pascal. I need to tell the user to enter the date and validate it date but i on managed to get this far can u please help me. I need to validate that february contains 29 days if in …

Software Development pascal
Member Avatar for jsosnowski
0
111
Member Avatar for Roebuc

I am working with classes for the first time. I am trying to make an address book. While I think I have done my header files and class definition files correctly, I am running into a snag with getting it to show on the screen. I went back to a …

Software Development c++
Member Avatar for Roebuc
0
107
Member Avatar for it2051229

I'm reading a text file using a stream read and my code goes like this [ICODE] FileStream file = new FileStream("c:/data/theData.txt", FileMode.Open, FileAccess.Read); StreamReader streamReader = new StreamReader(file); // read the content of the first line of the data text file String line = streamReader.ReadLine(); while (line != "") { …

Software Development file-stream
Member Avatar for $dunk$
0
108
Member Avatar for superjacent

I've just completed an exercise from a book wherein the task is to display a menu of choices each associated to an alphabetical character. The program is to reject invalid characters and only finishing when a valid choice is made. Below is my solution, it achieves the task but I'd …

Software Development c++
Member Avatar for jade09091990
0
188

The End.