199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for KSUliz

[code=java] import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.*; import java.util.*; public class Transfer extends JFrame implements ActionListener { //Declare output stream DataOutputStream output; //Construct a panel for the fields and buttons JPanel fieldPanel = new JPanel(); JPanel buttonPanel = new JPanel(); //Construct labels and text boxes JLabel …

Member Avatar for KSUliz
0
136
Member Avatar for bunnyboy

So for example, I have an array like that: [CODE=C#]char[] pattern = "GCAGAGAG".ToCharArray();[/CODE] And what I would like to do is to extract out distinct values and its corresponding indexes(smallest one) from right to left where first letters does not count. example: reversed array: [COLOR="Green"]GAGAGACG[/COLOR] Distinct values are: [COLOR="Red"]A, C, …

Member Avatar for bunnyboy
0
102
Member Avatar for sandorlev

hello! i've just tried out lists in c++, but they're giving me some kind of problem. it has something to do with iterators but i'm pretty sure i'm using them the right way. anyway, here is the code: [CODE] #include <list> #include <iostream> int main(int argc, char* argv[]) { std::list<int* …

Member Avatar for sandorlev
0
156
Member Avatar for vbx_wx

[CODE] HKEY hkey; DWORD nSubKeys = 0; TCHAR name[MAX_PATH]; DWORD size = sizeof(name); FILETIME filetime; if(RegOpenKeyEx(HKEY_CURRENT_USER , "Software" , 0 , KEY_QUERY_VALUE , &hkey) == ERROR_SUCCESS) { if(RegQueryInfoKey(hkey , 0 , 0 , 0 , &nSubKeys , 0 , 0 , 0 , 0 , 0 , 0 , &filetime) …

Member Avatar for vbx_wx
0
124
Member Avatar for Diomedes

Hello Python forums, I started working with Python recently and picked up a book. The book stated discussing using the ctypes module in python which is slick because it's exactly what I need to be learning. I started trying to test my knowledge by implementing a simple, singly linked list …

Member Avatar for TrustyTony
0
705
Member Avatar for biomed

I have files that contain lists of lists. Each file has about 20.000 lists that each list member is a list of itself with 15 values. Think of it as a database table. I know we can use a binary search to find a member of a list but can …

Member Avatar for sneekula
0
138
Member Avatar for geoNeo_

Hello all I hope someone could help me, i have a small application that I wrote for a friend, but I need it to start up every 24 hours or so. It basically like a reminder application but i need it to start up at a predefined time. I have …

Member Avatar for geoNeo_
0
227
Member Avatar for smitysmit

at the moment i have 2 answers to queations and the answers are 1,2,3 or 4 but i ow have to make it so the user has to put a work in like "Brazil" but i try to do the same as if the user puts "A" in and it …

Member Avatar for Robert1995
0
148
Member Avatar for lordtrini

I am trying to display the results of a query in the form of a table. this it the PHP that i am using below. The problem is that the headings of the table repeats. I really don't want that... I am also trying to get a border around the …

Member Avatar for lordtrini
0
341
Member Avatar for fxm

This method invocation txt.match(/\[.*\]/g) works exactly as intended - it returns an array of matches [anytext1],[anytext2],[anytext3] I don't need the brackets, so out of curiosity I tried this tweak txt.match(/\[.*(?=\])/g) which - somewhat to my surprise I must admit - does exactly what I was hoping it would do and …

Member Avatar for fxm
0
95
Member Avatar for Covert06

I know I'm going to be bashed at for this, just please read at least this much before you start yelling at me to read the faq or thousands of other posts online. Im having a problem clear screening for my school work since my teacher has a fetish for …

Member Avatar for Covert06
0
195
Member Avatar for Designer_101

Hey Im having a bit of trouble due to creating a media player playlist and using xml to input the directory variables to flash. I haven't really used xml much apart from that. Anyway... I need the variables from my XML file in a variable ready to print in php …

Member Avatar for whiteyoh
0
116
Member Avatar for dipankar_pr

Hi,All, I am try to develop a project where the back en database is MS access, front end is vb6 and connectivity establish by odbc. the database content multiple table. Frost table [COLOR="Green"]student[/COLOR] contain [COLOR="green"]roll, name[/COLOR] second table [COLOR="green"]marks[/COLOR] contain [COLOR="green"]roll, math, English[/COLOR] there is four text box namely txtRoll, …

Member Avatar for dipankar_pr
0
1K
Member Avatar for ChPravin

Hello All, I had this question asked to me in one of the interviews and I wasn't able to figure it out.I need to write a method CountUniqueSequences(int sum) which returns the number of unique sequences that consist of only 1's and 2's and have an element summation equal to …

Member Avatar for ChPravin
0
90
Member Avatar for mitch9654

Hello, I am trying to make a calculator that does multiplication, division, addition and subtraction. My problem is that when I have the two numbers that have decimals it goes wonky. Anyway, that program runs like this: 1. User enters equation 2. Unwanted characters get thrown out 3. If operation …

Member Avatar for chary8088
0
248
Member Avatar for BHance

Hello All, I have 2 data sources. Data source A needs information to be updated on a regular basis. It receives it's updated information from data source B. There are many thousands of records involved here so I am trying to limit the amount of MySql queries as much as …

Member Avatar for wcgoran
0
5K
Member Avatar for artikapri

Any forward error correction (FEC) implementation in C++? i need it for my project. i converted character into ascii value then converting them into binary values.now i need to append error correcting bits. i m doing my project in vc++. following is part of my code: [CODE]array< array< int >^ …

Member Avatar for vijayan121
0
129
Member Avatar for avinash_545

hi everyone, I am currently working on a small college project and I was wondering if it was possible to insert MS Paint in one of my form. If such a method exist, I would be really grateful if you can give me the code as well... ..............(the fact is …

Member Avatar for avinash_545
0
117
Member Avatar for method4ever

[code=c] #include<iostream> #include <string> #include <sstream> using namespace std; int main(){ int i=0, ii = 0, x; string input; //command to prompt user for amount of movies cout<< "How many movies do you want to add? "; getline(cin,input); //end command to prompt user for amount of movies //set up loop …

Member Avatar for method4ever
0
190
Member Avatar for Mme

I'm working with a HCS12 Motorola chip trying to make a MIDI player. Got stuck on the function of play/pause/forward/back. These are controlled by external switches set to high and low. Below is my attempted switch settings: [CODE]switches LDD $0000 CPD #$0001;"pause" button BNE AFTER_1 PAUSED LDD $0000 CPD #$0002; …

Member Avatar for Salem
0
147
Member Avatar for George.Storm

Hi, Not sure if this is right place to post this, please move if needed. I set up a web form so that the text from a set of text boxes was inserted into a database when you 'submitted' the form Since then I have added some validation to the …

Member Avatar for George.Storm
0
128
Member Avatar for Dio1080

Binary Search tree help Can somebody explain to me what this code is doing step by step?, thanks [CODE=Java] TREE-SUCCESSOR(x) 1 if right[x] ≠ NIL 2 then return TREE-MINIMUM (right[x]) 3 y ← p[x] 4 while y ≠ NIL and x = right[y] 5 do x ← y 6 y …

Member Avatar for mailmarwa
0
260
Member Avatar for Arsench

Hello world, I’m trying something very simple but can’t get the result. I have table from I’m selecting a value which exist, then I want to display the value on the other page, but can’t get the result. Here is the code. The first page is active.php where goes the …

Member Avatar for Arsench
0
116
Member Avatar for angel19

hi, can anyone help me with my code, any help will be much appreciated. The design should follow object oriented principles and use the UML tools. It should be a board game based on a “Monopoly-style” board made of 36 squares. The game is for two players who first enter …

Member Avatar for mn.balakumar
0
3K
Member Avatar for nccsbim071

hi, i have a website where i provicde a link. On clicking the link a controller action method is called to generate a zip file after creation of zip file is done, i show the link to download the zip file by replacing the link to create a zip with …

Member Avatar for nccsbim071
0
291
Member Avatar for farag

Hello, i want to know the best practice to 1. read an XML file and store it in SQL data base and 2. modify the data base whenever the XML file modified, i created a table on data base on SQL server with columns has the same names like XML …

Member Avatar for farag
0
842
Member Avatar for Sauronevileye

I want to get a list with just folders (without subfolders). Any idea how to do that ???

Member Avatar for Sauronevileye
0
164
Member Avatar for star_lavender

How to use while loop to loop a set of radio button groups? I have several questions that retrieve from database and each question has five different ratings named 1, 2, 3, 4 and 5. I create radio button group for the rating and using while to loop them. I …

Member Avatar for star_lavender
0
3K
Member Avatar for stryker4526

So I have a problem... according to the specification given by my lab TA, we must [QUOTE]"write a Microsoft Visual Studio console application that will calculate the following four operations over the elements of a two dimensional array (matrix) of integers: 1. Sum 2. Average 3. Max 4. Min All …

Member Avatar for Wizardsr66
0
4K
Member Avatar for yacin87

hello to everybody I have a linked list that contains objects each object contains two String field I want to know how to check if the object that i want insert is already exists in the linked list thank you

Member Avatar for vchandra
0
86
Member Avatar for songweaver

Hey guys, I am new to C# and Object Oriented Programming, I got this calculator code which was designed in Visual Studio 2008 and I am getting an error with [CODE]isZero == false[/CODE] [I]"Error Only assignment, call, increment, decrement, and new object expressions can be used as a statement."[/I] Also …

Member Avatar for ddanbe
0
180
Member Avatar for Encrypted

Anyone know what I'm doing wrong here? I'm trying to get this code to work so that if a directory exists.. the mkdir() function is bypassed (so i dont get an error) but it seems that no matter what I throw in my is_dir() function it always hops down to …

Member Avatar for Encrypted
0
129
Member Avatar for muqing

Hey everyone, I'm a program newbie, I'm writing a code for sorting numbers from a input file, qsort(array, array_size, sizeof(int), (*compare)(const void *, const void *)); since the array_size may vary for different file, I can't just use int array_size= some # How would I write this? Thank you very …

Member Avatar for JuhaW
0
84
Member Avatar for haboota

Hi - I am playing around with a php image gallery and Im stuck trying to add lightbox to it. The script automatically builds the gallery, and all anchors to the full size picture are generated. How can I add the rel="lightbox" tag? [CODE] echo "<center><a href=\"$PHP_SELF?path=$aPath&page=$aThisPage&img=$aFn&idx=$aIdx\"><img border=\"4\" width=\"$twidth\" height=\"$theight\" …

Member Avatar for haboota
0
123
Member Avatar for William Byrd II

Hello. I have been working on this program for some time, and it appears that I now have only one error (1 error 4 times). I will greatly appreciate it if someone could show me how to fix this error. Here are my errors: (phonebook.cpp is at the very bottom …

Member Avatar for chary8088
0
102
Member Avatar for vizionary2012
Member Avatar for Ancient Dragon
0
58
Member Avatar for achieve_goals

Can somebody help me in reading text from a file without using Java Class Library???

Member Avatar for achieve_goals
0
94
Member Avatar for Lee21

guyz, I want to know on how to convert small letter to capital letters. I want to convert every letter automatically once I press the keyboard. Hope you help me this guyz.. Im going to wait for your replies..

Member Avatar for Lee21
0
765
Member Avatar for JainishP

I'm having trouble writing code to save binary trees that are created by my program. I'm trying to save the tree to a file by trying to use preOrder traversal and writing the data that way. But so far nothing gets written to the text file. I'm supposed to write …

Member Avatar for JainishP
0
2K
Member Avatar for EgyCoder

Why does seekg() work only in the first iteration, while in the second iteration it doesn't.?However I used it in previous cases and it worked perfectly. And yes, I'm using clear(), but still nothing shows up after the first iteration (the iteration of the big while loop that encloses this …

Member Avatar for EgyCoder
0
206
Member Avatar for tquiva

I have two for loops that I would like to convert into while loops instead. This is the entire code of the program. This program simply asks a questions and determines whether the input is a yes or no based on the first character of the line. [CODE]#include <stdio.h> #include …

Member Avatar for tquiva
0
145
Member Avatar for Juls

Hi, I have a text data type field in MySQL table that I need to read out to a page. When the value is entered into this text field the value will have returns as follows: ------------------ TEST TEST aaaaaaaa asdasdasdfas 3rd lineasadas ---------------- When I read this value out …

Member Avatar for Mckcvision
0
299
Member Avatar for the_mia_team

I will donate $10 via paypal whoever can help me with this code. heres my assignment [QUOTE]Write a Python class named "Car" that has the following data attributes (please create your own variable names for these attributes): - Year_Model (for the car's model) - Make (for the car's maker) - …

Member Avatar for Mensa180
0
4K
Member Avatar for andydeans

hi, i have been trying to write a query which will return all clients and the related tables so that i can then allow the users to filter in a php website. at moment i tried this but returned no results even though there are records: [CODE]SELECT * FROM clients …

Member Avatar for johny_d
0
108
Member Avatar for bbrradd

I have to read lines from a text file and reformat them so that the first letter is uppercase and the rest are lowercase. I did that with no problem. also i needed to count the total words in the file, and did that easily.,but i also need to count …

Member Avatar for WaltP
0
1K
Member Avatar for LevyDee

[code] //declared my vector as vector<candidate> vecList; //pretty standard stuff //do some looping, gather info vecList.push_back(candidate(name,voteCount)); [/code] candidate is my class name. So instead of passing an object to push_back, I pass my class name using an overloaded construtor and it works just fine. Upon further investigation, I used an …

Member Avatar for LevyDee
0
81
Member Avatar for 3cats

Can anyone help me - The screen never pauses or stays put (after the end while) for the last 3 lines of code to display and the line right above the end while -totalinterestpd is not being written to the outfile I'm stumped. [CODE]while (MonthlyPayment <= LoanAmt) { MonthlyInterest = …

Member Avatar for WaltP
0
175
Member Avatar for Bart_sg

[code]#include <iostream> #include <iomanip> #include <string> #include <ios> using std::string; using std::streamsize; using std::setprecision; using namespace std; int main() { double Ib,I,V,P,F,pf,In; unsigned short int type; cout<<"Please select the type of power supply\n";//Allows the user to choose between single or three phase cin>>type; switch(type) { case 1:cout<<"You have chosen a …

Member Avatar for Mikstaslaya
0
170
Member Avatar for jrw89

I have the following code:[CODE=php]<?php $implementation = new DOMImplementation(); $document = $implementation->createDocument('http://www.w3.org/1999/xhtml', 'html', $implementation->createDocumentType('html')); echo $document->saveHTML(); ?>[/CODE]which returns:[CODE=html]<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"></html> [/CODE]...exactly as I wanted it to. However, when I run the following: [CODE=php]<?php $implementation = new DOMImplementation(); $document = $implementation->createDocument('http://www.w3.org/1999/xhtml', 'html', $implementation->createDocumentType('html')); $head = $document->createElement('head'); $document->appendChild($head); echo $document->saveHTML(); ?>[/CODE]I …

Member Avatar for jrw89
0
106
Member Avatar for helios0684

Hey guys, first time poster, relatively long time reader -- I am struggling creating a buffer class in python for my class. (relatively new to the language). Here is the basic idea I want to do: Implement a class that buffers text. The write() method adds a string to the …

Member Avatar for helios0684
0
3K

The End.