132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for stewie griffin

I trying to get text only from html code (no tags and exec) I used the next command (regular expression): htmlSurce = htmlSurce.replaceAll("\\<.*?*\\>", ""); it works fine but all the text between <!-- --> is not removed how can I remove it???

Software Development html-css java regex
Member Avatar for stewie griffin
0
213
Member Avatar for the_fool

I'm writing a class program for a pre-wrote driver. I'm having issues accessing the array variables from the driver. I know my problem is that my setProject is trying to take my array as an argument, but the specification calls for two ints(array index, array index value). But I'm not …

Software Development java
Member Avatar for JamesCherrill
0
108
Member Avatar for xhollowpointx

Ok so first off hello all and thanks in advance for your help. Ok so I've done some research with regards to the error messages I'm getting and I've checked all my curl braces so i don't know what could be wrong with. Anyways I'm writing code to emulate the …

Software Development java
Member Avatar for stultuske
0
282
Member Avatar for gunjan_29

how can i find the first word in my sentence having 'w' character. This character can be present anywhere in my word. Lets take an example of sentence "Hi, what are you doing here abxwxyz? So the result should be what.

Software Development c++
Member Avatar for WaltP
0
122
Member Avatar for Mz3g

Hi guys, I'm writing a program that can read the date and the time separately. The only function I knew is ctime but it reads both of them, so is there any functions that can reed the date as: month day, year and time as: hour::minute::second Thanks!

Software Development c
Member Avatar for Mz3g
0
105
Member Avatar for ah.MirZan

Hello, currently I'm working on my institute project. i've got some problem with me float data, when i enter the basic salary at the time of adding new employee, its not saving into my output file [data.txt] also not shown up when i search. also i got same problem in …

Software Development c database-design
Member Avatar for WaltP
0
241
Member Avatar for tnecniv

Hi all i need some help in my merge sorting [code] class Database { protected: struct data { string pName; string pCat; int pBarcode; double pPrice; string pMan; int pStock; int pSold; data *next; };//struture of product } [/code] [code] void Database::topX(int number,data output[]){ data *cur=_head; data* *sorted=new data*[_n];// new …

Software Development c++
Member Avatar for tnecniv
0
106
Member Avatar for lukebradford

Hi all, and thanks in advance for your help. I have a program which stores some large arrays of ints and reads and writes from text files. main() takes commands with cin and then runs various functions. One of these, generateSentence(), takes three ints and a char* as arguments, but …

Software Development c++ visual-studio
Member Avatar for lukebradford
0
286
Member Avatar for hurricane123

double mean (int scores[], int numberOfStudents); double standardDeviation (int scores[], int numberOfStudents); perform the following task by using above function: 1.find maximum 2.find 2nd maximum 3.find minimum 4.find mean 5.find standard deviation 6.display scores 7.read a new set of scores 8.exit program

Software Development c++
Member Avatar for hurricane123
0
126
Member Avatar for ButchMeatcook

Here is my program so far: [CODE] #include <stdio.h> #include <string.h> #define max 200 typedef struct { char triple[6]; unsigned index; unsigned lower; unsigned upper; } mpn; unsigned load_MPN_table (mpn *mpn_table[], FILE* input, unsigned max_size) { unsigned i; for (i=0; i<max_size; i++) { fscanf(input, "%s%u%u%u", mpn_table[i]->triple, &mpn_table[i]->index, &mpn_table[i]->lower, &mpn_table[i]->upper); // …

Software Development c
Member Avatar for ButchMeatcook
0
3K
Member Avatar for WhyteRyce

Ok, so I wrote this generic/simple program for a class but am having some trouble with the pauses in the program. I want to use [COLOR="Green"]cin.get();[/COLOR] or [COLOR="Green"]cin.ignore();[/COLOR] to pause my program so I can avoid [COLOR="Green"]system("PAUSE")[/COLOR](word on the street is:shit sucks) and make it look cleaner. The thing is, …

Software Development c++
Member Avatar for WhyteRyce
0
301
Member Avatar for GowriJai

I have created a Cryatal Report and set its Access database(.mdb) during design time. I have imported the crystal report into VB.NET. now i want to know how can we set the database path during runtime. The database to which i've linked will change its path and name every year. …

Software Development database-design vb.net
Member Avatar for kacebaza
0
130
Member Avatar for shoby

C program to perform Matrix operations such as Addition, Subtraction, Multiplication and Transpose according to the user’s choice. displaying following menu. ------------------ MAIN MENU ------------------ 1. MATRIX ADDITION 2. MATRIX SUBTRACTION 3. MATRIX MLTIPLICATION 4. MATRIX TRANSPOSE 5. TO EXIT --------------------------- Please enter your option <1/2/3/4/5>: The program should ask …

Software Development c matrix-multiplication
Member Avatar for jmsDC
0
469
Member Avatar for blackrobe

I am running Windows 7 on one machine and Linux Debian on another. I am creating a C application using NetBeans. It seems to be working just find on Linux when I run it there. But when running on Windows, messes up the output somehow, kinda prints the output more …

Software Development c c# c++ debian
Member Avatar for WaltP
0
178
Member Avatar for rahul8590

I have been working with opengl for past 2 months and find in very difficult to manage with it . The actual code for rendering the image is very less , compared to the code written to handle the view and other opengl attributes / controls. Is there any library …

Software Development c++ opengl
Member Avatar for mrnutty
0
153
Member Avatar for som3aman

Hey guys, I'm kinda new at C++ and need help writing a program that finds email addresses in text files and stores them in an array. The email addresses are then filtered to make sure there are no duplicates. They are then copied to an output file. The program should …

Software Development c++ email open-source
Member Avatar for VernonDozier
0
168
Member Avatar for tomtetlaw

If a 3D box(a bounding box) knows it's position, it's width, it's height and it's depth, what would be the most efficient(can run in real time) way of detecting if a 3D co-ordinate is inside that box? I already have something in place to check for it but I am …

Software Development c++
Member Avatar for mrnutty
0
87
Member Avatar for ace8957

Hello everyone I have been trying to learn the greater mysteries of linked lists and have come across an error that is inexplicable to me at my current level of understanding. I have written a program that attempts to form a linked list to store student information in the form …

Software Development apple c++ data-structure linked-list
Member Avatar for ace8957
0
177
Member Avatar for itmasterw

Hi, I used to be able tpo do this but must of forgot something. I am trying to write to Excel sheet and while I have the right references, but something particuarly with the ranges I am doing wrong. Can someone please tell me what I am doing wrong. here …

Software Development dataset
Member Avatar for itmasterw
0
89
Member Avatar for deraj8

I have looked everywhere but i have not been able to find any thing about comparing two strings alphabetically. I tried comparing the characters of each string but i do not know what comparing characters actually does. i am assuming it just compares the ascii codes of each character? [CODE] …

Software Development c++
0
263
Member Avatar for johndoe444

Frequently we need to copy-paste a code snippet and compile-run it. The problem is that the lines of code are tagged by line number. So what utility to use to elegantly discard the line numbers?

Software Development shell-scripting
Member Avatar for Skifter
0
268
Member Avatar for famousb

Greetings all, I've been programming local applications in Delphi quite awhile, but i only consider myself a so-so programmer... and i've never done anything server based. I also do a fair amount of web/PHP programming. That said, i'm trying to create a small program i can run on my Windows …

Software Development delphi pascal web-server
0
70
Member Avatar for copa1x1

hi, i found this site by accident and am giving it a go for some help needed. I am new to linux and am using Debian Lenny at the moment. I am finding that a lot of my tasks can be made a lot simpler and quicker if i just …

Software Development shell-scripting storage
Member Avatar for Skifter
0
195
Member Avatar for Tech B

I used [URL="http://www.parallax.com/Store/Education/KitsandBoards/tabid/182/CategoryID/67/List/0/SortField/0/Level/a/ProductID/313/Default.aspx"]Parallax's Basic Stamp Homework Board[/URL] and an [URL="http://www.radioshack.com/product/index.jsp?productId=2909788"]accelerometer[/URL] to use as a mouse. It works better than I thought it would. [URL="http://sourceforge.net/projects/pyserial/"]PySerial[/URL] is used to grab the debugged values from the stamp. The circuit is compiled of two push buttons, 2 LEDs to tell when a button is …

Software Development python
0
275
Member Avatar for trippinz

[B](Post was originaly posted in an XBOX forum - No help.)[/B] [code]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; namespace Xbox_Live_Bio_Template { public partial class Form1 : Form { string a = "╋"; string b = "━"; string c = "┃"; string …

Software Development
Member Avatar for trippinz
0
231
Member Avatar for lgonzo

hello everyone, have a c++ test coming up and i am completing some practice problems, wondering if could look over what have so far what i got is in red. if see errors plse help me out

Software Development c c# c++
Member Avatar for tomtetlaw
0
81
Member Avatar for Mitja Bonca

I would like to know if there is any other way to create a doc (or txt) file, then this way that I have in my code: [CODE] if (!System.IO.Directory.Exists(System.IO.Path.GetTempPath() + @"TestDirectory")) System.IO.Directory.CreateDirectory(System.IO.Path.GetTempPath() + @"TestDirectory"); string LogDatoteke = System.IO.Path.GetTempPath() + @"TestDirectory\TestFile.doc"; StreamWriter zapis; zapis = File.CreateText(LogDatoteke); zapis.WriteLine("Some text 1"); zapis.WriteLine(""); …

Software Development
Member Avatar for apegram
0
113
Member Avatar for aatwo

Hey, sorry if this question seems basic however I am relatively new to C++ and have done some searching around but to no avail. I then came across this community and thought I would try it out :) Basically, using Visual C++ 2008, I have a custom data structure, lets …

Software Development c++ data-structure visual-basic
Member Avatar for aatwo
0
139
Member Avatar for help_please

Hi im trying to make a 10X10 board using arrays and have to fill up 2/3 of the board with the letter b, and 1/3 with the letter x. Right now i have created the board and my output shows up as zeros for some reason. can somebody please help? …

Software Development java
Member Avatar for BestJewSinceJC
0
134
Member Avatar for CreativeCoding

So in my last problem, someone said "Use a pointer" (or something like that). When I googled it. It had to do with memory blocks (at least, I think). So what is it? And, oh yeah, can you make it as simple as possible. I have tried seeing what it …

Software Development c++
Member Avatar for Excizted
0
134
Member Avatar for i686-linux

I have a bunch of text files with different formats that somewhere in the file have email addresses. I would like to be able to parse through any number of these files for email addresses. Here are the types of input: CFO: [email="some_cfo@domain.com"]some_cfo@domain.com[/email] [email="misterman@domain.com"]misterman@domain.com[/email] The Main Man [email="mainman@domain.com"]mainman@domain.com[/email] To take …

Software Development email shell-scripting
Member Avatar for Skifter
0
1K
Member Avatar for FlippA

Hi All, I am trying to create a GA to solve timetabling for exams, so far I have created a array of exams e.g. [2,3,5,4] means exam 2 is held at time slot 1 and exam 3 is at time slot 2. //This is the testChromosome.ChromosomeArray is the sample code. …

Software Development
Member Avatar for FlippA
0
129
Member Avatar for emma.parsons

I am new to programming in Python and I am just wondering if I could have some help. I am trying to write a program which creates diary entries for events and I am currently trying to convert the raw_input from the user into a date (yyyy/mm/dd) and time (24hr …

Software Development file-system python
Member Avatar for hondros
0
226
Member Avatar for dorkwad

hey mates We're writing a class "intArray_t" in c++ and we're supposed to forbid operations like: [CODE] intArray_t* t = new intArray_t(); intArray_t* t2 = new intArray_t(); //some code here, inserts and so on t = t2; [/CODE] and [CODE] intArray_t* t = new intArray_t(); //some code here, inserts and …

Software Development c++
Member Avatar for dorkwad
0
199
Member Avatar for aianne

Hi! I need help! I need to create a program in c++ that ask a question, there is a multiple choice, display if your answer is wrong or correct. Like the gameshow "Who wants to be a millionaire" and included "LIFELINE" I tried and it runs but when I chose …

Software Development c c# c++
Member Avatar for tetron
0
246
Member Avatar for Sune

I need help with the following course assignment. Operator overloading shall be implemented in an existing composite Class. The overloaded operator shall be used to compare objects (strings) in a bubble sort sequence. It is not allowed to use Friend or Inheritance. My problem is if operator overloading only should …

Software Development c++
Member Avatar for tetron
0
220
Member Avatar for JaxConer

Hello. First of all i'm compete newbie in the python. And second i was wondering for some time what does the value 'i" do in python or is it a value at all? I'm sorry if i'm pre-posting a question that have been answered already. This is the example : …

Software Development python
Member Avatar for vegaseat
0
132
Member Avatar for Forte1292

I need to create a linked list where I can continue to input integers and I'm not sure what I'm doing wrong, but every time I run it I'm allowed to enter two numbers and then I get exit code 216 saying I'm accessing memory I'm not allowed to. [CODE]Program …

Software Development linked-list pascal
Member Avatar for Forte1292
0
167
Member Avatar for Vandithar

Hi, I am using ppm shell to install a perl module in windows. I have set http_proxy=http://localhost:8080. I don't have proxy server i am using TATA Indicom Connection. When i tried connecting and downloading perl module i got error like this: [code] ppm> install Mail::Sendmail Downloading Mail-Sendmail-0.79...failed 500 Can't connect …

Software Development perl
Member Avatar for d5e5
0
378
Member Avatar for calccrypto

can anyone tell me what i did wrong with the decryption part of this code? ive been looking at it for some time now (while working on other related stuff), and i cant seem to find the problem with it. its getting really retarded, on my part [B]and this is …

Software Development algorithm encryption python
Member Avatar for calccrypto
0
157
Member Avatar for nmcentire

Hello everyone, Been using daniweb to solve most of my programming problems as a guest, and figured it was time to create an account. The problem I'm having, is that I have an assignment that requires use of the ncurses library. I have a partial program that I have to …

Software Development c++ unix
Member Avatar for jonsca
0
138
Member Avatar for D4n1sD

Hello I would like to program my own 2d game into C++. I know its hard I know it needs a lot of time but I strongly believe the only way to learn c++ is to program so if you won't swim deeper you will never learn to swim. I …

Software Development c c# c++
Member Avatar for CodyOebel
0
128
Member Avatar for hamilton168

I am tring to get this program together and can't seem to make it work. Ok. . this program is to take in a file with a matrix of zeros and numbers 1-9. The zeros are shaded and the numbers are part of a block. All numbers and the ones …

Software Development c
Member Avatar for Adak
0
200
Member Avatar for attifa tariq

Create a Console application that behaves like the dos shell. And should work in the same way as the command prompt of windows. Your shell should support the following commands: cd dir del xcopy rd ren md exit copy

Software Development
Member Avatar for attifa tariq
0
142
Member Avatar for VilePlecenta

Goal: Get USB drive letter upon insertion. Done so far: Detection of drive. ------------------------------------------------------------- Im using the method of RegisterDeviceNotification() [CODE]WM_DEVICECHANGE // Received message | DBT_DEVICEARRIVAL // Received Message | DEV_BROADCAST_HDR // Pointer from lParam | PDEV_BROADCAST_VOLUME //Pointer from DEV_BROADCAST_HDR Pointer [/CODE] When getting the index drive letter from dbcv_unitmask. …

Software Development api c++
Member Avatar for VilePlecenta
0
206
Member Avatar for scriptkiddy

Hi guys, I am trying to make a chat bot on Omegle, (sort of line SmarterChild on MSN, but for Omegle). Anyway, my problem is when I send my HTTP post, I am not receiving any data. I call recv, but it does not send me any data. When I …

Software Development c c# c++ first-post web-server
Member Avatar for scriptkiddy
0
274
Member Avatar for LReynolds

Ok, so I've been stuck for a little while now on this problem. I'm trying to pass an array of Tabs and I'm just not doing it correctly. I believe I'm missing something simple, because I need to learn more about what is happening with my code rather than just …

Software Development java
Member Avatar for LReynolds
0
114
Member Avatar for Dorayaki

Hello... I want to ask how to change text from richtextbox/textbox ? For example I have the sentences "The bird fly away" I want to change it into [COLOR="red"]Fly [/COLOR]bird [COLOR="red"]the [/COLOR]away I tried some code like this [CODE]TextBox2.Text = TextBox2.Text.Replace(Fly, The) TextBox2.Text = TextBox2.Text.Replace(The, Fly)[/CODE] it become The bird …

Software Development vb.net
Member Avatar for kvprajapati
0
158
Member Avatar for hiz460

Hi, Im trying to add a code which adds a record for me and then saves it. I am also trying to add a code which deletes the record for me. So far, my "Add" button, clears the form, which is what I want. Then when I click on save, …

Software Development vb.net
Member Avatar for hiz460
0
236
Member Avatar for tkud

Hi everyone. I am trying to write a program that controls access to my hard drive.i.e when this program is running, the specified directory can not be accessed. But first, s there any way one can create a folder using c++?

Software Development c++ hard-drive
Member Avatar for tetron
0
130

The End.