132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for joey_r

Hello, long time lurker first time poster. I was looking for some help on a problem I came across on a python site. I am supposed to count the number of times 'code' apears in my string. But any letter can be in the place of the 'd' in 'code'; …

Software Development python
Member Avatar for TrustyTony
0
164
Member Avatar for setiawan.fenrir

hello there please help me, I have a problem with this program, i confused about how to make this program run well, this is the lish of program package guipert2; import java.awt.BorderLayout; import java.awt.Color; import java.util.ArrayList; import java.util.List; import javax.swing.DefaultListModel; import javax.swing.JList; import javax.swing.JOptionPane; public class ContohList extends javax.swing.JFrame { …

Software Development java java-swing
Member Avatar for NormR1
0
171
Member Avatar for RenanLazarotto

Hey guys! I want to make a simple app that will search for a predetermined file name and will list all occurrences in one listbox. I've searched on Google, but all the "search files" codes that I found were somewhat confusing. Can someone provide me some info so I can …

Software Development seo
Member Avatar for RenanLazarotto
0
101
Member Avatar for blake81

I need a little bit of help with my coding below. Whenever I try to run the second application it gives me momPalindrometrue dadPalindrometrue sisterPalindromefalse racecarPalindrometrue JavaPalindromefalse A man a plan a canal PanamaPalindromefalse Hurray for HollywoodPalindromefalse Mr Owl ate my metal wormPalindromefalse Was it a car or a cat …

Software Development java mathematics
Member Avatar for NormR1
0
299
Member Avatar for kww228

I am trying to make a program that will do addition and subtraction on positive integers of any length represented in characters using ASCII operations. The code I have work for the addition but the subtraction brakes around line 35. Thank you for the help. Code is listed below include …

Software Development assembly
0
84
Member Avatar for jarograv

I have used snippets of code from various sources to compile the following code: import java.awt.*; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; import javax.swing.JFrame; import java.util.Calendar; public class ShowImage extends Panel { static Calendar cal = Calendar.getInstance(); //gets system time BufferedImage image; private static final String holidaysimages[] = { //declares …

Software Development java java-swing
Member Avatar for NormR1
0
297
Member Avatar for Masque

I have a confusion of how to put that max and min in main method so it would run. PS: there might be mistakes ***The goal is to create a method that enter any numbers by user and it suppose to show the Max and Min.*** **PLEASE HELP~! what is …

Software Development java
Member Avatar for Masque
0
487
Member Avatar for needforkevin

hello! i have written a program to read in a text file and then ask the user to process the file with a different sorting method. so far i have been able to get my program to read in the file but my bubble sort seems to not be sorting …

Software Development c++ open-source
Member Avatar for needforkevin
0
244
Member Avatar for sasho648

I've made some functions which can insert file inside a file but only with a small text files and they're very slowly. I will thank you if someone know a better way. Here are my functions: 1st struct Tree { char Symbol; Tree* next; } ; Tree* GetTreeHandler(unsigned long num) …

Software Development c++ file-system ios
Member Avatar for sasho648
0
249
Member Avatar for khanthegamer

**Okay i have a problem that i am not able to sort out for couple of days now. I dont know why the code is not doing what it supposed to do. Basically I have written this code for a vending machine. Things i want in a vending machine ------------------------------------ …

Software Development c c# c++
Member Avatar for khanthegamer
0
160
Member Avatar for CGorelik

Hello, my name is Carol. I'm currently taking an introductory course in C++ and we just learned about functions. I was wondering about the standard accepted format for placing function definitions. For instance, in the following program, should I have defined the power function before the int main function instead …

Software Development c c# c++
Member Avatar for deceptikon
0
299
Member Avatar for Tygawr

I need to be able to read and write huge files that nearly weighs 20+GB and I need to do it fast. Any suggestions or tips? Thanks.

Software Development c++
Member Avatar for BobS0327
0
235
Member Avatar for apals

Hello , i am working on a section of a project, that parses Logs from Postgres Database Server. The application is developed in C sharp Framework 4.0. A log is produced and displayed on a DataGridView with the following columns resultCode Statement Starttime Duration XT001 select * from PizzaMade 01-02-2012 …

Software Development vb.net
Member Avatar for Mitja Bonca
0
219
Member Avatar for cryonize

Can anybody tell me what's wrong with my selection sort of linked lists? It's meant to sort the whole node, not the data. #include <iostream> #include <iomanip> using namespace std; typedef struct node { int DATA; node *NEXT; }; node *HEAD = NULL; void Create(int data); void Display(); void Sort(); …

Software Development c++ linked-list
Member Avatar for Nick Evan
0
592
Member Avatar for jhdobbins

included is my entire program... i know exactly what the problem i am having with this is, i just cant figure out the logic to fix it... ive tried about 10 different things so far. I have it so you can input which position you start at... then go around …

Software Development c++
Member Avatar for Nick Evan
0
474
Member Avatar for slashqb

Operating System Used:Ubuntu 11.04 Compiler Used: GCC Program related files:[Git Hub Link][1] I'm trying a implement program which will do a job, same as that of CPP (The C preprocessor) when I compile a .c file. In this particular code Copy_file_to_buf function not copying the whole file into the buffer. …

Software Development c file-system operating-system ubuntu
Member Avatar for slashqb
0
174
Member Avatar for caba992

****i want to display thread1 thread2 thread1 thread2 in java but i am not that good at thread i understand that i have to create three class main class, thread1 and thread2 class and i know i have to use wait() or notify() method ..i anyone help just give to …

Software Development java
Member Avatar for NormR1
0
131
Member Avatar for Checkerboz

Hey, so I am wondering what would be the easiest way to check if a double "looks" a certain way. Like this: Let's say I have some input and I want to check if the input has the same format that I want it to be. Here's what I want …

Software Development java
Member Avatar for NormR1
0
215
Member Avatar for mitchfizz05

Hi all. I want to make a facebook bot that will answer questions that get sent to me. I need to know how to make my application send and receive messages. Thanks.

Software Development vb.net
Member Avatar for mitchfizz05
0
170
Member Avatar for DreaIVI

Hi, I recently decided to have another go at learning some programming, and decided to make some sort of 2d gameboard useable for stuff like Chess and Othello. I ran into a problem that I ran into last time I tried learning programming as well, and it has to do …

Software Development java java-swing
Member Avatar for NormR1
0
204
Member Avatar for jonnyboy12

Hello. I have a unique situation. I have so many text box's in my form that i wound up making a text box array. Now each text box i make i have to give it a mouse clicked event and mouse moved event. I cannot write these event functions for …

Software Development c++
Member Avatar for Milton Neal
0
115
Member Avatar for zachattack05

I've been reading about various methods of how to do this, but I wanted to ask if something will work or not and was hoping someone could be kind enough to test this out for me. I do not have an email client (Outlook etc...) and just use Gmail. If …

Software Development
Member Avatar for Mitja Bonca
0
152
Member Avatar for JDoggieIII

Hello, I am attempting to sandbox a silverlight application that will display several windows both within a browser, and out of a browser. I'm new to silverlight, so this is giving me some trouble. Creating this sort of application using .Net for a windows application is straightforward, but I'm not …

Software Development
Member Avatar for JDoggieIII
0
129
Member Avatar for kytro360

Hi, Does anyone know how to create a delay in C#? I dont like to use Thread.Sleep because it makes the GUI unresponsive. Do you know of any good alternatives?

Software Development c c# c++ gui
Member Avatar for Mitja Bonca
0
296
Member Avatar for chirag_mittal

Hello, I was having some trouble related to a code. I wanted to pass a 2-D array as argument to a function,but I'm getting an error saying 'Expression Syntax in function Main'. I am trying to do it like this :-> void input(int **a[][10],int b,int c) { int i,j; printf("\nEnter …

Software Development c
Member Avatar for chirag_mittal
0
436
Member Avatar for CCBB

Assignment #2 Write two classes Class RestaurantMenu that has the following members class RestaurantMenu { double price[10]; string Menu[10]; int numMeals; public: RestaurantMenu(); void AddToMenu(string s, double d); void DeleteFromMenu(string s); void ShowMenu(); double FindMeal(string s); }; The Constructor: will fill the price array with zeros and fill the Menu …

Software Development c++
Member Avatar for CCBB
0
136
Member Avatar for Ahmed Sarwat

Hi, Kindly I hope that I can find help regarding reusing of scanf. If the user should enter only integers not floats and the scanf is within a for loop. how can I force the program to continue normally when EOF happens as a result of wrong input? Example: int …

Software Development c
Member Avatar for WaltP
0
207
Member Avatar for paulzef

So I'm just learning python still, and I've got this assignment to make a maze program (no graphics or any of that, just a text based one) and I'm trying to get it working, but the function I've written to find the legal moves keeps throwing errors. The most recent …

Software Development legal python
Member Avatar for TrustyTony
0
197
Member Avatar for infinitus

Hello there guys, im having little problem and help would be appreciated :) I have few tags <name> <capacity> <lectureslot> <tutorialslot> and so on, and i want to read each tag separatly into separate field(label), or listbox. Here is part of my XML <?xml version="1.0" encoding="utf-8"?> <timetable> <module code="3SFE504"> <name>Algorithms …

Software Development open-source xml
Member Avatar for thines01
0
214
Member Avatar for davebrown2242

Man, my *rookie* status os showing on this one... For the life of me, I cannot determine why my graphics panel section is not working to correctly display my Pie Chart.... I have the output broken down, and the variables exist... It runs looking for Annuities.csv in the C:\temp folder... …

Software Development gui java java-swing machine-learning os-x
Member Avatar for davebrown2242
0
258
Member Avatar for cwdaniels

Alright. So I'm fairly new to C#. What i've down thus far is create the beginnings of my program: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace WindowsFormsApplication1 { public partial class BirdNumber : Form { public BirdNumber() { …

Software Development c#
Member Avatar for hericles
0
174
Member Avatar for akaicewolf

Alright so I am trying to insert nodes into a linked list but also I want them to be sorted right away I think I got most of it except I am struggling when it comes to inserting it to the middle of the table temp -> price = price; …

Software Development c linked-list
Member Avatar for akaicewolf
0
128
Member Avatar for Dexxta27

I have a program that's supposed to interact with a databse but I keep getting a NullPOinterException. I know it means that something is set to null. But how to change them from null is my main problem import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; /* * To change …

Software Development java java-swing oracle
Member Avatar for Dexxta27
0
124
Member Avatar for pattilupwned

Hey all, I'm a beginner programmer and need help here. I can't figure out how to translate a word that begins with a consonant. I have all the code to translate a word that begins with a vowel, and those words translate correctly, but I cannot get the words with …

Software Development c++
Member Avatar for pattilupwned
0
2K
Member Avatar for ZMike

If I hard code something into the conatins it works just fine valstring = "[contains(title,'Test')]"; However if I try and use contains against the xpath title and then use what was entered into a text box I haven't figured out how to do that. I'm sure it's something very simple …

Software Development xml
Member Avatar for ZMike
0
136
Member Avatar for TheWind147

Hello, I am in the process of creating a program that accepts random numbers, put them in an array and sort them using different types of sorting algorithms. I then passed the array as an argument to the "BubbleSort" function, however, when I try to call the array in the …

Software Development c++ programming-construct
Member Avatar for TheWind147
0
190
Member Avatar for POOPdeek

Hey guys. I am somewhat new to the C++ language and was wanting to make a basic text editor. For this i was going to use Nodes and linked list to accomplish this. the main thing i need help with at this moment is creating a command prompt for the …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
326
Member Avatar for castajiz_2

Hi guys i m new around here as you can see, i was wondering why can t the program find the minimum of random generated numbers?Any help would be greatly apreciated. public static void Main(string[] args) { int[] randomNum = new int[10]; int min = randomNum[0]; int max = randomNum[0]; …

Software Development
Member Avatar for castajiz_2
0
852
Member Avatar for Dmiller071

Hi all, I have a project where I need to read in an image of a maze and use a graph data structure to find certain points in the maze to place nodes and trace edges. I plan to have the maze be in only two different colors. The walls/background …

Software Development data-structure image java
Member Avatar for Dmiller071
0
278
Member Avatar for jodzjcm

if( strcmp(z->Rev->x.y,z->x.y) > 0) In this statement i want to swap the pNext and pPrev. How will be the assignment look like?

Software Development c
Member Avatar for Ancient Dragon
0
97
Member Avatar for foxy123

Hi, I'm trying to write an application in NetBeans. I have a one Button called Ok which makes an array of buttons and all of them are connected to one actionListener. Here's the code: public void actionPerformed(ActionEvent e) { if (e.getSource() == Ok){ int a=500; thread=new Thread[a]; Button button[]=new Button[a]; …

Software Development java java-netbeans
Member Avatar for foxy123
0
175
Member Avatar for johans22

I was reviewing the code at the following two sites. I noticed that memory allocation "new" has been used to allocate space for the Node(s). How are they freed?. very good codes. http://visualcsamples.blogspot.com/2010/11/sparse-matrix.html http://www.syntax-example.com/Code/implement-subtract-function-big-number-992.aspx

Software Development c++
Member Avatar for jackmaverick1
0
159
Member Avatar for userct

Hello, I'm trying to write a program using MIPS Assembly Language (I write the code in TextWrangler and run it in QTSpim) I was wondering how I would go about checking if a number is perfect or not. I know my first lines of code may be partially incorrect but …

Software Development assembly mathematics operating-system
0
548
Member Avatar for blahman

I am running into some issue with scraping data. If I hardcode value for key "lbo race" in the code below it is able to scrape the data but if I try to set key "lbo race" to a variable which is being read in it doesn't seem to scrape …

Software Development python
Member Avatar for blahman
0
542
Member Avatar for java_sabin

im doing remote desktop project. i need to connect two sockets (each from single client) through the hashtable in the separate application server, so that client1 can see the desktop of the client2. can u suggest me solution for this? how can i achieve this? so far i can connect …

Software Development algorithm client-server java
Member Avatar for bambam2174
0
258
Member Avatar for murnesty

I know the purpose of keyword but then I still not really know when should i use. But I sure I will optimize my code. So is it ok to i use volatile keyword on all my variables? So that it won't optimize the wrong thing.

Software Development c++
Member Avatar for mike_2000_17
0
128
Member Avatar for Buffalo101

Hello, I am (still) writing a server+client application. I start the server. After a connection is accept()-ed, I start a thread to handle that connection. On the handler thread, I add the client nickname(String) and Socket to a Hashtable. [code=java] private Hashtable<String, Socket> clients = new Hashtable<String, Socket>(); clients.put(nickname, socket); …

Software Development client-server java
Member Avatar for java_sabin
0
552
Member Avatar for sathish1990

**Please help me friends** **I have a doubt in using array in JAVA** **if my input is AB1CD** They are stored in array as a[0]=A a[1]=B a[2]=1 a[3]=C a[4]=D I developed a coding to insert the number that appearing after a alphabet in the same array element like a[0]=A a[1]=B1 …

Software Development java
Member Avatar for JamesCherrill
0
169
Member Avatar for deval90

/***** The prompt i have is : use a class with 3 member functions named InputMatrix, Calculate, and OutMatrix. The program will prompt the user to (e)enter the matrix data, (c) to calculate the matrix multiplication, (d) to display the input and output matrices, and (q) to quit. no exit() …

Software Development c++ matrix-multiplication
Member Avatar for mike_2000_17
0
265
Member Avatar for Saviour4You

Hello, I am a java learner and have just started learing java by follwing the online tutorials. I am a computer science student and as a part of our assisgnment, I have to design a online CHat system in java. TBH, I have no clue of what to learn and …

Member Avatar for NetJunkie
0
290

The End.