132,729 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
[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 | |
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 | |
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 | |
[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++ | |
![]() | 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 ![]() |
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 | |
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 + … | |
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(); … | |
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 … | |
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 … | |
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 | |
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 … | |
//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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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++ | |
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 … | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
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++ |
The End.