43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for orwell84

Hello, I'm just wondering how you would go about exporting the matches that regex finds. For example, if I were to have the following code, which matches all the digits in a string and (supposedly) reads them into an array, which is then displayed: [CODE] @numbers = ($string =~ /\d*/); …

Software Development perl regex
Member Avatar for KevinADC
0
94
Member Avatar for ARYT

It's me again. :?: This is the question: Write a computer program that computes the temperature of a gas that is originally at P=5 atm, =V30 Liters, T=273 K. Solve the problem using one dimensional array only. Assume number of array elements is unknown (use the end of file function). …

Software Development c++
Member Avatar for Ancient Dragon
0
219
Member Avatar for archangelzero6

Alright, Here is my problem. I am using VB 2008. I am trying to get information from comboboxes to link to others. by that I am trying to get a flowlist going. box1= vehicle year box2= vehicle make..... then model, etc. I appreciate any help that comes my way. here …

Software Development vb.net
Member Avatar for archangelzero6
0
174
Member Avatar for f.ben.isaac

[CODE] const char* findThisMsgInMem = "Hello World! Everyone is Happy"; if(memcmp(&dataInMem[i], findThisMsgInMem, defaultMsgSize) == 0) { memcpy(&dataInMem[i], newMsg, strlen(newMsg)); //more code here }[/CODE] This is first time for me trying to use malloc, and realloc. Please see the coding example for illustration purposes. Don't worry of this lengthy question, most …

Software Development c++ file-stream
Member Avatar for f.ben.isaac
0
509
Member Avatar for k2k

Hi, I am trying write a program to input and output data from a microsoft access file with java.sql class and the swing class. basically i am on the first stage, trying to figure out different parts. the first thing i would like to know is: (assume it is already …

Software Development java java-swing microsoft-access
Member Avatar for k2k
0
285
Member Avatar for orwell84

I have a problem with a program I'm writing. It's supposed to find the factorial of the number you input, but it's not. The problem seems to be that the recursive function isn't...well...recursing. Right now, when compiled, the program multiplies the number by the number before it. So if it's …

Software Development c++
Member Avatar for orwell84
0
161
Member Avatar for Dragonsfire

So, I'm attempting to write an object oriented program that solves simple sudoku puzzles by checking the rows, columns, and the 3 x 3 grid. [code] #include <iostream> using namespace std; #include "doth.h" int main() { User file: Sudoku call; int flag=0,ptx=0,pty=0; call.Display(); for(;flag != 1;) {[COLOR="Red"] if (Puzzle[ptx][pty]==0) { …

Software Development c++ puzzle
Member Avatar for Dragonsfire
0
96
Member Avatar for trixymix31

Hi, I have a homework problem in where I have to count the vowels from a readin file from a flashdrive/harddrive. Then the amounts of each vowel has to be displayed & which occurred the most amount of times & which occurred the least amount of times. Extra credit (which …

Software Development algorithm c++
Member Avatar for trixymix31
0
99
Member Avatar for SUD

I am new to C++ and attempting to complete an exercise my question is How you can use cin.ignore to ignore every character up to and including a specified character – for example a full stop, ’.’.

Software Development c++
Member Avatar for William Hemsworth
0
866
Member Avatar for Azurkan

So A friend and I are new to C++ and we are trying to create a sudoku project and are trying to figure out different ways to do so. Right now we are stuck at the repetition checking. I was wondering if anyone could help us out?? We are trying …

Software Development c c# c++
Member Avatar for nucleon
0
100
Member Avatar for neox183

I was given this assignment to create a function and have the user input a number and the function is suppose to give you the amount of change back. My program is listed below [code] #include<iostream> using namespace std; int change(int,int& ,int& ,int& ,int& ,int& ,int& ); int main() { …

Software Development c++
Member Avatar for neox183
0
92
Member Avatar for Hiroshe

I'm trying to solve [URL="http://code.google.com/codejam/contest/dashboard?c=agdjb2RlamFtcg4LEghjb250ZXN0cxh5DA"]this[/URL] problem. The input file I used was the one on the site: [CODE]4 9 0123456789 oF8 Foo oF8 0123456789 13 0123456789abcdef 01 CODE O!CDE? A?JM!.[/CODE] My abstract idea was: Read the first line, loop the program that many times. Read the next line. Load the …

Software Development c
Member Avatar for Hiroshe
0
216
Member Avatar for erialclaire_238

Can anyone tell me how to loop char in stdio.h? Tnx

Software Development c++
Member Avatar for erialclaire_238
0
75
Member Avatar for erialclaire_238

Need to write a simple declaration program w/c apply the substitution method. substitution table is: *-a $-e /-i +-o --u sample outputs ENCRYPTED MESSAGE: m$$t m$ *t 9:00*m /n th$ p*rk DECRYPTED MESSAGE should be: meet me at 9:00am in the park MY PROGRAM: [code=c] #include<stdio.h> main() { char c; …

Software Development c
Member Avatar for erialclaire_238
0
207
Member Avatar for stephen lowry

hi guys i have designed software to read data from scales everything so far is so good except (yes theres always an except) part of my data arrives as 899 which is supposed to be 8.99 how can i converty this data to show 8.99 thankyou stephen

Software Development vb.net
Member Avatar for stephen lowry
0
121
Member Avatar for m610

I'm having a little trouble shutting down a thread that might or might not be executing when the program closes. The thread, actually there are two of them, is started in an OnTimer event, and in OnDestroy I stop the timers then I want to close the threads. The thread …

Software Development delphi pascal
Member Avatar for m610
0
325
Member Avatar for daviddoria

I often have this situation [code] class OrientedPoint { private: Point P; Vector N; Color C; bool valid; public: //////////// Constructors ////////// OrientedPoint() {} OrientedPoint(const Point &Coord); OrientedPoint(const Point &Coord, const Vector &Normal); OrientedPoint(const Point &Coord, const Color &C); OrientedPoint(const Point &Coord, const Vector &Normal, const Color &C); [/code] where …

Software Development c++
Member Avatar for daviddoria
0
122
Member Avatar for dev_kc

How can i print values on the word document from access table,there are more than 1 records for a single person Here recordcount holds 4 values,bt it is not beng printed on the word doc,it is coming out of the procedure [code] If rs.RecordCount <> 0 Then If Not IsNull(rs!Name) …

Software Development visual-basic
Member Avatar for dev_kc
0
200
Member Avatar for denniskhor

[CODE]/* * PartOfSpeechView.java */ package partofspeech; import org.jdesktop.application.Action; import org.jdesktop.application.ResourceMap; import org.jdesktop.application.SingleFrameApplication; import org.jdesktop.application.FrameView; import org.jdesktop.application.TaskMonitor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; import javax.swing.Icon; import javax.swing.JDialog; import javax.swing.JFrame; import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileNotFoundException; import java.io.IOException; /** * The application's main frame. */ public class PartOfSpeechView …

Software Development java java-swing
Member Avatar for ejosiah
-1
179
Member Avatar for PRATS 1990

Hey guys this is a very naive problem,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, but how do i save the c programs i compiled on borland c++ on the dekstop???????????????????????

Software Development c
Member Avatar for PRATS 1990
0
103
Member Avatar for jaasaria

hi guys im using crystal report 8.5. but i wanted to print some report in the network by using some share printer. it is possible ? please kindly share some idea on how it take. thx in advance.

Software Development printer visual-basic
Member Avatar for bornok15
0
99
Member Avatar for neutralfox

Hello everyone, I am having a problem, I want to transfer the data from a text field which is found in the class "ServerInterface" to a method in another class "Server". I wanted to transfer data to the method "sendData()" in the class Server when the user enter data in …

Software Development java socket-programming user-interface
Member Avatar for neutralfox
0
90
Member Avatar for anandkrishnantc

Hello, I am new to delphi. I have a problem. I have a string which can be of any length. Sometimes with delimiter characters for printing in new line. Now I need to distinguish whether the received string is a number (both -ve and +ve) or any other alpha numeric …

Software Development delphi pascal
Member Avatar for anandkrishnantc
0
178
Member Avatar for wookinhung

Good day, I am currently facing a problem with my VB6 program. I would like to send a form activated from the program of one pc to another pc linked together which doesn't have the same program. How can I do that? I only need to send the form to …

Software Development display visual-basic
Member Avatar for koolsid
0
142
Member Avatar for docaholic

[ICODE]def selsort(l): if len(l)<=1: return l else: for i in range(len(l)): selsort(l[1:]) [/ICODE] Hey guys, this is what I have so far. I have trouble understanding recursion. Anyone know how to use it to do selection sort?

Software Development python
Member Avatar for Dhaneshnm
0
294
Member Avatar for joshmo

I have recently encoutered an error that I have failed to figure out while trying to implement something in MVC. I have used a similar code on another program which seems to work but I cant figure out why this one is not working. I get the error code "cannot …

Software Development java
0
86
Member Avatar for BestJewSinceJC

In netbeans I added a scroll pane + bar inside one of my JPanels. When I drag enough items into the JPanel, the size of the JPanel increases in netbeans. How do I get it so that it stays at a fixed size, so I can use the scroll bar?

Software Development java
Member Avatar for BestJewSinceJC
0
2K
Member Avatar for IrishHenshin

Hi basically I've exhausted my mind looking for resources and help on the Huffman Tree Coding. This is my problem, there are 2 parts to what I have to do, the first done: 1. Given a text file, determine the frequency of each character in the text (map of character …

Software Development c++ queue
Member Avatar for monkey_king
-1
143
Member Avatar for FengG

I tried really hard on this one, finally came up with this, however, there's space between every number in my result because of the code 'print xxx,' , I want to find a way to delete those spaces. Program: let user enter say 555-GET-FOOD, convert it to 555-438-3663 [CODE]alph = …

Software Development python
Member Avatar for FengG
0
6K
Member Avatar for TobbeK

I have a small problem passing values between classes while a textbox is used. I can reach the public variable (field) for the textbox that belongs to the Form class from my other class, but no values in textbox1.text can be passed from the Form class to my other class. …

Software Development
Member Avatar for TobbeK
0
278
Member Avatar for Aristophanes

Hello, I just joined, so if I infringe upon any of the forum rules, then I apologize. Anyway, I have a code for approximating integrals via the Simpson's Method. The problem with the code is that somewhere within the mere 52 lines, I have divided my entire sum by 2. …

Software Development algorithm c++
Member Avatar for Aristophanes
0
334
Member Avatar for toucan

I want to able to search for multiple words on the same line. For example, consider the file with the following contents: .... 11. 15 18 40 53 => 16 19 41 54 12. 03 15 27 64 => 04 15 28 65 13. 25 46 47 91 => 26 …

Software Development c
Member Avatar for toucan
0
138
Member Avatar for turbomen

Please help me again. I have 2 questions in this time. Question 1. Write a program that asks for a start and stop letter and then produces the following: Question one: This time create an array of 7 numbers. Fill each slot with a randomly generated number between 1 and …

Software Development pascal
Member Avatar for FlamingClaw
0
183
Member Avatar for m_sam6

i want to replace a word in string by other word how do this simply ?

Software Development java
Member Avatar for m_sam6
0
94
Member Avatar for denniskhor

How to print Tokenizer and Split out put in Text Area? Normally is use System.out.print() to print them. I wan it print in Text Area or something like text area, anyone can help me out? Thanks.

Software Development java
Member Avatar for verruckt24
0
95
Member Avatar for neutralfox

Hello everyone, I am in big trouble, actually, I am developing a chat in Java. I am still on the server part, but the problem is that when i am clicking on a button to instantiates a class, the whole program freeze, please help me to figure out this problem. …

Software Development java java-netbeans java-swing
Member Avatar for neutralfox
0
2K
Member Avatar for badboizEnt

am a beginner in C++; am writing a program on C++ and i have bin trying to make a user enter his username and to enter a password and If correct the program will output a message such as: "Welcome Name of User” If incorrect my program should allow at …

Software Development c++
Member Avatar for badboizEnt
0
223
Member Avatar for cipherbeale

Hello, I am a newbie to programing but I seem to be getting the hang of things. I am trying to create an plain text encription program that inputs the cipher key and encription text to be accepted via either comma deliminated txt or excel file. I have my program …

Software Development c++ encryption
Member Avatar for shea279
0
109
Member Avatar for thacravedawg

I have an application that accepts around 20 fields of data (string/int) from the user. Then allows the user to edit a dataset in a datagrid, and sort this dataset to display the updated dataset. I now need to take the fields of user input (textboxes) and the applicable dataset …

Software Development dataset xml
Member Avatar for ddanbe
0
122
Member Avatar for msalman

hey, I've two classes and one class inherit the first class. I'm trying to add objects to vector (could be parent or child) and then call the overriding function (print) to display values passed in their respective constructors. But for some reasons only parent class' function (print) is invoked. I …

Software Development c++
Member Avatar for msalman
0
166
Member Avatar for daniwebnewbie

Hi. I just started python programming tonight and am trying to use good practices such as list comprehensions etc. However, I'm trying to get a list of all files in a directory (and subdirectories) and only add the filename to my list if its extension matches one of the extensions …

Software Development python
Member Avatar for daniwebnewbie
0
151
Member Avatar for Takafoo

So having some trouble with the error checking in the below function. Currently if you enter something wrong like r it returns "Pleae Enter next move" which is correct. My problem is that if I enter rrr it will repeat "Please enter..." 3 times instead of just once. I hope …

Software Development c++ puzzle
Member Avatar for Takafoo
0
104
Member Avatar for death_oclock

Is there any way to force fwrite() to write in big-endian format no matter what? I am trying to write a MIDI file and they are always big-endian. Converting every value I write to big endian beforehand would be extremely tedious. Ideas?

Software Development c
Member Avatar for mcldev
0
853
Member Avatar for crumpet

Hi folks, Just hoping someone can point me in the right direction with this one. Say I have these key:value pairs in a dictionary, d1: [CODE="Python"] d1 = {fruit:['apples', 'bananas','oranges','tomatoes'], vegetables:['carrots','lettuces']} [/CODE] And I wanted to remove a list (containing tomatoes, oranges) from the value of the key fruit and …

Software Development python
Member Avatar for daniwebnewbie
0
140
Member Avatar for Alibeg

[code]int **p; p = malloc (x * sizeof *p);[/code] sizeof *p - (i am not quite sure, and i was thinking) does it calculate the size of *p as size of double pointer, size of pointer or as size of variable pointed by pointer another exmaple with same [icode]int **p;[/icode] …

Software Development c
Member Avatar for nucleon
0
102
Member Avatar for killhha

im making a program and when you select exit in the menu i want it to be like: Are you sure you want to exit? Yes No Enter Esc so when you press enter it will exit and when u press esc it will go back to the menu. everything …

Software Development pascal
Member Avatar for killhha
0
285
Member Avatar for jackiejoe

So I have been messing around with Swing and am starting to grasp general functions with buttons and text boxes etc.. But what I want to do is have a main page (JFrame Form) with 3 buttons and when I click whichever button I want it to open another JFrame …

Software Development java java-swing
Member Avatar for weblover
0
120
Member Avatar for erdomester

Hi all! I have several tables in an MsAccess db and I would like to read all data of a certain column to a Hashmap. With 3 tables and using static array, it' working but i have about 300 tables. With the static array, I used sg like this: [code=java] …

Software Development java
Member Avatar for erdomester
0
1K
Member Avatar for bondgirl21

Hi, I want to write a for..next loop...for a "For next " button... when clicked, the loop will execute for a short period (This time should be kept track of by the counter) and stop..... When the button is clicked "For next"...the speed of the object should increase and then …

Software Development vb.net
Member Avatar for bondgirl21
0
107
Member Avatar for daviddoria

I am trying to use the for_each from stl algorithm. [url]http://www.cplusplus.com/reference/algorithm/for_each.html[/url] [code] #include <algorithm> #include <vector> #include <iostream> template <typename T> void OutputObject(const T &obj) { cout << obj << endl; } template <typename T> void OutputVector(const vector<T> &V) { for_each (V.begin(), V.end(), OutputObject); cout << endl; } [/code] I …

Software Development algorithm c++
Member Avatar for daviddoria
0
576

The End.