132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dakrous

I can't figure out why this won't exit when quit is entered. [ICODE] import java.io.*; import java.util.*; public class Trial { static final String ADD_COMMAND = "add"; static final String REMOVE_COMMAND = "remove"; static final String QUIT_COMMAND = "quit"; static final String PRINT_COMMAND = "print"; // Create a single shared …

Software Development java
Member Avatar for blufab
0
74
Member Avatar for majestic0110

Hi all I am brand new to python so if anyone could help that would be great. The trouble I have is that I am trying to call two other programs from within a parent program, and pass arguements to these children programs. Here is my code so far, but …

Software Development python
Member Avatar for Ene Uran
0
128
Member Avatar for andy999

Hi, I am using msflexgrid control and third party liberary.I am getting data from the net in msflexgrid continously after every one minute. I want to append these data in one of the charting software. I hav two problems.(1). i am getting Type mismatch error(2).If once chart get first tick …

Software Development visual-basic
Member Avatar for andy999
0
165
Member Avatar for urmybaby

Enter initial capital: 2000 Enter percentage: 6.6 Enter number of years: 4 After Year 1 you’ll have 2132.0 dollars After Year 2 you’ll have 2272.71 dollars After Year 3 you’ll have 2422.71 dollars After Year 4 you’ll have 2582.61 dollars In 4 years, a total interest of 582.61 dollars is …

Software Development python
Member Avatar for Ene Uran
0
146
Member Avatar for mjzammit

please help! i am parsing html of a site in c#.net and i need to get the img, object, and applet tags from the html to verify if they have alt or longdesc attributes. please help me...

Software Development
Member Avatar for mjzammit
0
125
Member Avatar for zykostar

Hi! First post! :) I have some problem with finding a number in a specific row in a HTML document i'm fetching. I dont really know much of Regexp, but i guess thats how i will do it? The code i'm using [CODE] StreamReader sr = new StreamReader(HttpWResponse.GetResponseStream(), Encoding.ASCII); int …

Software Development
Member Avatar for zykostar
0
286
Member Avatar for sjgriffiths

Hello I was wondering whether someone could help me with the below I have a variable called: char company[50]; I have a string which contains: "STEPHEN JOHNSON LTD" I want to change the LTD to LIMITED How do i do this?

Software Development c
Member Avatar for Narue
0
66
Member Avatar for Someguy02

Hi! I just had a quick question that I can't seem to find the answer to anywhere. My book isn't helping me much and I have no one to turn to for help. Anyways, here's my question: I want to make it so that when you click a Button in …

Software Development gui java
Member Avatar for darkagn
0
93
Member Avatar for Stefano Mtangoo

I don't know where to put quit.png. This result in errors. Is it put on SPE folder or somewhere in python? or Just in same directory as saved file? I appreciate your help! Steve Code import wx class MyFrame(wx.Frame): def __init__(self,parent,id,title): wx.Frame.__init__(self,parent,id,title,size=(700,600)) toolbar=self.CreateToolBar() toolbar.AddLabelTool(wx.ID_EXIT,'',wx.Bitmap('..\icons\quit.png')) app=wx.App() MyFrame(None, -1, 'Simple Toolbar') app.MainLoop()

Software Development python
Member Avatar for Stefano Mtangoo
0
245
Member Avatar for daviddoria

When trying to compile my code with g++ i get this: MayaFunctions.h:5:27: error: calling fdopen: Bad file descriptor in that line, I simply have #include "AnotherFile.h" Google told me this has something to do with precompiled headers, but I can't figure out how to turn them off. 1) how to …

Software Development c++
Member Avatar for daviddoria
0
149
Member Avatar for hilofat

[CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main() { ifstream fin; string firstName; string lastName; int horseNumber; int betAmount; fin.open("jockey.txt"); if (!fin.good()) { cerr << "File not found\n"; return 1; } for (int i=0; i<10; i++) { fin >> firstName >> lastName >> horseNumber >> betAmount; cout …

Software Development c++
Member Avatar for hilofat
0
73
Member Avatar for bamabambhole01

Hello, I am new in c++. Can somebody send me code for class ellipse. I am looking urgently for code. Regards,

Software Development c c# c++
Member Avatar for bamabambhole01
0
90
Member Avatar for jennyebrooke

Okay I'm gonna be honest with you... I have no idea what I'm doing... no not even a little. I'm in an online C++ class that I'm only taking because it was the last required course for me to graduate this semester... This is the last assignment due and I …

Software Development c++
Member Avatar for littlestone
0
107
Member Avatar for saintb

he i made a simple reservation system please help me with code on how i can cancel a reservation [code=java] import java.util.Scanner; import java.util.Date; public class reservation { // Create an array of 12 seats, 6 window and 6 aisle. private static int[] seats = new int[12]; public static void …

Software Development java
Member Avatar for saintb
0
720
Member Avatar for Jennifer84

If I have a 2D vector like this that has 5000 elements declared. If I have filled 2500 of these elements with Numbers, what is the best way if I want to "emty" these elements so these elements will turn to 0 wich I beleive is the defaultvalue for all …

Software Development c++
Member Avatar for vijayan121
0
248
Member Avatar for Indianblues

Hi , I am new to c++. I am reading "C++ How to Program" .In one example author divided the program into 3 files. The first one is Gradebook.h which contains prototypes. second Gradebook.cpp which contains actual implementations of member functions of Gradebook.h. last file is fig03-14.cpp which contains objects …

Software Development c++
Member Avatar for Indianblues
0
178
Member Avatar for bustedsfnewkia

I've searched Google and have not found a solution to my problem. Function is to take a parameter and do a calculation on it. Based on the initial conditions it is supposed to return true and the the value calculated via a reference parameter. Basic code before all modification to …

Software Development c++
Member Avatar for littlestone
0
105
Member Avatar for hacker9801

Hey. Right now in my game (online) I'm using std::vectors to store player info. Should I continue to use them (I hate having to loop thru them each time to find a player) or should I use MySQL to hold player information (like map their on, nickname, id, position, etc.)?

Software Development c++ mysql
Member Avatar for Rajith Cherian
0
120
Member Avatar for navvin_20

Hi I am a beginner to asp.net. Could any one please help me ... I have a database table with two colums ( column one has all the countries and column two has all the capitols of that particular country.) In my .aspx page I have a dropdown list and …

Software Development asp.net
Member Avatar for ushalakshmi
0
164
Member Avatar for dilbert_here00

Hi All, Is it possible to flush the buffer of "popen2.Popen3(cmd)"after some time interval? I am starting a server forever using the popen2 module. After some time the buffer gets full & it stops logging messages. As a workaround to this, I am redirecting the output of 'cmd' to a …

Software Development python
Member Avatar for dilbert_here00
0
119
Member Avatar for shellsy

Hi guys, I'm working on this problem I've been struggling with for a while now. I'm still confused about parameters and I'm getting all these error messages, saying that a lot of my variables are undefined. I'm sorry, I know this probably looks like a mess right now, but if …

Software Development c c# c++
Member Avatar for shellsy
0
356
Member Avatar for isi4h

I'm using delphi 7, if anyone could let me know how to compile this code i would be grateful. thanks. [CODE]unit UIRT; interface uses SysUtils, Classes, Windows, SyncObjs, Dialogs; // USB-UIRT DLL API Constants... const CRLF: string = '\r\n'; INVALID_HANDLE_VALUE: integer = -1; ERROR_IO_PENDING: integer = 997; UUIRTDRV_ERR_NO_DEVICE: integer = …

Software Development api data-structure delphi pascal windows-api
Member Avatar for Duoas
0
149
Member Avatar for Cosa

Here is my code, the aim is to use dynamic memory and pointers. The program siccesfuly reads in data from a text file into the dynamic array(matrix). The size of the array is also in the text file, so thats how the size of the array is known. I am …

Software Development c++ ios
Member Avatar for Cosa
0
241
Member Avatar for eranga262154

Hi all, Here is the structure of my XML file. [CODE]<?xml version="1.0"?> <data> <key>468</key> <name>pal</name> <option>10</option> </data>[/CODE] I want to read the option tag value, then increment it by 4 and write it to the same location. So at the end XML file content like this. [CODE]<?xml version="1.0"?> <data> <key>468</key> …

Software Development data-structure java xml
Member Avatar for eranga262154
0
111
Member Avatar for hallinan

Hi I'm doing a project in java.It is the game othello.It was all going well till i got an [B]ArrayOutOfBoundsException[/B]. the array is this buttons[9][9]; If you dont know othello it's a board game with an 8x8 board. The Exact error is "ArrayOutOfBoundsException: 9" and give the lines which the …

Software Development java
Member Avatar for hallinan
0
517
Member Avatar for wleemitch

Hi everyone. I need help with an assignment that calls for a puzzle. The puzzle has five levers, numbered 1 to 5. All the levers must be down to complete the puzzle. The program produces a random puzzle each time it is opened or a new game is played. It …

Software Development c++ legal puzzle
Member Avatar for John A
0
107
Member Avatar for CoolGamer48

I keep getting D3DERR_INVALIDCALL from my CreateDevice() call. Here it is: [CODE]long dev_result = d3d->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,m_window,D3DCREATE_MIXED_VERTEXPROCESSING, &d3dpp,&m_device);[/CODE] I think the problem is with m_window. Here's its creation: [CODE]if((m_window = CreateWindow("WindowClass",m_setup->name,g_deviceEnumeration->IsWindowed() ? WS_OVERLAPPED : WS_POPUP,0,0,800,600,NULL,NULL,m_setup->instance,NULL)) == NULL) { MessageBox(NULL,"Error creating the window","CreateWindow()",MB_OK | MB_ICONERROR); return; }[/CODE] It's really weird. I put breakpoints …

Software Development c++
Member Avatar for CoolGamer48
0
295
Member Avatar for JakeCourtney

Hey, I've recently started to learn Java with a little prior experince in C++. Only the basics. I was just wondering if there any pointers for getting this language down. I'm talking about stuff that I won't pick up from some book or exercise. Something you've all come across in …

Software Development java
Member Avatar for peter_budo
0
179
Member Avatar for rysin

How do you add to a variable that is inside a foreach loop? Everything I try hasnt worked.

Software Development perl
Member Avatar for rysin
0
115
Member Avatar for gehad3003

Hi I have a homework assignment that ask you to complete an empty project that contains a queue and stack. the data should be stored in a circular array. Functions of the queue are: pushBack : to insert in the back pushFront : to insert in the front popBack : …

Software Development c++ queue
Member Avatar for gehad3003
0
184
Member Avatar for Nemoticchigga

Does anyone know how to get winsock2.h functions to work in a thread created by CreateThread(....)? All my code works outside a thread, but when I put it in the thread, it cannot bind the socket and read from etc. Thanks.

Software Development c++
0
60
Member Avatar for lech0030

Hello, I have this very simple batch file that contains one command: xsltproc -o output.html stylesheet.xsl input.xml When I double-click the batch file, everything works fine. However, the batch file doesn't work when I execute it from my vb.net application: [code=vb.net] Dim p As New System.Diagnostics.Process p.StartInfo.FileName = "[I]path[/I]\go.bat" p.Start() …

Software Development file-system vb.net xml
Member Avatar for Jx_Man
0
279
Member Avatar for nsandestin

Is there something similar to a LIKE function in python? What I'm trying to accomplish is to search inside a string, if it finds specific criteria it sets another variable to a specific value. In other scripting languages I have used a LIKE function to do this but I can't …

Software Development python
Member Avatar for nsandestin
0
121
Member Avatar for c++noobie

I am currently using Kubuntu 8.04. Although I do not know any bash, I altered the bash shell (via internet guides) to append history instead of truncating the history file. After editing the shell, the default way to clear the history only clears the interactive history and not the actual …

Software Development c c# c++ ios ubuntu
Member Avatar for c++noobie
0
155
Member Avatar for linux

Essentially, what I want to do is get rid of MIDI files, when creating a sequencer. So, say I have a text file (that would be my pseudo-MIDI): [code]A |----------------| Bb |----------------| C |----------------| Db |----------------| D |----------------| Eb |----------------| E |----------------| F |----------------| Gb |----------------| G |----------------|[/code] As that …

Software Development audio python tkinter user-interface
Member Avatar for Ene Uran
0
85
Member Avatar for RedStarlight

I have been given some C code to compile which is several years old and need to compile it to see exactly what the program does. I know visual basic to an amount but i haven't touched C before. Anyway, how do i go about compiling the C code when …

Software Development c visual-basic
Member Avatar for RedStarlight
0
140
Member Avatar for wyno

hi there, my 1 year old carpet python is eating a jumbo rat every 3 days wat is the next thing to feed after jumbo rats please advise thanks wyno

Software Development python
Member Avatar for Ene Uran
0
88
Member Avatar for bodhankaryogesh

Hi, I am getting an error C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cstdio(17) : error C2143: syntax error : missing '{' before ':' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cstdio(17) : error C2059: syntax error : ':' I've declared a namespace in my header file. In that i have some string manipulation …

Software Development c++ visual-studio
Member Avatar for Narue
0
103
Member Avatar for Ramon78

I have created a project including some controls like labels, textboxes and buttons. When I click the print preview it shows me the print preview of the form and their controls. But without the background of the form. It would be nice to have a picturebox on the form so …

Software Development
Member Avatar for tgreer
0
141
Member Avatar for simps0n

Hello, guys! I have to generate 10 different numbers. What I do is to store the generated numbers in array. Before that I check the array for duplicates. It compiles, but I get some duplicates. Thanks in advance for any help.[CODE=Pascal]program rand; {$APPTYPE CONSOLE} uses SysUtils; var j, i, a, …

Software Development pascal
Member Avatar for DevonMcC++
0
1K
Member Avatar for skyineyes

Hi I know its a bit odd but i am freshly new to java and in a real need to solve few progs by EOD . Really stressed ..please help me out in solving below progs ... ************************** Task 1 Write a visitor for a structure of Strings (i.e. one …

Software Development java
Member Avatar for jwenting
0
108
Member Avatar for punmeister

Wohoo, first post. I have a problem with my code, the problem is that instead of writing "%" in res, when the pattern "%%" shows up, it writes it out as "%%" anyways. Currently I have it working so it works as strcpy. Seriously, I don't understand what I'm doing …

Software Development assembly
0
111
Member Avatar for Pja

I am using vb.net 2003 and sql server 2000 as backend. I would like to do searching that will receive several input from user (input from textbox,combobox and radio button) that will retrieve data from sql server and display the output in textboxes and picture box. I can do the …

Software Development display user-interface vb.net
Member Avatar for Jx_Man
0
126
Member Avatar for ninjaimp

Hi I have an if statement which checks if a value has been entered and if it hasnt it pops up with a message box and tells the user. Now if the if statement is in the same Sub as the code that is executing it works fine, but if …

Software Development vb.net
Member Avatar for Jx_Man
0
273
Member Avatar for jimJohnson

I am in the middle of a program and have a quick question and not sure how i do this... "have the Frame display in the center of the monitor " [code=java] //import packages import java.awt.*; import java.awt.event.*; import java.awt.datatransfer.*; import java.text.DecimalFormat; import javax.swing.JOptionPane; //create a subclass at the fram …

Software Development java java-swing
Member Avatar for jimJohnson
0
143
Member Avatar for lostandfound

Hi again, Can anybody tell me how to make use of the checkbox in the Listview control. I would like to make use of the checkbox box in order to indicate a finished task. This would require relating the tickbox to a value in a database. I have no problem …

Software Development listview visual-basic
Member Avatar for Jx_Man
0
295
Member Avatar for sisi

I have to write a programme `r=1/x+2/x^2+3/x^3+....n/x^n` i write the program but cant get the answer can someone correct me faster plzz //#include <iostream> //using namespace std; //int main() //{ //int n=0,i=0,j=0; //double x=0,r=0; //double numerator,denominator; //cout<<"Please enter a value for n:"; //cin>>n; //cout<<"Please enter a value for x:"; //cin>>x; …

Software Development c++
Member Avatar for sisi
0
167
Member Avatar for amit_pansuria

Helo, i want to write open SSL based c,c++ application for client socket in vc++ without using any API of winsock or MFC functionality. can u guide me how do i implement it. I search a lot on google but not getting exactly. Regards, Amit

Software Development api c c# c++ google-api
Member Avatar for amit_pansuria
0
2K
Member Avatar for blaze423

I'm a relatively new Python programmer, but I have all the basics down. Currently I'm working on a program that sends and receives serial input and receives video input. I have gotten this to work in a basic command prompt structured code however I want to be able to implement …

Software Development gui python tkinter video webcam
Member Avatar for a1eio
0
233
Member Avatar for abdulraqeeb33

i need to display the contents of a database(table) MS access db, on to the screen. how do i got abt it??? the data keeps changing dynamically...the program should be able to refresh it self

Software Development display gui java
Member Avatar for Ezzaral
0
174

The End.