132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for CoolAtt

hi . can someone plz explain how to do regex in C. input: a text file. aim: read each line from the text & check if a RegEx pattern exists. finally return that pattern if it exists. plz share any algo or code snippets if u have.thx.

Software Development c regex
Member Avatar for rubberman
0
236
Member Avatar for mrrko

[I]Negotiating a consumer loan is not always straightforward. One form of loan is the discount installment loan, which works as follows. Suppose a loan has a face value of $1,000, the interest rate is 15%, and the duration is 18 months. The interest is computed by multiplying the face value …

Software Development algorithm c++ ios
Member Avatar for Bummpy 1
0
1K
Member Avatar for laguardian

Hey guys! I've created a simple program that given the current day and how many days from the current day, it will determine if it's a Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, where 1 Sun, 2 -Mon, 3-Tues, 4 -Wed, 5 -Thurs, 6 -Fri, 7-Sat My problem is that …

Software Development java
Member Avatar for Majestics
0
376
Member Avatar for ghostile

Hey just a quick question with list <Object*> object; when i put an object in the container i use object.push_front(new thing(param1,param2,param3,param4,param5)); because i have used new how do i go about deleting this certain object in the list i figured somthing like this [CODE] while(p != object.end()) { if((*p)->exists(param)) { …

Software Development c++
Member Avatar for dospy
0
231
Member Avatar for Rmaure

was just wondering if anyone can help me with some homework. I have been trying to figure this out for a couple hours now. I am sure it is probably simple but I can't get it to run. What I have to do is take user input that contains the …

Software Development c++
Member Avatar for dospy
0
222
Member Avatar for RenanLazarotto

Hello guys! I need another help now. My last topic was about editing a image, which I already get working. Now I need a few things: [LIST=1] [*]Open a folder, add every image that is inside it to a listbox (filter all the other files). [*]This one is a bit …

Software Development open-source
Member Avatar for RenanLazarotto
0
215
Member Avatar for kylelendo

Dear friends I am trying to convert an exe file to another file preferrably a BAT file or MSI file I have converted an file into exe but now i want to convert it into another file [CODE] Private Sub Decode(ByVal strFrom As String, ByVal strTo As String) Dim fileIn …

Software Development file-system vb.net
Member Avatar for kylelendo
0
165
Member Avatar for techyworld

Write a program, when given an array of integers, it returns the biggest integer. Can you please tell me what's wrong in this program?? [CODE]import java.util.Scanner; public class Arrayint { public static void main(String[] args) { Scanner input = new Scanner(System.in); int i,index,max; int x; int[] list=new int[x]; max=list[0]; System.out.println("Enter …

Software Development java
Member Avatar for JamesCherrill
0
208
Member Avatar for Rupindersingh

The following program is supposed to sort eight strings in alphabetical order, but its not functioning properly. Can anyone please debug this [CODE]void main() { char *p[8], *s; int i,j,t; clrscr(); printf("Enter the strings:\n"); for(i=0;i<8;i++) gets(p[i]); for(i=0;i<8;i++) { for(j=i+1;j<8;j++) { t=strcmp(p[i],p[j]); if(t>0) { s=p[i]; p[i]=p[j]; p[j]=s; } } } printf("\nSorted …

Software Development c
Member Avatar for Rupindersingh
0
115
Member Avatar for shamusk

Hi everyone, i need to generate random numbers between two values a & b, where both a and b less than 1. Example a random number between a = 0.60 and b = 0.69. what i am trying to do is in C program temp_ins = a + (drand48())*(b - …

Software Development c
Member Avatar for shamusk
0
180
Member Avatar for sahilsinghi

i am truly a beginner.please can anyone assume and help me define main method in this parameterized constructor programme [code]import java.io.*; class studentmarks { String name; double engmarks,phymarks,chemmarks; double tot,avg; public studentmarks(String s,double p,double e,double c) { name=s; engmarks=e; phymarks=p; chemmarks=c; } void compute() { tot=engmarks+phymarks+chemmarks; avg=tot/3; } void display() …

Software Development java
Member Avatar for JamesCherrill
0
369
Member Avatar for aFACE

I am having problems figuring out how to get the results from the strings and then give myself the option to sort through them alphabetically (or numerically). I have the code to the point where it shows the input data but don't know where to go from there. I'm fairly …

Software Development display java java-swing
Member Avatar for JamesCherrill
0
124
Member Avatar for TrustyTony

Learned about hook functions [URL="http://www.daniweb.com/software-development/python/threads/383164/1650339#post1650339"]for a thread[/URL] having problem with bad user input from the documentation. This is result which skips bad inputs.

Software Development file-system python
Member Avatar for TrustyTony
0
950
Member Avatar for M09

Hello everyone I am new programmer ,and i decided learn python and i learned basics in python and i have read book 'Think python' , and other books But now i look to develop my level , and i ask you how can i do that? thank you

Software Development python
Member Avatar for JoshuaBurleson
0
391
Member Avatar for rockout15

i am a newbie so bare with me.. can anybody help me solve this prob. input string was not in a correct format this is my code... i can figure out what wrong with this .. [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using …

Software Development open-source
Member Avatar for Mitja Bonca
0
345
Member Avatar for omeralper

In the main method of a program we always use the code as a parameter: String[] args What does it mean? In the tutorial of java sun, there is a code following [code]public static void main(String[] args) { //this program requires two arguments on the command line if (args.length == …

Software Development java
Member Avatar for hfx642
0
357
Member Avatar for alony

Hi! I'm trying to have the user input the number of hours, minutes, and seconds, and it output what that is in seconds. WHY WONT IT COMPILE... It says i have an illegal start of expresion at private static double hour(). help? [code] import java.util.Scanner; public class timeTest { public …

Software Development java
Member Avatar for hfx642
0
156
Member Avatar for pcolas

I am having problems getting this program to work. It will not compile due to errors for dollarAmount and Breakdown. Could someone please help [CODE]namespace test { class Converter { //classs variable private int currency; public void converter(int currency, int[] breakdown, int[] denom) { int diff = currency; int x …

Software Development
Member Avatar for pcolas
0
2K
Member Avatar for raaif

Im trying to change the title of a mp3 file but it doesnt work ans also error An attempt was made to move the file pointer before the beginning of the file pops up at file seek ive comented it out (ie. '///###@@) in the WriteID3v11() sub heres my code …

Software Development audio file-stream java-swing samba vb.net
Member Avatar for raaif
0
153
Member Avatar for kytro360

I am trying to run the following code in a thread but I keep getting this error: [QUOTE][QUOTE]Cross-thread operation not valid[/QUOTE][/QUOTE] for both listboxes. Heres the code I am using: [CODE] try { for (int i = 0; i < listBox4.Items.Count; i++) { listBox4.SetSelected(i, true); listBox5.SetSelected(i, true); listBox4.SelectedItem.ToString(); string[] details …

Software Development http-protocol multithreading
Member Avatar for nick.crane
0
254
Member Avatar for raaif

I have a listbox with data as follows; [ICODE] 78550Item10 78550Item6 78550Item4 78550Item5 78550Item3 78550Item9 78550Item2 78550Item1 78550Item8 78550Item7 [/ICODE] How am I to sort the items in ascending order based on the digits at the end of the string so after sorting it is like; [ICODE] 78550Item1 78550Item2 78550Item3 …

Software Development vb.net
Member Avatar for raaif
0
1K
Member Avatar for junharefa

Hi all, I have 4 (four) tables using MySql database, ie: [CODE]tb_item ( id_item, (varchar) --> PK item_name, (varchar) price, (double) ) tb_order ( id_order, (varchar) --> PK id_item, (varchar) -->FK date_order, (date) lead_time, (float) order_quantity, (double) ) tb_use ( id_use, (varchar) --> PK id_item, (varchar) -->FK date_use, (date) use_quantity, …

Software Development c# mysql
Member Avatar for junharefa
0
380
Member Avatar for gahhon

i plan to display all of the odd number, and sum all of the odd number. please check with my code, there is something wrong...:) [ICODE]import java.util.Scanner; public class testing { public static void main(String[] args) { int sum = 0; Scanner scan = new Scanner(System.in); System.out.printf("Enter minimum number: "); …

Software Development java
Member Avatar for gahhon
0
186
Member Avatar for csharplearner

Hi all, I am new to C# and i am learning it from home.. so my doubts may seem silly to some of you:( . I am posting here to find some help fr the errors i get.. I am practising namespaces and i keep getting this error when i …

Software Development assembly
Member Avatar for sailaja reddy
0
852
Member Avatar for sharma89bunty

Hello sir, Good afternoon! i am happy to get the help from you. for that thanku very much. but now i need help in the for loop. * * * * * * * * * * * * * * * here is the picture, i want the coding …

Software Development c
Member Avatar for Ancient Dragon
0
99
Member Avatar for sydsine

plz explain these function. how can w divide a number by 3 using only atoi function.

Software Development c c# c++
Member Avatar for cse.avinash
0
453
Member Avatar for jezer08

I have 3 class, 1 for abstract(named Voter) ,1 for the gui components(named LayOut) and 1 for main(named Election). On my main I created an object of the gui class and set the visibility to true and the usual stuffs. but the problem is, on my main I have a …

Software Development gui java
Member Avatar for JamesCherrill
0
163
Member Avatar for meshael

Hello, I know that this is an old thread, but for me it’s new.. I faced this situation where the screen quit instantly, and I knew now that using system() and cin.ignore() aren’t good solutions So, I used the pause(); function, and it goes ok unless there is a data …

Software Development c++
Member Avatar for WaltP
0
97
Member Avatar for Labdabeta

If I make my own math header with similar functions as math.h, can I possibly make it as fast as the implementations of math.h, or does math.h use special hardware or something?

Software Development c++
Member Avatar for BCBTP
0
127
Member Avatar for IT_Student_604

-- hello there!, here i am again asking for some help... i want to retrieve my data from my ms access database and i it gave me this error.. [COLOR="Green"]"Index was outside the bounds of the array."[/COLOR] ------ can someone help me about this?.. i put my code on my …

Software Development microsoft-access open-source vb.net
Member Avatar for IT_Student_604
0
794
Member Avatar for coyanzz

pls any one can help making a simple converter from text to numeric converter, like if i input, one hundred three it will display it in numeric... thank you in advance ^^

Software Development visual-basic
Member Avatar for coyenzz
0
215
Member Avatar for suslady

import java.util.Scanner; class Calculator{ public static void main (String [] args) { Scanner suslady = new Scanner(System.in); int fnum, snum, remander, answer; char operation; System.out.print ("Enter 1st # "); fnum = suslady.nextInt(); operation = suslady.nextChar(); System.out.print ("Enter 2nd # "); snum = suslady.nextInt(); if(operation == '+') { answer = fnum …

Software Development java
Member Avatar for suslady
0
287
Member Avatar for pro_learner

I'm developing a C# windows forms app(Music Database) which can get the path from the access database and play the relevant mp3 file.The mp3 sounds are in a seperate folder.I just need to get the path from the table.Because i show the table also on the window as a Data …

Software Development
Member Avatar for pro_learner
0
165
Member Avatar for carmzy

I'm can you help me how to count my username and password using an array. I confuse where should I put my counter inorder to up to 5. Hope your Positive response..... here is my code: [code] String[] username=new String[5]; String[] password=new String[5]; public void actionPerformed(ActionEvent e) { if(e.getSource().equals(btnAdd)) { …

Software Development java
Member Avatar for NormR1
0
102
Member Avatar for AirWave

Hi,everyone. The problem is when I input "m" or "p" or other single input, it gives "ArgumentOutOfRangeException" in the line "int i = Int32.Parse(command.Substring(1, 1));". "if(command.Substring(0, 1) == "r" && i<= numCols)" these kind of condition use when the input like "r1,r2,r3...", then the following method takes number part as …

Software Development
Member Avatar for kplcjl
0
171
Member Avatar for RenanLazarotto

Hello guys! I'm having such a trouble with editing a image. This is my code: [CODE=C#]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; using System.Drawing.Imaging; namespace Removedor_de_Banners { public partial class Form1 : Form { string caminho = null; int largura = 0; int …

Software Development image
Member Avatar for RenanLazarotto
0
122
Member Avatar for PearlLV88

import java.util.Scanner; public class Exercise3_1 { public static void main (String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter three edges: "); int integer = input.nextInt(); int edge1 = 1; int edge2 = 1; int edge3 = 1; // First condition: edge1 + edge2 should be greater than or equal …

Software Development java
Member Avatar for NormR1
0
172
Member Avatar for xxxferraxxx

Hello, as the Title said: How to minimize the form It's borderless and I need to minimize it while clicking on the Icon Exampel: [url]http://img580.imageshack.us/img580/4212/rewrwerwer.png[/url] Thanks in advanced :)

Software Development vb.net
Member Avatar for xxxferraxxx
0
181
Member Avatar for ilovejava

i have to write a program that displays the value of pi for values for i = 10000,20000.....,and 100000 i have to use the following series pi = 4(1-(1/3)+(1/5)-(1/7)+(1/9)-(1/11_+...+(1/(2i +1))-(1/(2i +1)) any ideas i have to do a program with looping i cant use arrays can someone give me a …

Software Development java programming-construct
Member Avatar for NormR1
0
1K
Member Avatar for kytro360

Hi I am trying to do proxies and I keep getting the above error

Software Development
Member Avatar for kytro360
0
507
Member Avatar for fredfletcher

Hello, I have a question. I found a script on the Internet that lets people change from one language to another, in this case from English to French, but files must all reside in the same folder. The script works, however, my files are in seperate folders in the root, …

Software Development perl web-browser
Member Avatar for wickedxter
0
135
Member Avatar for lse123

I GUESS THIS IS ERROR - CAN YOU CONFIRM? "You can send an ImageIcon object as the Image argument that drawImage() expects." T/F "To start playing the AudioClip, you need to call the start() method on it." T/F // On the obj mean here?

Software Development java
Member Avatar for mKorbel
0
200
Member Avatar for Feriscool

I'm getting a null pointer exception on lines 17, and 22. I'm not positive, but does it have to do with "int number1 = data[0];" having to be static? [CODE]int number = 100; public static final int[][] NUMBERS = { { 1205, 1206 } }; public static boolean method1() { …

Software Development java
Member Avatar for mKorbel
0
197
Member Avatar for juniorsilver

Hey guys I'ld really appreciate if u can help me with this. I'm building an application that has an access database for storing codes for voters. my problem is that after i update my database with the usual vb codes, i'll have to exit the application before the datagrid view …

Software Development microsoft-access vb.net
Member Avatar for juniorsilver
0
2K
Member Avatar for hariharan89

Hi , i am working with openCV 2.1, its very difficult for me to find source for the routine cvLoadImage . I really need to know how does memory is allocated while cvLoadImage is called for my project. could any one please help me on this issue. with regards, sabarish.

Software Development c++
Member Avatar for hariharan89
0
124
Member Avatar for techie929

Hi, I dont know why I am getting segmentation fault when adding the line 'int n' [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char *argv[]) { char* pStr; // no memory allocation int n; printf("enter a string\n"); fgets(pStr,20,stdin); printf("\nvalue of string is %s\n",pStr); while(*pStr!='\0') { printf("value of …

Software Development c
Member Avatar for techie929
0
112
Member Avatar for Master Mascus

Hey guys i got a question to solve, can anyone help me out.. Write a C interactive program that will encode a word or sentence entered by a user. The encryption will be done as follows: For any word or sentence (note: blank spaces, special characters are ignored here, i.e …

Software Development c c# c++ encryption
Member Avatar for Master Mascus
0
169
Member Avatar for thamilalagan

[CODE]struct NUMBERS { char name[MAXCHARS]; struct NUMBERS *value; };[/CODE] i am new to programming ...can anyone explain this for me ?

Software Development c
Member Avatar for cse.avinash
0
83
Member Avatar for pam1003

Hello! could i ask where there's any error in my code for testing prime numbers? cos i tried testing 21 and 49, and they were tested as prime. thanks! [CODE]import math y = int(raw_input("Please input a number: ")) if y < 2: print "It is not a prime number." elif …

Software Development python
Member Avatar for TrustyTony
0
194
Member Avatar for thetraeller94

I want my to create an explorer like application. What control should i use to show the contents of a directory. I tried listview and listbox. Unfortunately i was unable to add items in a listview using the function getdirectories("D:\") I managed to do so with listbox control. But how …

Software Development listview vb.net
Member Avatar for thetraeller94
0
243

The End.