64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jiraiya

Hi all, Does anyone know of a way to scan a character from the command line without the enter key having to be pressed? For example, the user would type 'a', which is then picked up and scanned by the program and stored, etc. The only way of scanning input …

Member Avatar for jiraiya
0
142
Member Avatar for DAVe3283

I am writing a C# application that opens multiple child forms to edit specific records in a database. When closing a child form, it asks if the user wants to save the data. However, if the main form is closed, all child forms are closed without prompting. It would seem …

Member Avatar for Geekitygeek
0
817
Member Avatar for DaveTran

How should I order my parameters in a class? I believe that I everything should be in alphabetical order, but what of grouping of different access modifiers. - const - public - private What order should they be arranged in?

Member Avatar for Geekitygeek
0
133
Member Avatar for Connavar

Hi guys and gals I am new to the forums and was referred here by some friends. I am creating a site for a Xerox partner, and I am trying to pull content (a certain div) through, from the Xerox site, to mine, without pulling through the entire site. I …

Member Avatar for Connavar
0
116
Member Avatar for Pooja J.

Hi to all, Here is my code, I want upload file which are only images. All images with jpg, JPG, jpeg, JPEG, gif are uploaded successfully except with bmp file. Plz, help me to find out the prob. why my code is fail with bmp extension file. [code] //file-detail-complex.php <?php …

Member Avatar for Pooja J.
0
816
Member Avatar for princecal

write a pseudocode to read a sequence of numbers terminated by 777. the pseudocode should count and print the number of negative values and zero values. the algorithm should also print the product of the positive number.

Member Avatar for shaiq
0
502
Member Avatar for prashanth s j

Hi all, I have got a regular expression of the form: "tcp:"+'[0-9]+' It works fine when using the re.search( ) module. But if I want to grep for a line in a file that contains the pattern required, then the things wont work. Grep sees the regualr expression as tcp:+[0-9]. …

Member Avatar for prashanth s j
0
146
Member Avatar for pato wlmc
Member Avatar for digitalsindhx

I have created simple database project, using vb.net, ado.net, oledb, datatable, datagridview. My program is working nice, I just need Help with how to add, delete, update and edit records. Can any one please and please help me in this case, or can provide any good tutorial or source code …

Member Avatar for digitalsindhx
0
506
Member Avatar for bigbags911

it works but instead of it reverseing the characters i want it to do this "This is a test.” should be reversed to read: “test. a is This” i want it to do all this in a text file [code]import java.io.*; import java.util.*; public class reverse{ public static void main(String[] …

Member Avatar for bigbags911
0
133
Member Avatar for josephe

Ok, so I'm learning PHP (and quite enjoying myself so far). I'm making a web page that will have a list of text boxes for the user to type info in. The boxes will be created dynamically via JavaScript (later on in development), and the id/name of the box will …

Member Avatar for josephe
0
231
Member Avatar for chetanbasuray

I need to check the income for a particular department for a certain period of time. My inputs are the two dates between which the income has to be calculated,and the department name,the department name is the primary key for my table I need to show the transactions for the …

Member Avatar for chetanbasuray
0
96
Member Avatar for jenjenjenjen

Hey guys and gals. Like I said in my last post I am in college. Well I wrote a program and a friend who majored in computer science said that my program will work... Well it does but doesnt do like I want. I am in need of advice using …

Member Avatar for kvass
0
66
Member Avatar for mommie

Trying to finish my program for binomial coefficients. It compile but it keeps giving me 0 which is not correct. I think it may be a problem with my for loops but I can't figure it out. Here is the pseudocode: [CODE]/* pseudocode for Binomial Coefficients */ int binomial(int n, …

Member Avatar for VernonDozier
0
100
Member Avatar for ShaggyB

hey, I've just joined daniweb - usually just search around on the net till i find solutions to coding problems but this time i'm stuck.... probably a simple problem but nonetheless... Anyway, I'm making a program that connects to an access database, retrieves data and the data is taken into …

Member Avatar for ShaggyB
0
111
Member Avatar for jascook

Hi all, I've uploaded my asp.net site to my ISP. It works fine locally on VWDE 2005, in that I can create users, assign them to roles, and control role access to website folders etc. Obviously this is all with SQL 2005 Express on my PC. When I upload it …

0
87
Member Avatar for drewpark88

Hey Guys, I need to send an HTML email with the last 4 digits of the credit card. Everything else sends fine but must be an error in my code, probably didn't do it right can someone correct me please : ) [CODE]XXXX-XXXX-XXXX-".substr{$_REQUEST['cc_number'] , -4, 4}[/CODE] * Yeah I know, …

Member Avatar for edwinhermann
0
210
Member Avatar for micmagicfly

What is wrong with the following code segment? [CODE] const int limit = 100; int eprep[limit]; int examp[limit]; for (int index = 0; index <= limit - 1; index++) { eprep[index] = 0; examp[index] = 0; } if (eprep == examp) cout << "Equal"; [/CODE] At first I thought it …

Member Avatar for Banfa
0
96
Member Avatar for Violet_82

Hi there, could anybody tell me how to compile a program and run it using Visual C++ 2005? This is what I have done: -File, New, Project; -In the menu, I choose Win 32 and then Win 32Console application; then I give a name to the project and save that …

Member Avatar for Violet_82
0
167
Member Avatar for faizal4cool
Member Avatar for ShawnCplus
0
112
Member Avatar for mrcniceguy

hi everyone! i`m trying to display a friend of a friend from a friend table,but i dont know how to do it. i have a table called friends,which has id,friendid and userid fields. Now i want if a member loggin, to be displayed a list of friends of his friends …

Member Avatar for mrcniceguy
0
115
Member Avatar for BigPandaCake

What I'm working on is a video rental project in visual basic 2008. I have a local database which contains info on DVDs, Members and a table for current rentals. [B]The columns i have in the current rentals table are:[/B] MemberID | DVDID | DaysOnRent | DateRented | DueDate | …

Member Avatar for BigPandaCake
0
187
Member Avatar for micmagicfly

What is the side effect in the following function? [CODE] int ExamPrep (int param1, int& param2) { if (param2 = param1) return param2; else if (param2 > param1) return param1; else return param1 * param2; } [/CODE] A side effect is defined as the result of an operator, expression, statement, …

Member Avatar for Spartan-S63
0
130
Member Avatar for ITgirl2010

This is the question i was given --------------------------------------------------- Here is a program that prompts the user to enter a student’s marks, and then prints out whether they have passed or failed a unit. '''calculate a students grade given their final mark''' def calcFinal( asg1, asg2, exam ): final = asg1 …

Member Avatar for snippsat
0
165
Member Avatar for garyinspringhil

I'm a newbie so please be patient... :) [CODE]def canvas(self): import qt self.setCaption('My Canvas') c = qtcanvas.QCanvas(self) # <- gives the canvas a parent QObject c.resize(315, 207) v = qtcanvas.QCanvasView(self) v.setGeometry(QRect(200,590,321,211)) lay = qt.QVBoxLayout(self) lay.addWidget(v) v.setCanvas(c) l = qtcanvas.QCanvasLine(c) l.setPen(qt.QPen(qt.Qt.black)) l.setPoints(10,10,390,390) l.show() v.show() c.update() l1 = qtcanvas.QCanvasLine(c) l1.setPen(qt.QPen(qt.Qt.red)) l1.setPoints(20,60,10,230) l1.show() …

Member Avatar for garyinspringhil
0
139
Member Avatar for rumpleteaser33

Hi I'm doing a project where I need to have people register by entering a username and password. When they click register I want them to be added to the database, but I'm having trouble doing this. Can anyone help? This is my first time using VB. This is the …

Member Avatar for rumpleteaser33
0
238
Member Avatar for alcx88

I am not sure what this means and I get it all the time. Can someone help me fix this code? [ char add_account(account_t a[]) 7 { 8 int i, N=1000000; 9 char ch; 10 char str1, str2; 11 int m=20; 12 13 for(i=0;i<N;i++) 14 { 15 if(a[i].number==0) 16 { …

Member Avatar for jephthah
0
2K
Member Avatar for corby

hi in my drive file this is what my constructor looks like. im passing an array to it the constructor so that i can assign it to set[num]. what i want to know is what would this look like in the header file? drive-file: [CODE]IntegerSet::IntegerSet( int a[]) { for ( …

Member Avatar for Sodabread
0
209
Member Avatar for Yeen

I have to use a queue in an solitaire assignment, but I'm having some trouble using the linked list Queue class that I made. It won't take arrays at all. [code] class Testing { public static void main (String [] args) { Queue testlist = new Queue(); // testing Queue …

Member Avatar for lafigueroa
0
795
Member Avatar for shahab_qureshi

[COLOR="Red"][B]we want to add functionality like "run" in windows.[/B][/COLOR] [COLOR="Green"]add one text box and button under button write this code [/COLOR] --> [CODE] System.Diagonestics.process.Start(TexBox1.Text);[/CODE] now run it. here you have to give name of processes. for example process name for windows media player is [I][I][B][COLOR="Green"]wmplayer[/COLOR] [/B]so when you write this …

0
45
Member Avatar for majestic0110

Hi all just a quick question, what code do I use to make user input of RETURN(enter button) defaulting to an OK button on a windows form? thanks for your time.

Member Avatar for shahab_qureshi
0
132
Member Avatar for SgtMe

Hi guys! I am in the process of making a game...similar to this one: [url]http://www.miniclip.com/games/nfl-lateral-collateral/en/[/url] I am using the following code to detect key presses: [CODE] pygame.event.pump() key = pygame.key.get_pressed() if key[pygame.K_LEFT]: ... [/CODE] How can I detect if a key is released? I have seen this done with using …

Member Avatar for tbone2sk
0
14K
Member Avatar for MyrtleTurtle

This is my first question here. My latest assignment is to create a random walk program using a 2-d array. The program worked fine until I tried to put this code into a function: [CODE] for(int i = 0; i < 100; i++){ //reset field of flowers for each attempt …

Member Avatar for Fbody
0
246
Member Avatar for eyal27

Hii !! I try to update excel file by using Odbc and Oledb objects with out success. my problem when i try to update string in cell that the Odbc "think" this cell is have different datatype. how can i force the Object to put string at cell that have …

Member Avatar for eyal27
0
962
Member Avatar for tkpanther

I have been given an assignment to create a random race program where 2 different lines race. How the lines travel is determined by a random number generator, but that is not the issue I currently have. I am suppose to create a window that is 500x600, with the x- …

Member Avatar for ssmokincamaro
0
194
Member Avatar for amalashibu

Hi, I had a problem when display the total amt from sql to textbox ------------------------------ create table get(Currentdate varchar(200),Expenses varchar(200),Amount decimal(38,2))-this a table ------------------------------ asp.net codings -------------------------- mycomm.CommandText = "SELECT sum(Amount) from get" dr = mycomm.ExecuteReader While dr.Read() TextBox6.Text = dr.GetDecimal(2) End While dr.Close() -------------------------------------------------------------- Error: Index was outside the …

Member Avatar for amitshrivas
0
175
Member Avatar for BrandonB

Hey all, I'm busy with an assignment for which a question, due to being too complicated, has been cancelled (i.e. no longer required to be done). The lecturers told us that if we still included this question in our assignment answers, they would give us the marks for it if …

Member Avatar for Fbody
1
573
Member Avatar for nonshatter

Hey guys, this is probably a really simple question for you experts so I hope you can help..! Basically I have three separate html fields for the user's date of birth: "year" "month" and "date" All I'm trying to do is to take these three from the form and insert …

Member Avatar for nonshatter
0
112
Member Avatar for JellyTurf

[CODE]import java.util.Scanner; public class ticTacToe { public static char[][] board = new char[3][3]; public static getMove(int turnNumber) { char choice = ' '; if (turnNumber % 2 == 1) { //x's turn System.out.println("X's Turn."); char choice = 'x'; System.out.println("Which row and column would you like to choose? (enter number for …

Member Avatar for phoenix911
0
212
Member Avatar for JohnPhilipps

Good afternoon, I am having a hard time understanding how to use the "Friend" function prototype and the Friend function to move my rectangle. My programm with just the constructors, the properties and the functions work corectly until I put the "friend" function prototype and function. I would so much …

Member Avatar for JohnPhilipps
0
469
Member Avatar for sfurlow2

For my project, we're supposed to read data from a text file (circlemath.txt) and the program should output data for the circle to a text file (circoutput.txt). The input file contains data specific for class Circle (x-coordinate, y-coordinate, radius, ascii character), and each line has the form (Circle1 data, operator …

Member Avatar for sfurlow2
0
107
Member Avatar for MWE_QUE

Hello, and thanks in advance for any help I can get. This is part of a larger program for homework. Things were working when I called "addVacantStore" the first time before I wrote the search function. I then called it twice more to set up to test the search function. …

Member Avatar for Banfa
0
139
Member Avatar for Access07-Jon

Hi thanks for reply, I just tried that and it does the same - both phrases on the same line in the RTF memo field Ive used vbnewline in a msgbox before and works fine, but it stumped me as to why its not working in memo field. once i …

Member Avatar for Access07-Jon
0
2K
Member Avatar for digitalsindhx

Friends I m workin on vb.net ado.net oledb, I have also added datagrid Control to my form for retriving database from .Mdb file i used following code [code] 'decleared Name Space Imports System.Data.OleDb 'Dicleared Variabls in Class Form1 Dim con As New OleDb.OleDbConnection Dim ds As New DataSet Dim da …

Member Avatar for digitalsindhx
0
629
Member Avatar for JellyTurf

i really need help with this error. it is an unexpected types error [CODE]public class ticTacToeDemo { //use a 3X3 array for the game board. private static char[][] board = new char[3][3]; public static void main(String[] args) { int turnNumber = 0; System.out.println(board[1][1]); newGame(); while(!winner()) { turnNumber += 1; if …

Member Avatar for phoenix911
0
109
Member Avatar for corby

I need to find the difference of 2 sets. below are my functions for the union and intersection of sets in my driver-file. Is the difference set a combination of the two? [CODE] IntegerSet IntegerSet::unionOfSets(IntegerSet b) { IntegerSet c; for ( int i = 0; i < 101; i++ ) …

Member Avatar for WaltP
0
155
Member Avatar for redworc53

I am a biology student taking a required C++ class. As a result, I am very unfamiliar with programming but I definitely have gained a new appreciation for it. We just finished cin and cout objects two weeks ago and this is our assignment. I have some of it finished …

Member Avatar for WaltP
0
2K
Member Avatar for tcstom

Hi, My program keeps coming up with an Access Violation after I moved the code manipulating my linked list from the main function to a sub function. Looking at it with the debugger, I found that the sub function destructs the linked list, and then the main function attempts to …

Member Avatar for tcstom
0
184
Member Avatar for juniper2009

I would be very happy if you could explain to me clearly to understand the insertAtRear function. I want to make an insertation like [CODE] void insertAtRear(int i, string s, string n) { //??? } [/CODE] and than also need to disply the inserted data by using printList() with and …

Member Avatar for Phil++
0
85
Member Avatar for verbob

What I would like to do is search a MySQL table for anywhere from one to 12 seprate fields, depending on what is submitted from a search form(has 12 different things that a user can search -- its an "AND" search only) What I am unsure of is how to …

Member Avatar for verbob
0
132

The End.