132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for perlfan

The following code: Exits immediately and produces the message below when search pattern "[COLOR="Green"]\b\w+{3}\b[/COLOR]" is entered: [code=perl] #!/usr/bin/perl -w #matchtest1.pl use strict; my($pattern); my($true); $_ = '1: A silly sentence (495,a) *BUT* one which will be useful. (3)'; do { print "Enter a regular expression: "; chomp($pattern = <STDIN>); if …

Software Development perl regex
Member Avatar for perlfan
0
137
Member Avatar for Defaye

Ok I need help with this structure its now been split into header and main, I have added a function which runs after adding a new customer which is for writing it to a txt file, the program builds fine but once it gets to the part where it needs …

Software Development c file-system
Member Avatar for Hiroshe
0
152
Member Avatar for goody11

Hey, I was attempting to make a password protection system in windows API where someone can type the password in an editbox and if it is the right password, then continue the program else display an error message box. I've tried a bunch of different things but can't get one …

Software Development api c++ windows-api
Member Avatar for goody11
0
113
Member Avatar for catcit

Hello! I`m new here and I hope you could help me. I have to make o program that takes an excel file, counts the number of columns and extracts only two columns from the file and prints them in a .txt file. The number of the columns are inserted from …

Software Development python
Member Avatar for sab786
0
133
Member Avatar for wantolearn

Hello im trying to create my first software :) this is what im wanting to do There is a text box with 1 command button and inside the text box will store arrays 0-25 for example [code] cypher(0) = "0" cypher(1) = "1" cypher(2) = "2" cypher(3) = "3" cypher(4) …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
110
Member Avatar for spalax

Hi, i'm a beginner in Java. i'm just trying to code a program that extract some specificline from a text file. for example : i want to extract line No 5000 and lineNo 5100 and lineNo 5200. Here is my code, but it only extract just one line from my …

Software Development java
Member Avatar for spalax
0
3K
Member Avatar for ju_10_ve

[B] plz i wont soulotion of my questions by codes : where list is the node pointer for the whole double linked list how i can : 1- add a node after the node that has 30 2- delete a node at the beginning of the list 3- delete a …

Software Development c++ linked-list
Member Avatar for invisal
0
164
Member Avatar for EvilOrange

hi, its been a long time since i've had to work on c and i've stumbled. I'm basically trying to get a string[5] into a 2d array stringarray[10][1] [INDENT][CODE] char string[5]; char stringarray[10][1]; void workfunction(); int main(){ workfunction(); for(i=0;i<10;i++){ printf("%s", stringarray[i][0]); } } workfunction(){ for(j=0;j<10;J++){ //does something to get me …

Software Development c
Member Avatar for EvilOrange
0
121
Member Avatar for k007

This is part of an assignment that I am doing. I have to create a Queue (FIFO) using templates. I have been able to create that and it works. There is one more part to this same assignment where I am unable to figure out how to proceed. Here is …

Software Development c++ data-structure queue
Member Avatar for k007
0
1K
Member Avatar for gauravmishra

[code] #include<iostream> using namespace std; class sample { static int i; public: sample() { cout<<"base:construcotr"<<endl; cout<<this<<endl; } ~sample() { cout<<"destructor"<<endl; cout<<this<<endl; } sample(const sample &s) { cout<<"copyconstructor"<<endl; cout<<this<<endl; } /* sample operator =(sample s) { cout<<"==operator called"<<endl; cout<<&s<<endl; return s; }*/ }; int sample::i=0; sample fun(sample x) { cout<<"hello"<<endl; cout<<&x<<endl; …

Software Development c++
Member Avatar for mrnutty
0
110
Member Avatar for Lioshenka

Hello all, in time of need I always come here to cry for help) Anyways. What I need to do is to store data about people in a binary tree. They need to come from a file, but for now I can hardcode them in. To put it simple, I …

Software Development c
Member Avatar for Lioshenka
0
153
Member Avatar for Aiban

Hi There. My code is functioning well these days ... my first project which is a big project is nearing completion and would like some ways of tidying up some functions. It's a backup program and when you press a button it backs up a section of your system. Here …

Software Development python
Member Avatar for Aiban
0
627
Member Avatar for jake43

I have an issue with this assignment, the instructor says that I use the brackets incorrectly that is why the program will not compile. Please provide feedback to correct program. #include <iostream> using namespace std; int main() { system("color 4"); restart: int number, ans; number = rand() % 100 + …

Software Development c c# c++
Member Avatar for Salem
0
205
Member Avatar for Laik

Hi guys...I am starting with Qt and I have problems with configuring it. It write: "Start C:/Apps/Qt/demo/demo.exe... This proccess could not be started !" I am using Qt Creator 1.2.1 on Win XP SP2. In code: [CODE] #include <QApplication> int main( int argv, char* argc[]) { QApplication demo(argv,argc); return demo.exec(); …

Software Development c++ qt
Member Avatar for Laik
0
73
Member Avatar for smoore

I think all together its about 2000 lines of code give or take. Took me a good 2 weeks to complete. The program is called Character Creator. What is does is basically creates characters with skills / stats / attributes and a custom image that you provide. There are a …

Software Development java storage
Member Avatar for VernonDozier
0
312
Member Avatar for cougarclaws

OK, with some help from all of you, I have this working, but I am at a loss as to how to display the number of steps the user asks to show (if they say 10, then every tenth answer displays until the final one) and we need this to …

Software Development c++ display
Member Avatar for cougarclaws
0
129
Member Avatar for ddanbe

I'm working on a Complex number struct. To display the numbers I've overridden the ToString method like this: [CODE=c#]public override string ToString() { if (_imag >= 0) return String.Format("({0}+{1}i)", _real, _imag); else //imaginary part negative return String.Format("({0}{1}i)", _real, _imag); }[/CODE] Works fine. My numbers get displayed as (a+bi) or (a-bi). …

Software Development
Member Avatar for sknake
0
329
Member Avatar for Kecy

I was trying to install sql server 2008, and came across a problem. After testing the setup files, I got this result: passed 10; Failed 0 and Warning:1. The warning is for the windows Firewall image. Can someone please quickly tell me how to handle this an continue with my …

Software Development sql vb.net
Member Avatar for sknake
0
93
Member Avatar for caierhui

//The Calculate and exit button does not appear every time i run the program... HELP PLEASE.... import java.awt.event.*; import javax.swing.*; import java.awt.*; public class Assign_1 extends JFrame { private static final long serialVersionUID = 1L; private JLabel quizOneL,quizTwoL,quizThreeL,quizFourL,AverageScoreL; private JTextField quizOneTF,quizTwoTF,quizThreeTF,quizFourTF,AverageScoreTF; private JTextField weightOneTF,weightTwoTF,weightThreeTF,weightFourTF; private JButton calculateB, exitB; private CalculateButtonHandler …

Software Development java java-swing
Member Avatar for quuba
0
107
Member Avatar for group256

Hi everyone, I'm trying to do my assignment, and in there, I'm supposed to use a nested class with which seems I'm facing a lot of difficulties. To make things easy to understand and debug, I made a small piece of code as follows: [CODE]class outter { public: int getID(); …

Software Development c++
Member Avatar for Sky Diploma
0
146
Member Avatar for caramel91

Hey,just wanna consult any expert,currently i'm studying visual basic.NET myself by using this book "Sybex Mastering Visual Basic 2008",all i wanted to know is i can't find any task or homework to evaluate how well my understanding to it,of course,i'm not like some other people who just read over the …

Software Development vb.net visual-basic
Member Avatar for calsey
0
110
Member Avatar for thanatos1

hi guys, i'm wondering how to calculate a probability and make the program respond to the result. for example, in this little text RPG i want the drop rate of certain items to differ after the player has killed an enemy, or the accuracy rate to change based on the …

Software Development
Member Avatar for sknake
0
196
Member Avatar for recycle_carlbin

This code will run but it has some errors in it( I mean,logically wrong.) What is its error? Can you help me figure it out? [CODE]void preOrder(){ myPreOrderTraversal(this); } int myPreOrderTraversal(BinaryTree t){ if (t != null) // {} missing return t.getRoot(); //return should be removed myPreOrderTraversal(this.getLeft()); //replace this with t …

Software Development java
0
82
Member Avatar for Dajer

hi there i have 2 forms that each one has a datagridview. i want when i fill dgv1 in form1 and press a button the dgv1 data has been sent to the dgv2 in form2.But it doesn't work. form1: [CODE]public string str; private void button1_Click(object sender, EventArgs e) { str …

Software Development
Member Avatar for sknake
0
193
Member Avatar for speedy gonzalos

Hi I am trying to update more than 1 field in an Access table. I am developing a windows application using an Access database in vb.net. This is the code that i have for my Update button, which works fine if i want to update the field 'CategoryName' however when …

Software Development vb.net
Member Avatar for sknake
0
2K
Member Avatar for selvaganapathy

Hi, I am designing a Task Manager like Application in C#. It displays the currently running processes. I used to get the Process detail using Process.StartInfo. But Process.StartInfo.UserName is empty for all process. How can get the UserName for the currently running processes.

Software Development
Member Avatar for ddanbe
0
568
Member Avatar for samoual

i have problem with compiling vb6 application not certin one but all even the one that i have compile before it just give me automation error with ok and help since i dont have the msdn library its not useful i have remove and install vb6 but still the same …

Software Development visual-basic
Member Avatar for dspnhn
0
299
Member Avatar for Stefano Mtangoo

I want to use folded panel in wxPython, like one In explorer in Windows XP. I have tried to check through API and Demo but I cannot Get Idea. The Demo example is complicated Anyone to get me up and running. I'm still googling, but your help is highly appreciated …

Software Development api python windows-api
Member Avatar for Stefano Mtangoo
0
206
Member Avatar for Stefano Mtangoo

I have two different pyApps, and I want to make a task bar Icons. For one I use .ico file and another .png file. The .ico one works but not the .png file. Does it mean I cannot use PNG file to make taskbar icon? Here is a code that …

Software Development python
Member Avatar for Stefano Mtangoo
0
93
Member Avatar for gretty

hi My random number function is meant to loop 6 times & output 6 different numbers. But instead it outputs 6 of the same numbers. How do I fix it? :) Any advice would be really helpful. [CODE=cplusplus] #include <iostream> #include <fstream> #include <cstdlib> #include <ctime> #include <iomanip> #include <string> …

Software Development c++
Member Avatar for twomers
0
463
Member Avatar for dub4theworld

I am attempting to alter a Blackjack game so that the game throws an exception and repopulates the deck when their are less than 3 cards per player. I am pretty sure I am on the right track but after 3 hours of trial and error I am still unable …

Software Development c++
Member Avatar for Sky Diploma
0
108
Member Avatar for valter

I have a form called MainForm with controls on it say a combobox and textbox. I have a separate class called routines which hold my methods. I am simply trying to control the visibility etc of the controls on MainForm by a method in Routines. The MainForm class is public. …

Software Development
Member Avatar for ddanbe
0
110
Member Avatar for Karthy

[B][I]why C is a not a object oriented program ?[/I][/B]

Software Development c
Member Avatar for 9868
0
124
Member Avatar for Stefano Mtangoo

Hello guys, I have loaded akrip32.dll and can get handle within a function, but cannot get it when calling the function in main() Please help me app.cpp [CODE=C++] #include <iostream> //testing function below //main application int main() { CDRip instance; DWORD ver = instance.GetVersion(); LPGETCDHAND cdhandle; HCDROM handle ; handle …

Software Development c++ display
Member Avatar for Stefano Mtangoo
0
199
Member Avatar for iamsmooth

So for my comsci assignment, I need to read in this text file with a butt load of messages. Here is what the text file looks like: [code] 1 R Jemma Harry What were you thinking? Harry, You seriously need to stop claiming your paperclip orders under the heading art …

Software Development c++
Member Avatar for thelamb
0
116
Member Avatar for RobBrown

I am getting an error of "syntax error befor "else" " when i enter this code into the compiler: [CODE]#include <stdio.h> #include <stdlib.h> int main () { float Balance, creditDebit, newBalance; printf("This is your checkbook balancing utility.\n"); printf("You will enter your current balance followed by\n"); printf("checkbook entries. Use + and …

Software Development c
Member Avatar for yellowSnow
0
182
Member Avatar for Pacman21

Hi All on Daniweb.. I am starting a little project that needs hardware and software.. I decided to first start with the software and thats where Im having some trouble right now.. I can easily make a virtual keyboard that runs in vb.net but what i want it to do …

Software Development vb.net
Member Avatar for Pacman21
0
833
Member Avatar for gretty

Hello I am making a function that reads a text file stores each line into a string array. My problem is I am getting errors with the function but I do not understand what I am doing wrong or how to fix it? Can you take a look & see …

Software Development c++
Member Avatar for mrnutty
0
322
Member Avatar for crazyboy

Hello friends ... I m student. I m thinking to make my career with C++ and/or JAVA. I know little bit about java career and jobs available in market, but i don't know much about C++ career. Is there good opportunities for C++ programmer in market?? Can i get good …

Software Development c++ career
Member Avatar for Ancient Dragon
0
143
Member Avatar for Brandon515

help please ok here is my code [ICODE]void sleep() { energy 100; happy + 20; strength - 1; bladder 70; age + (hour * 8); };[/ICODE] ok? all the varibles are preprocesser defined, you know #define energy 100. i have 2 file in this project main.cpp and Brandon.cpp, the funciton …

Software Development c++
Member Avatar for Brandon515
0
140
Member Avatar for kevlam

hello, what I need to do is have the program break when the display goes off the screen and then continue. I'm exploring "break" options but it seems that break wants to use a paramater like value I need to pause after say 30 threads are displayed. Hope someone can …

Software Development java
Member Avatar for kevlam
0
97
Member Avatar for gingank

Hi guys need your helps. Now i doing the update part for my program. How to i get data from two table after i type the badge id and employee id then i will show other detail in the same form. So how to do that, need to use what …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
68
Member Avatar for nova2177

i wrote a code which should accept only two values, but it seems to accept any values instead. can some show me where i went wrong. sorry about the long code, still a newbie at this. double hr::change_r(double sr) //implementation from class section { dr = sr; if(sr == 17) …

Software Development c++
Member Avatar for nova2177
0
111
Member Avatar for Nada_ward

Hi I have problem on dragging label when the application show msgbox , it stop responding I do n't know what is problem in my code : [code=vb .net] dim l1 as label Dim serverindex, serverP As Integer Dim serverref As String Dim copiedFragment As String Private Sub Form3_Load(ByVal sender …

Software Development vb.net
Member Avatar for Nada_ward
0
124
Member Avatar for cougarclaws

Hi again, My logic is not too good. I am supposed to get this function to be used twice for two different inputs calling the "strings" from within the function and returning the values to main (perhaps my mistake is attempting to call this program twice??? except that is what …

Software Development c++
Member Avatar for cougarclaws
0
185
Member Avatar for vinnijain

HI!!!!!!!!! How can I find the index of same digit which is at diffrent postion in any given number(number can be of any length).... Like we have any number, suppose, 982625 How can we find the index of two 2s in this number......... I have made a form in which …

Software Development c++
Member Avatar for WaltP
0
82
Member Avatar for cougarclaws

Hi all, I have tried this several ways. I need to get the user function to return userIn1 to main. I don't need to read anything from the call to the function, but if I leave out paraneters, it really does not work. My original issue was that the string …

Software Development c++
Member Avatar for mrnutty
0
102
Member Avatar for Smoking Bros

Hi everyone! I'm totally new at C++ but quite good at Java. I know the syntax basics and that kind of stuff in C++ but when it comes to using .h files in my .ccp programs I'm totally on bare bottom. I use Dev-C++ 4.9.9.2 to compile my C++ programming. …

Software Development c++ file-system
Member Avatar for mrnutty
0
509
Member Avatar for makavelixx

Trying to figure out how to get this program to work, its suppose to prompt the user for the data then list the users data but for some reason is not compiling properly. [CODE]#include <stdio.h> typedef struct { int data; char firstName[30]; char lastName[30]; char street[35]; char city[20]; char state[3]; …

Software Development c
Member Avatar for makavelixx
0
97
Member Avatar for sara9111

What the diffrent bettween while looping, conter-controlled while loop, sentinel-controlled while loop,flag-controlled while loop, do while loop and For loop. when we use each one of them??? please, explean in detileas. thanx :)

Software Development c++
Member Avatar for mrnutty
0
132

The End.