43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for DJSAN10

I want to create a regular expression that matches with the string "B. Hello" or "C. Hello" and so on.. I tried number of things and finally came up with this [CODE]String REGEX = "[A-Za-z]"+Pattern.quote(".")+" Hello";[/CODE] but still no luck.. I tries using '\s' for space but still not working. …

Software Development java regex
Member Avatar for DJSAN10
0
179
Member Avatar for rhone0809

i have a problem with sorting this thing... i want to sort a column without changing the data in the other column. i have an attached document. a picture of my query and database.. tnx :)

Software Development sql vb.net
Member Avatar for rhone0809
0
130
Member Avatar for rushikesh jadha

i have created program below ,but it does not run successfully why [CODE]import java.sql.*; public class Bank { public static void main(String[] args) throws Exception { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); // TODO code application logic here try{ Connection cn=DriverManager.getConnection("jdbc:odbc:rushiDSN"); System.out.println("Connected Successfully"); Statement stmt=cn.createStatement(); stmt.executeUpdate("CREATE TABLE Author(AuID Number(3), AuName Char(15), AuAddr Char(30))"); System.out.println("Table created …

Software Development java microsoft-access
Member Avatar for rushikesh jadha
0
260
Member Avatar for Whoaa512

search and didnt find anything that was close to this. so my assignment is to simulate a simple authentication, where the user enters their original pin or password(numbers only). it must use arrays to assign the password a pseudo-random assignment of 1-3 for digits 0-9. after that the program clears …

Software Development c++ encryption
Member Avatar for Whoaa512
0
346
Member Avatar for apals

MY problem is related to entry of research data. The researchformula is entered into a textbox alongwith other usual form entries like title,subject,startdate etc. The formula consists of alzebra, trignometric, otherfunctions etc. Example [CODE] [B]x = 12; y = 24 + tit[x] + mixer[x]; z = x + sin(x) + …

Software Development
Member Avatar for apals
0
243
Member Avatar for Valiantangel

hi Got 2 questions. 1.How can i simplify 4 variables all with same condition? if a,b,c,d <1 System.out.println("Invalid input");? How to put this in a simple code?I know it can be done individually. 2.if the above condition is false i dont want my code to go further and calculate the …

Software Development java
Member Avatar for DJSAN10
0
90
Member Avatar for inspire_all

i am a bit confused.i am feeling that one should be expert at data structures rather than language.i am learning c++ this semester,learning oop and data structures.[COLOR="Red"]is data structures more important than language?[/COLOR]what can get u into a good company?

Software Development c++ oop
Member Avatar for WaltP
0
128
Member Avatar for Diamond3x

What is "std" and "::" .Like for example, std::cout. Now i know what is cout for but what is std and what are these "::" for?

Software Development c++
Member Avatar for neartoyou
0
255
Member Avatar for kass2112

Hello, The form i am doing takes from the user the item price, then it will calcuate the subtotal, tax, shipping, and total when the button is clicked. How can i update it so if the user adds another item it will update the subtotal, tax, and total when the …

Software Development visual-basic
Member Avatar for kass2112
0
154
Member Avatar for mjacqu4

Hey, I'm a bit rusty at c++ and I'm sure that I'm just missing something stupid, but I have a class that takes in an ifstream object in its constructor. In my main function I create an ifstream, open a file, then pass the ifstream object by reference into the …

Software Development c++ file-stream
Member Avatar for mjacqu4
0
845
Member Avatar for jkembo

I would like to move the mouse cursor from one position to another within a Jtextfield after a condition is satisfied. I do not know what to use. Thank you

Software Development java pc-peripheral
Member Avatar for jkembo
0
644
Member Avatar for dark_sider_1

Hi there, I'm not sure if this is impossible to achieve or not, but I have a C program that I created that is compiled with an a.out executable. Is there a way that I could have it start/run automatically after I log in? I have a Mac running on …

Software Development c
Member Avatar for dark_sider_1
0
217
Member Avatar for MicroD

Hello guys. I'm wondering is it possible to stream mp3 songs from some site with java? I tried to find something but allways everything what i found was only for reading mp3 songs from local disk. If you know feel free to answer me. - Regards, David.

Software Development java streaming-service
Member Avatar for RicardoE
0
1K
Member Avatar for adil_bashir

please check the following piece of code and give the correct code as my program is showing some error. here is the code. public class passingArray { public int getCipherText(int[] c, int len) { int cipher = 0; int e = 7; int n = 130; cipher = (int)((Math.pow(c[len],e)) % …

Software Development java
Member Avatar for DavidKroukamp
0
238
Member Avatar for kolibrizas

[CODE]SqlCommand command = new SqlCommand("SELECT Id FROM users WHERE Username=@Username AND Password=HASHBYTES('MD5', @Password)"); command.Parameters.AddWithValue("@Username", pieces[1]); command.Parameters.AddWithValue("@Password", pieces[2]);[/CODE] doesn't return correct result [CODE]SqlCommand command = new SqlCommand("SELECT Id FROM users WHERE Username=@Username AND Password=@Password"); command.Parameters.AddWithValue("@Username", pieces[1]); command.Parameters.AddWithValue("@Password", pieces[2]);[/CODE] returns correct result, however the data in mssql database has to be not …

Software Development mssql
Member Avatar for kolibrizas
0
183
Member Avatar for Alex_2011

How are you, I created a simple cash register code that makes the user selects the order from different buttons. I have some problem figuring out the following: 1. How can I get the total (if the user selects 1 or 2 or 3 different orders). I need to find …

Software Development vb.net visual-basic
Member Avatar for Alex_2011
0
371
Member Avatar for arindam31

Hi All . I am trying to make a Frame to which we add dynamically Add panels. Also I want to remove panel dynamically . The dynamic Addition is working perfect. Please see the code below: # panels.py #self.Fit() causes the whole frame to shrink.So we are using self.Layout instead …

Software Development python
Member Avatar for arindam31
0
307
Member Avatar for servet

Hi! I use scanners delimiter. The next() function for scanner should return me the string by these punctuators: | . : space But i don't know what to write inside scanner.useDelimiter("") parameter? For example for this string "abc.123,zqw ttt|AAA", scanner.next() should return abc scanner.next() should return 123 scanner.next() should return …

Software Development java
Member Avatar for JamesCherrill
0
126
Member Avatar for Valiantangel

Hi, I want my output to show to two decimals.If the output is $6.075,instead of bring it to $6.08,i prefer it showed $6.07.How am i able to do this? I used the below System.Out but kept getting $6.08. [ICODE]System.out.printf("%s%.2f\n","State Withholding(9.0%):$",stateWithholding);[/ICODE] Thank You :)

Software Development java
Member Avatar for hfx642
0
105
Member Avatar for M.Waqas Aslam

hello ! i am developing an desktop application , i want to make my menus just like in VS2008 have tool box , ,when we click on the main tab it will open and slid down , i want to make same thing , is there any one who guide …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
2K
Member Avatar for SoftShock

This code finds the sum & average of the range of numbers that were chosen. I have int begin = 0, end = 0,sum = 0.0, avg = 0; because I get an error saying that all of those need to be initialized, yet by doing so it gives me …

Software Development c++
Member Avatar for SoftShock
0
277
Member Avatar for randrum1707

Hi everyone, I'm having issues incorporating something required by my assignment. I am supposed to create a class that has 2 private data members. One should be an array of 10 Database (Database being the name of the other class) objects. The other should be an integer that assigns the …

Software Development c++
Member Avatar for randrum1707
0
157
Member Avatar for dwiniers

Hello C++ master out ther i need help guys this exercise is running but the desplay record is in row i want it in column. Thanks in advance! [CODE]#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <iomanip> using namespace std; char book_no[5]; char title[30]; char author[20]; char publisher[30]; char …

Software Development c++ ios
Member Avatar for dwiniers
0
223
Member Avatar for kspecks

So here is something I am writing just to get back into code and I can't find the flaw with it. [CODE] template<typename T> class Array { public: Array(unsigned arraySize): data(0), size(arraySize) { if(size > 0) data = new T[size]; } ~Array() { if(data) delete[] data; } void setValue(unsigned index, …

Software Development c++
Member Avatar for VBNick
0
316
Member Avatar for TMDG

I am wondering how to read a file in c... this requires some more background information before you give me something useless What I have so far: [CODE]#include <stdio.h> int main(void) { FILE *fpr,*fpw; char C; int I; fpr = fopen("cwM.dat","r"); fpw = fopen("echocwM.dat","w"); while (C != EOF) { fscanf(fpr,"%c",&C); …

Software Development c file-system
Member Avatar for WaltP
0
274
Member Avatar for ryklon

Hello! Is there a way to hide the password of your database inside the source code? [CODE=vb.net]"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & Application.StartupPath & "\Database.accdb; Jet OLEDB:Database Password = [B]MyPassword[/B]"[/CODE] As you can see the password is exposed, increasing the risk for the database to be compromise. Is there anything you can suggest …

Software Development cybersecurity microsoft-access vb.net
Member Avatar for Reverend Jim
0
285
Member Avatar for ibeast

Hello, I wrote the following code to create dynamic controls-textboxes and labels. [CODE] ctlRow += 1 ctlRowLocation += 25 Dim new_ForceLabel As New Label new_ForceLabel.Text = "Force" + Convert.ToString(ctlRow - 1) new_ForceLabel.Location = New Point(txtForceLabel.Location.X + 2, ctlRowLocation) new_ForceLabel.Height = 25 new_ForceLabel.Width = 50 Dim new_ForceInput As New TextBox new_ForceInput.Name …

Software Development microsoft-access vb.net
Member Avatar for ibeast
0
1K
Member Avatar for adil_bashir

please tell me how to convert an integer type to a String. if possible, give some code?

Software Development java
Member Avatar for stultuske
0
171
Member Avatar for adil_bashir

please give some piece of code that will make me understand that how to pass an array to a method/function?

Software Development java
Member Avatar for adil_bashir
0
183
Member Avatar for adil_bashir

Since i am new to java, so please tell me that is there any way by which i can convert integer array to primitive int?? if yes, give some code.

Software Development java
Member Avatar for adil_bashir
0
254
Member Avatar for adil_bashir

i need to return the ASCII value of the argument passed in the StringtoIntfunc(). But i am not getting the real ASCII values and i think the problem is with the return statements? please help. public class StringIntfc { public int[] StringtoIntfunc(String s) { int j =0; int k[] = …

Software Development java
Member Avatar for DavidKroukamp
0
127
Member Avatar for M.Waqas Aslam

hello ! look , for example i have 2 textboxes in my vb form, i want that when i press enter key the focus move from 1st textbox to 2nd textbox , i use this code on my every control to move focus [CODE] if e.keychar = chr(keys.enter) then textbox2.focus …

Software Development vb.net
Member Avatar for codeorder
0
1K
Member Avatar for AKJo

An application from Delphi 1 (16 bit) has been transferd into Delphi 2007. The main form is always shown behind all other forms, whatever I do. How can I get the normal action from the form, so it is shown on top when it is active. Thanks in advance

Software Development delphi pascal
Member Avatar for DanHamm
0
1K
Member Avatar for zazga

Okay, Im not sure how to put this. So here is my first try, and if it aint clear enough I'll try to explain better. I have made a few scripts that work perfectly fine, but now my client prefers it to come with a GUI. My script needs 2 …

Software Development gui python tkinter
Member Avatar for askandstudy
0
173
Member Avatar for chrisjubb

I'm having problems reading or writing files in my C++ program. I'm using Fedora 16 on a USB stick and Eclipse for C/C++ developers. Here's snippet of code from my program. fp is always 0. I've also got other code that is loading files (which always fail). I've tried running …

Software Development c++ hard-drive ide pc-peripheral
Member Avatar for chrisjubb
0
233
Member Avatar for poojavb

Hello Friends, I need an urgent help on the below topic.... I have created a project which takes the database dyanamically.... Means when the application starts it will ask for the database path....the database will already be created in some or the other folder.... The path for database is stored …

Software Development vb.net
Member Avatar for bilal_fazlani
0
459
Member Avatar for C++ programmer

I have designed a dialog in Qt designer and I want to use the name of each child widget for some coding in cpp file. But the names I have given to buttons etc in Qt designer are not working as pointer.More over their names in ui_[I]mydialogname[/I].h are not the …

Software Development c++ qt
Member Avatar for C++ programmer
0
192
Member Avatar for ringo_tech

hi everybody, i needed to play mp3 audio in my AudioPlayer project i found jlayer is the easiest way to play mp3 audio,it plays well but can't stop playing my GUI stops responding until the audio is finished! any help please this is the code of the playing button -chooser …

Software Development audio gui java
Member Avatar for ringo_tech
0
1K
Member Avatar for C++ programmer

Hi. I made a program and I write this code in order to make the window's size fixed. More over i am using a button to unhide some Groups on main window, But when i compile program, it crashes but when I comment out this line of code the program …

Software Development c++ qt
0
104
Member Avatar for M.Waqas Aslam

hello ! i want to make a xml file to store my Settings such as server name , user name , and password , etc , i try to search how to read and write xml file i found this code for writing an xml file it works fine for …

Software Development xml
Member Avatar for M.Waqas Aslam
0
608
Member Avatar for M.Waqas Aslam

hello ! I want to use JSON in my asp.net project using c# .how can i do that , i am very new in JS and JSON , please help me so that i can start work .i googled about it , and read some posts on different forums and …

Software Development asp.net javascript json
Member Avatar for M.Waqas Aslam
0
190
Member Avatar for shuey79

Hello, I am a beginner trying to make a networked game called Guess Who. I have 2 combo boxes I am trying to read a access database. Whatever is selected in the 1st combo box will be the column to 'lookup' the values in the database. These values should go …

Software Development microsoft-access open-source vb.net
Member Avatar for bmndayakar
0
957
Member Avatar for Sundown G

Hey im new in this.. I want to search the user input in file (by lines) but not all then with this line search on another file ( with the specific line) and show to the user. Example: file1.txt ======= a aa aaa aab aac file2.txt (corresponding md5 hashes of …

Software Development shell-scripting
Member Avatar for Sundown G
0
583
Member Avatar for Labdabeta

I was just wondering how exit worked? Does it use some lower-level language feature in its implementation? Is it compiler-specific? What is it? (I am talking about the function in stdlib.h btw)

Software Development c++
Member Avatar for Labdabeta
0
224
Member Avatar for belama

Hi, I'm using SQL Enterprise Library (Microsoft.Practices.EnterpriseLibrary.Data.Sql) objects and I'm considering using a DbTransaction to execute multiple DbCommand(s) for inserts/updates in one transaction. Let's say these queries take a few minutes to execute, I do not want it to prevent another process from queries the same tables. Considering I do …

Software Development sql
Member Avatar for Momerath
0
403
Member Avatar for Nevicar

Hello everyone, I'm trying to figure out how to overload a function to solve the following problem: "Write two functions with the same name (overloaded function) that print out a phrase. The first function should take a string as an argument, and print out the string once. The second function …

Software Development c++
Member Avatar for zeroliken
0
144
Member Avatar for Killzusall

Hi all, Sorry if this has been asked before, I did a search but couldn't find anything. I am new to programming and thought I'd start with a GUI menu type thing. One of the options is to tell program's to install one after the other. This works fine but …

Software Development gui vb.net
Member Avatar for Killzusall
0
570
Member Avatar for ilovejava

[URL="http://i.imgur.com/iwNHY.jpg"]http://i.imgur.com/iwNHY.jpg[/URL] i already set a path for jdk and etc, it worked before but now it doesnt work the code works on ecclipse so the code is correct but i have to learn how to compile using command prompt check out this image i get this same error i do …

Software Development java
Member Avatar for NormR1
0
305
Member Avatar for konman795

Hi all, this is a homework assignment that I'm not sure how to begin with. We are given all the code and I just need to finish a function to convert digits to words. For example, the string "1, 2, and 3." becomes "One, Two, and Three." The String "10" …

Software Development java
Member Avatar for konman795
0
356
Member Avatar for jakubee

Hello everyone, This is my first post in here :) Need a help with v. simple exercise. I need to ask user to input 10 objects of type Product (String name, Double price). I manage to done this. What i need to do now is to validate this inputs! I …

Software Development java
Member Avatar for DavidKroukamp
0
5K

The End.