132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for phummon

Hi everyone, I'm a moderate-level C++ programmer who is a little rusty at the moment. I've got an object question which is driving me nuts. I'm sure this is a C++ 101 level question, but for the life of me, I can't recall the solution. Basically, I've got one object …

Software Development c++
Member Avatar for phummon
0
257
Member Avatar for BleepyE

Im coding my first Java applet for a University project and im having issues. Im in the process of coding a search and information function. When the user clicks anywhere in the applet a black circle appears under the cursor, when they then press the information button, information about that …

Software Development java
Member Avatar for BleepyE
0
134
Member Avatar for dilse4sk

hi every 1. i am trying to make a customer registration form. On the form i want to display the employee ID or Employee name who is servring or registring the customer. In short the employee who is logged in the system ,his Name or id should appear in the …

Software Development vb.net
Member Avatar for dilse4sk
0
119
Member Avatar for Galindo

I have to do a program in which I create two NumericUpDown controls and the user will input a minimum value in one and a maximum value in the other. Then, when the user hits the calculate button, it should show a Message Box containing all even numbers between the …

Software Development
Member Avatar for skatamatic
0
263
Member Avatar for elsiekins

Hello, Unforunatly had to replace my hard drive on my laptop so having to start from scratch, i already had eclipse installed, so when i went to reinstall, downloaded JRE and JDK and 32bit eclipse (my machine is 32bit vista) but i get the error message [I]"A java Runtime Environment …

Software Development hard-drive java
Member Avatar for ejosiah
0
151
Member Avatar for ticktock

Hello! I would like to ask for tips on how to handle database concurrency in a client server application in c#. I am using SQL Server 2008 r2 as my server. I have minimum to zero ideas on how to handle such and would really appreciate any help that you …

Software Development client-server dataset
Member Avatar for Ketsuekiame
0
238
Member Avatar for vivekanandaan

[CODE]insert into po_detail (item_code,qty,item_rate,item_tax) select a.item_code,qty,item_rate,item_tax from mr_detail a,mr_head b where a.mr_no = " & combo_mr_no.Text & " and a.mr_no=b.mr_no""[/CODE] what's the error in the above code ?

Software Development sql vb.net
Member Avatar for Reverend Jim
0
80
Member Avatar for jaimin4829

'i am trying to get f_name + m_name + l_name three diferent columns combined from data grid view on cell content click into combobox. [CODE] Private Sub bugdgv_CellContentDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles bugdgv.CellContentDoubleClick Dim row As Integer = bugdgv.CurrentCell.RowIndex frmbug.bugcmbdeliver.Items.Clear() Try obcon.cmd.CommandText = "select d.del_name from …

Software Development vb.net
Member Avatar for jaimin4829
0
707
Member Avatar for mpound

Sorry to be a major pain in the ass. Im new to java and trying to figure out what to put in the path under Enviromental Variables. Heres the location of my javac. C:\Program Files\Java\jdk1.7.0_03\bin What would i write exactly in the Path location? Regards, Matthew ;)

Software Development java
Member Avatar for mpound
0
131
Member Avatar for arold10

I want to write this function integerPower(base, exponent) that return the value of base^[I]exponent[/I] For instance integerPower(3, 4) = 3*3*3*3 The function has two parameters my question is how can I use the for loop to control the calculation? It's not that hard to use the for loop when the …

Software Development c
Member Avatar for arold10
0
316
Member Avatar for Axladrian

Hello community members!! I have the following question: Is it possible to go through all the buttons in a form using any kind of iteration? I found that i can use this: [CODE]int x = 0; foreach (Control control in this.Controls) { if (control is Button) { if (control.Text == …

Software Development
Member Avatar for Axladrian
0
96
Member Avatar for kris222

so this is what the output should be: A b C d E f G h I j K l M n O p Q r S t U v W x Y z heres what ive done so far class za { public static void main(String[]args) { String x="abcdefghijklmnopqrstuvwxyz"; …

Software Development java
Member Avatar for stultuske
0
146
Member Avatar for kris222

Hey can someone help me with my java program you have to A-Z to Z-A here s what i ve done so far: class az { public static void main(String[]args)throws Exception { String x="abcdefghijklmnopqrstuvwxyz"; int ctr; for(ctr=1;ctr<=26;ctr++) { char z=x.charAt(26); System.out.print(z); } } }

Software Development java
Member Avatar for stultuske
0
111
Member Avatar for LELE7

My .Net Code [code=c] # connDO.Open(); # SqlCommand comm = new SqlCommand("DOrders.dbo.p_Update", connDO); # comm.CommandType = CommandType.StoredProcedure; # daDirectOrders.UpdateCommand = comm; # # comm.Parameters.Add("@UOrderNumber", SqlDbType.Int, 32, uOrderNumber.ColumnName); # comm.Parameters.Add("@ConfirmationCode", SqlDbType.VarChar, 50, confirmationCode.ColumnName); # comm.Parameters["@ConfirmationCode"].SourceVersion = DataRowVersion.Original; # comm.Parameters.Add("@Carrier", SqlDbType.VarChar, 50, doCarrier.ColumnName); # comm.Parameters.Add("@Tracking", SqlDbType.VarChar, 50, doTracking.ColumnName); # comm.Parameters.Add("@OrderID", SqlDbType.Int, 32, …

Software Development dataset
Member Avatar for Rishikesh7
0
927
Member Avatar for Vampiricx3

Hey guys, I have the idea of creating a custom Java terminal, I know what I need to do for commands, etc, but I have no idea on how to style it like someone would with a UNIX terminal/Windows Command Prompt, or prompt it so that whenever a new line …

Software Development java operating-system unix
Member Avatar for DavidKroukamp
0
166
Member Avatar for SAM2012

I have a simple query, I am using code for "QUEUE IMPLEMENTATION USING SINGLE LINKED LIST" [url]http://ds4beginners.wordpress.com/2006/12/17/queue-implementation-using-single-linked-list/[/url] for my program but having an issue if you pleas help me. [CODE]public class queue { gcroot<message^> msg; queue* next; public: queue(); queue* enqueue(queue*,message^); queue* dequeue(queue*); void queue_display(queue*); void setbinding(String^); String^ getbinding(void); }object, …

Software Development c++ linked-list queue wordpress
Member Avatar for SAM2012
0
393
Member Avatar for stereomatching

I saw the movie from the link[URL="http://channel9.msdn.com/Events/GoingNative/GoingNative-2012/Keynote-Bjarne-Stroustrup-Cpp11-Style"]http://channel9.msdn.com/Events/GoingNative/GoingNative-2012/Keynote-Bjarne-Stroustrup-Cpp11-Style[/URL] Could I find something like std::async from boost?Thanks a lot

Software Development c++
Member Avatar for stereomatching
0
231
Member Avatar for daydie

Hello guys i'm getting a massive memory leak which over period of 1min its increase alot and always increases. How to i prevent the memory stacking? I looked all around the internet as im not just posting coz im lazy, i cant find a solution for my code. [CODE] Private …

Software Development vb.net web-browser
Member Avatar for daydie
0
1K
Member Avatar for mrbungle

I can't seem to figure this out- I have a single text box that has text in it. When I put the mouse in it and click it, I need the text to clear so new text can go in. Does anyone have a sample? TIA

Software Development vb.net
Member Avatar for ajayantm
0
184
Member Avatar for Keeame

Recently I made a little program that could open files/exes/links. (facebook, vs 2012, ect ect) But it was in the command prompt. Worked perfect. I decided to make a forms application to do just the same, except through buttons instead of user input. But I keep running across this problem... …

Software Development c++
Member Avatar for Banfa
0
175
Member Avatar for WigglesMcMuffin

Hello, This isn't the typical "I wrote a heap sort that doesn't work, help me please" thread, instead, I'm one step before that. I'd really like to [B]understand[/B] the innards of a heap sort before I attempt to write one. I'd like to give it a go from scratch, or …

Software Development algorithm java programming-construct
Member Avatar for DavidKroukamp
0
219
Member Avatar for Chario0z

Hello, So I've got trouble with a program I'm working on. The program is supposed to register studends and teachers to a register, and when I close it, I want to save all data with DataInputStream/DataOutputStream. So when I open the program, I want to see what I've registered. It's …

Software Development file-stream gui java perl
Member Avatar for JamesCherrill
0
233
Member Avatar for saneeha.nust

I want to store an "Intptr" type value in a file and later retrieve it to pass in a function... Can any one please guide , how this can be done?? The value retrieved by the file is of type string... Please guide how can I manage it...

Software Development
Member Avatar for saneeha.nust
0
98
Member Avatar for wildplace

hey, today my teacher told us to use pipe and fork to write a program without teaching us anyway... if any would recommend some good tutorials would be great~!! and what does fork a child mean really mean(example would be great), and how write to a pipe? everything is done …

Software Development c++
Member Avatar for vimalseo
0
127
Member Avatar for Valiantangel

Hi, Can anyone go through my code to brush it up?I got the correct output,printed below, but i need some polishing of the below loop assignment. 1.Should i be using 2 while loops? 2.Regarding the [B]output[/B]-How can i align the verticle columns and the output neatly. [ICODE]public class MK{ public …

Software Development java
Member Avatar for Valiantangel
0
109
Member Avatar for SasseMan

Hi! I was wondering if there is a way to mock Date and Calendar objects for testing purposes. In other words I want to programatically be able to change what new Date() and new Calendar() etc. returns independent of the system date. Something like setting the date for the jvm …

Software Development java
Member Avatar for SasseMan
0
219
Member Avatar for jimoaks

So i dont know why i am getting this error, here are my 3 classes plus the tester edit: I get the null exception after i run the program, --------------------Configuration: <Default>-------------------- Exception in thread "main" java.lang.NullPointerException at University.offerCourse(University.java:35) at StudentCourseTestProgram.main(StudentCourseTestProgram.java:53) Process completed. [CODE]import java.util.*; public class Student { private String …

Software Development java user-interface
Member Avatar for stultuske
0
227
Member Avatar for scarcella

Hello everyone, i am a current PHP programmer. I am wanting to start C++, is there any good websites i could start to learn? Or is there any tips for programming with C++? Also what is C++, what is it used fore etc.. Thanks, Marais

Software Development c++
Member Avatar for Keeame
0
154
Member Avatar for mydreamgirl

By running following code and I got following output: At begining of default constructor, theApplet.isDisplayable()=false Start Init here... At begining of init(), theApplet.isDisplayable()=true At begining of constructor, theApplet.isDisplayable()=false End Init... Two questions: 1. Does anybody know why isDisplayable() is changed without do anything on it? 2. Why does the JApplet …

Software Development java java-swing
Member Avatar for JamesCherrill
0
109
Member Avatar for saneeha.nust

I want to create and write to file on a machine which is connected to my network... The code is: logfile = new StreamWriter("\\\\192.168.15.237\\C\\AdminTrace\\" + " " + DateTime.Now.ToShortDateString().ToString().Replace("/", "-") + ".txt", true); the IP address corresponds to the machine on which i need to create the file... and the …

Software Development
Member Avatar for saneeha.nust
0
161
Member Avatar for ng5

I have two different forms. one has a listbox and the other has a masked textbox. the masked textbox is used as a login and i would like the masked textbox to be checked against the listbox items to be able to "gain access" and login Any ideas?

Software Development vb.net visual-basic
Member Avatar for M.Waqas Aslam
0
166
Member Avatar for cecsFTL

Hello, I recently turned in this assignment and I didn't received full credit. He wrote "It could be better." I'm not sure what to change. Here's the assignment: Write your own driver for a stack class. Instantiate one stack container object. Your driver generate random strings (uppercase letters) to push …

Software Development java
0
122
Member Avatar for straylight

Not sure if it is possible but is there a way to multiply,add,or subtract values in a tuple? Say for example I have: [CODE] a=raw_input("enter 2 numbers separated by a /: ") #5/2 entered b=a.split("/") c=a[0]+a[1] print c [/CODE] The value comes out to 52 which is obviously wrong. Is …

Software Development python
Member Avatar for straylight
0
350
Member Avatar for timosoft

Hello How do i reset 2 textbox text of out four textbox at random avoiding a textbox whose text = 'A' for clarification. i have Textbox1.text = "B" Textbox2.text = "C" Textbox3.text = "A" Textbox4.text = "D" how do i set an empty value "" to any two textbox at …

Software Development vb.net
Member Avatar for timosoft
0
190
Member Avatar for LFCDay123

I'm new to Visual Basic and I am trying to set up a currency converter. I have converted a currency to UK Sterling on the first form and on the second form I want to have the same label with the same amount of UK Sterling as on the first …

Software Development vb.net visual-basic
Member Avatar for poojavb
0
147
Member Avatar for glebovg

Can anyone help me with my homework? Create a Java class named ArrayTest with a method called arrayCombiner that creates three arrays of size 10. The first array should contain the values 1, 3, 5, 7, 9, 11, 13, 15, 17, and 19. The second array should contain the values …

Software Development java
Member Avatar for zeroliken
0
266
Member Avatar for chuyauchi

What is the best way to change the following program into functions? Can someone show me as a good programming style? [CODE] #include <iostream> #include <string> #include <ctime> using namespace std; // Variables char R, playing, again; int roll, roll1, roll2, roll3, round, money, wager, win, loss, initial; string name; …

Software Development c++ session
Member Avatar for WaltP
0
120
Member Avatar for Silver-Eye

So I'm fairly sure I have everything in the correct order, it compiles correctly, but when I try to run I just crash after the first Employee ID input. I've tried all i can think and have searched the web yet can't figure out why it crashes. [CODE] #include <stdio.h> …

Software Development c
Member Avatar for zeroliken
0
166
Member Avatar for minimee120

Hi all. I am having trouble with one of midterm practice problem questions again. I need to be able to get the First, Middle, and Last Name using the count function. However, my professor wants us to be using a name with more than one middle name, and I am …

Software Development python
Member Avatar for minimee120
0
247
Member Avatar for Farhan_B

im working on this piece of code and for sum reason i cannot understand why i keep getting this message can you please advise me thanks in advance [CODE] 'sql statements strsql = "insert into c_security_user (user_name, user_pwd,) values ('" & txtuser.Text & "','" & txtpass.Text & "')" Dim acscmd …

Software Development vb.net visual-basic
Member Avatar for kingsonprisonic
0
212
Member Avatar for whitetigerz79

Public Class Projectile_Motion 02 Dim initialHeight As Double ' Holds beginning height 03 Dim initialVelocity As Double ' holds velocity 04 Dim time As Double ' holds time 05 Dim heightVal As Double ' holds height at different intrvals in time 06 07 Private Sub btnmaxheight_click(ByVal sender As System.Object, ByVal …

Software Development display vb.net
Member Avatar for kingsonprisonic
0
212
Member Avatar for kamilacbe

Hi... Am stuck with a problem.....my question is how do i iterate a control for eg(a textbox) in runtime....let me make it clear if user enter value as "2" and clicks a button it has to iterate two texboxes as output. I have done in my way but then it …

Software Development
Member Avatar for kamilacbe
0
163
Member Avatar for Zvjezdan23

header1.h [CODE] #include <iostream> #include <string> #include <cmath> #include <math.h> #include <algorithm> #include <Windows.h> #include <conio.h> using namespace std; int gotoxy_object(int x, int y) // your object { HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); COORD point; point.X = x-1; point.Y = y-1; SetConsoleCursorPosition(hConsole, point); return SetConsoleCursorPosition(hConsole, point); } int gotoxy1(int x, int …

Software Development algorithm c++ visual-studio
Member Avatar for Labdabeta
0
528
Member Avatar for AmericanRogue

I'm trying to get a user to input a char and an int to create a box visual using that int. I tried to use Character.parseChar, and realized that wasn't possible. How can I get user input of a char value? Below is my code. [CODE] import java.io.*; public class …

Software Development java
Member Avatar for kiail
0
1K
Member Avatar for Aamit

Hi, [code] check_time() { fileName=$myFileName newTime=$line newtimeaccess="date --date \"$newTime 6 hour\" '+%Y-%m-%d %H:%M:%S'" newtimeaccess=`echo $newtimeaccess | sh` strnewtime=$(date -d "$newtimeaccess" +%s) systime=$(date +%s) if [ $systime -le $strnewtime ] then return "$fileName__0"; else return "$fileName__1"; fi } value=`check_time "$myFileName $line"` ##$myFileName -- file name and $line -- time of file …

Software Development shell-scripting
Member Avatar for thekashyap
0
853
Member Avatar for bearcoyote1

import java.awt.*; import javax.swing.*; public class RandomCircles extends Canvas{ private static int delay; private static int numCircles; private static int frameSize; public static Graphics g; public void paint(Graphics g){ } public static void main(String args[]){ frameSize = 800; numCircles = 1; delay = 5; RandomCircles circles = new RandomCircles(); JFrame …

Software Development java java-swing
Member Avatar for zeroliken
0
175
Member Avatar for varunrathi

i am working on a program to find the factorial of a number of any length. i have used an integer array to store the digits of the result. the problem is that i am unable to store more than 32000 digits in the array. if i give a larger …

Software Development c
Member Avatar for gerard4143
0
1K
Member Avatar for ng5

i have a list box and a button. i would like when the button is clicked the selected item in the list box is deleted. any ideas?

Software Development vb.net
Member Avatar for ng5
0
176
Member Avatar for ng5

I have a form with a text box and a form with a list box. I would like to be able to push a button on the form with the text box and have it be added to a list box. any help?

Software Development vb.net
Member Avatar for ng5
0
210
Member Avatar for smudehelper

I have two combobox. I want to transfer all elements from combo1 to combo2 but with a filter only those item from combo1 will go to combo2 which are not in combo2. For example Combo1 ________ This Is Help But Not Combo2 _______ Is But And Quick So after clicking …

Software Development vb.net
Member Avatar for smudehelper
0
113

The End.