132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fr0st003

I read through all previous post regarding quicksort on a linked list. The trouble I am having is using a random element, it seems all the other post are using the first or middle element where I want to use a random element for the pivot. in anycase here is …

Software Development c linked-list
Member Avatar for fr0st003
0
651
Member Avatar for Valiantangel

[ICODE]System.out.println("Extra credit\nRe-enter number of seconds:"); int j = input.nextInt(); int i =(j/60); int k = (j%60); System.out.println(j+" seconds is " +i+" minutes and "+k+" seconds.");[/ICODE] Hi when i key in 30 for j the correct answer should be [COLOR="Red"]30seconds is 0minutes and 0seconds.[/COLOR] However my above code gives me 30seconds …

Software Development java
Member Avatar for zeroliken
0
85
Member Avatar for free2move

I need to sort a series of 25 numbers, entered by the user from smallest to largest, then count the number of times the user entered the number "10". I can't use arrays and I have to use only for loops, can someone please help?

Software Development c c# c++
Member Avatar for free2move
0
2K
Member Avatar for LearnVBnet

Load from database to datagridview [CODE]Call ConnectAccess() Dim da As OleDbDataAdapter = New OleDbDataAdapter("SELECT ProductName,Quantity,UnitPrice,Extention, InvNomer,ProductId, InvDetId " _ + " FROM InvoiceDetail where InvNomer ='" & pbInvNomer & "' ", mConn) Dim ds As DataSet = New DataSet() da.Fill(ds, "InvoiceDetail") DGV.DataSource = ds.DefaultViewManager DGV.DataSource = ds.Tables("InvoiceDetail") Me.DGV.Columns(0).HeaderText = "Product …

Software Development dataset vb.net
Member Avatar for LearnVBnet
0
266
Member Avatar for EkoX

How i can shutdown computer programmaticaly with vb?

Software Development visual-basic
Member Avatar for EkoX
0
199
Member Avatar for mechanicallogic

I simply cannot figure this program out (nor why I am going in debt paying professors to "teach" me). Our assignment begins with reading a data from a file and storing it in an object array and then displaying the contents of that array. When I compile the program in …

Software Development c++ open-source visual-studio
Member Avatar for Ab000dy_85
0
223
Member Avatar for Thisisnotanid

I was wondering, is it possible to do something like the following? The given code obviously doesn't work. [CODE] l = 5 (l == 5)*(k = 7) #Returns error message.[/CODE] The reason is, I'd rather avoid doing something like the following for the project I'm currently working on. [CODE] if …

Software Development python
Member Avatar for Thisisnotanid
0
181
Member Avatar for thache

I've been trying to figure out whats wrong here, but I just can't wrap my head around it. My compiler outputs the following when I attempt to compile it. [CODE] z:\Desktop\tmp\proj4>cl proj4_linkedlist.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. proj4_linkedlist.c …

Software Development c data-structure linked-list
Member Avatar for thache
0
342
Member Avatar for Bijaya123

In a mdiparent form a menustrip is present. when click this menustrip a new form is open. I want to develop when click the menustrip only one form is open. After open the form if i click the menustrip no form will be open. when that opened form is close …

Software Development
Member Avatar for kakaworld2012
0
1K
Member Avatar for me_mie

Hi :) Can anyone help me? I want to display image in my GUI using tkinter (python 3.2.2) Do i need to download this python image library ==> PIL-1.1.7.win32-py3.2 or actually it was already in tkinter? How about the code? Thanks for the help.

Software Development gui image python tkinter
Member Avatar for me_mie
0
374
Member Avatar for rayy

hi everybody, i would be glad if someone could show me how the Get and Set functions work. thanks.

Software Development c++
Member Avatar for promod
0
119
Member Avatar for gerchi152

I have this code in my form (in load event) wherein there is a crystal report viewer: [CODE]Dim oDoc As New ReportDocument oDoc.Load("D:\grading_report\grading_report\teacherLoad.rpt") Dim myDS As New DataSet oDoc.SetDataSource(myDS.Tables("grading_teacherload")) Dim mystr As String mystr = "{grading_teacherload.teacherid} = " & teacherLoadListView.teacherid & "" CrystalReportViewer1.SelectionFormula = mystr CrystalReportViewer1.ReportSource = oDoc[/CODE] there is …

Software Development dataset vb.net
Member Avatar for kingsonprisonic
0
870
Member Avatar for darkelflemurian

Hello everyone, i have the following problem and I come here looking for some advice. I am using c#, but i have a dll that creates the excel file in Visual Basic. i have a datagridview and the information there is exported to excel file. No problem there. the problems …

Software Development microsoft-office vb.net visual-basic
Member Avatar for darkelflemurian
0
477
Member Avatar for mothra

Hello, I have a question about converting text file elements to arrays in VB. I am generally not a .Net programmer, and have really basic question about parsing array elements in VB. I have a text file that is formatted as the following... [QUOTE] "Item1","Item2","Item3" "LineItem1","LineItem2","LineItem3" [/QUOTE] What I would …

Software Development file-system vb.net
Member Avatar for mothra
0
818
Member Avatar for jember

Please hep me with this problem: I am having a problem with string handling using c language. This is actually an assignment. Here's how the whole program must work: 1. User must input a [B]valid password[/B] 2. Once the user inputted a valid password, it will access to an employee's …

Software Development c database-design
Member Avatar for jember
0
497
Member Avatar for Rakham

I'm using ListView control, with SmallIcons style in VB.NET. Icons are loaded fine, but when I start to scroll ListView down or up from scrollbar (clicking from arrows), rowheight drops to about half from normal in next 20-30 rows below/above upper/bottom row (depends from the scrolling position). After 1-2 seconds, …

Software Development listview vb.net
Member Avatar for Rakham
0
1K
Member Avatar for Pats2KDynasty

I have searched and nothing that I have found hits directly on what I am looking for (or maybe my searches have not hit on the combo of words). In C# I have created an Excel sheet, using Interop.Excel, in which I insert some data and create a chart. This …

Software Development microsoft-office
0
182
Member Avatar for daviddoria

I am trying to make a simple demo of a DataGridView bound to a database table. I want to add a row, delete a row, and save the table. I used the IDE to do just about everything. It created the BindingSource when I set the datasource of the DataGridView …

Software Development dataset ide vb.net
Member Avatar for tenorjazz
0
146
Member Avatar for rlafrance

I am trying to do something like the following [CODE] my @type1_cols = qw(col1 col2 col3); my ($col1, $col2, $col3) = split (/:/,$string); ... foreach my $col (@type1_cols){ $hash->{$col} = ${$col}; # <---- this line is the issue. how do i do ${$col} } [/CODE] any help is much appreciated.

Software Development perl
Member Avatar for d5e5
0
76
Member Avatar for jd2369

Good Afternoon, I am having problems clicking a button within a website, heres the html code from the website using firebug on firefox [CODE]<input type="submit" onclick="return fnbValidateLogin()" value="Login" name="Login">[/CODE] Heres the code that i tried [CODE]Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim MyElementsWeb As …

Software Development vb.net visual-basic
Member Avatar for jd2369
0
356
Member Avatar for Jay22

I need help fixing this one error with my code. Below Im going to upload a piece of the code which im having problems with and the output error . [CODE]int main() { int vals[100]; fstream file; string line = "----------------------------------------------------\n"; string msg2 = " Please select an option from …

Software Development c c# c++
Member Avatar for Jay22
0
217
Member Avatar for Lucaci Andrew

I keep getting this error and i don't understand why. [code]Traceback (most recent call last): File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 105, in <module> fr_runt() File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 95, in fr_runt run.run() File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 58, in run self.data.write(file, key, value) File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 23, in write fh = …

Software Development os-x python
Member Avatar for Lucaci Andrew
0
311
Member Avatar for dilse4sk

hi , i have made a login system which saves and chekcs the data from sql server. My login is working perfectly fine. now i just want to know how to logout from an application. can any 1 help. what functionality can i add to the logout. so that application …

Software Development vb.net
Member Avatar for kingsonprisonic
0
6K
Member Avatar for VB 2012

I wanna make a Shutdown manager :icon_cheesygrin: [CODE]Dim SETGETimeOut As Integer = " -t " & NumericSecondsValue.Value.ToString Dim SETGETComment As String = " -c " & CommentBox.Text 'Dim SETGETNetwork As String = " -m " 'Dim SETGETForceclose As String =" -f" Shell("shutdown -s" & SETGETimeOut & SETGETComment, AppWinStyle.NormalFocus, False, 0)[/CODE]

Software Development vb.net
Member Avatar for kingsonprisonic
0
118
Member Avatar for adamjrleask

THIS IS A MAZE ON A TUTORIAL I AM TRYING TO MAKE < I AM TRYING TO GET TO GRIPS WITH IT ALL, THE MORE I TRY FIX THE ERRORS THE MORE I GET, THANKS TO ANYONE WHO POSTS [CODE] maze.cpp : main project file. #include "stdafx.h" #include "Form1.h" using …

Software Development c++
Member Avatar for adamjrleask
0
371
Member Avatar for dresdor

Taking the advice of one of my relatives, I'm learning c#. Now, I've come to understand that I learn best by tinkering and playing around with things, and if I have a problem in front of me, I will learn quickly. I understand programming basics well enough, but most of …

Software Development c# engineering printer
Member Avatar for darkelflemurian
0
235
Member Avatar for s_mostafa_h

Hi every one ! I have two form : First Form for enter username and pass and Form2(Main Form). I want to save or register password and username if the user enter a valid pass . And for the next time , if the user execute this app , go …

Software Development
Member Avatar for darkelflemurian
0
222
Member Avatar for dilse4sk

hi every one i wanted to get some information on how to insert data into sql server through combo box selection. i have 2 values in combo box. 1 is admin and 2nd is employee. basically its an employee registration form. could any 1 help me if during registration the …

Software Development sql vb.net
Member Avatar for kingsonprisonic
0
175
Member Avatar for eranga246

[CODE]#include<stdio.h> #include<conio.h> int main(){ float Area; float r,h; #define pi 3.41; printf("enter the radius of the circle in centimeters\n"); scanf("%f",&r); printf("enter the height of the cilinder in centimeters\n"); scanf("%f",&h); Area=(pi*r*r)+(pi*r*h); printf("THE AREA OF THE CILINDER IS:%f",&Area); return 0; getch(); } [/CODE]

Software Development c
Member Avatar for gusano79
0
140
Member Avatar for zee93

how can i go back to the previous line if user enters a wrong input, im using C programming

Software Development c
Member Avatar for deceptikon
0
3K
Member Avatar for ahu

I am new to programming. I have the below code and It need to output the vote, percentage, winner, and total. I am totally lost please assist: #include <iostream> #include <string> #include <vector> using namespace std; struct electionList { void print() const; void voteTotal(); void solvePercentage(); void calcWinner(); int votes[100]; …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for Ryan0

In the following code I am trying to select a file either from a file chooser or just typing out the path. The problem is I want the comboboxentry to change background color when something is put in it. The code works fine if it's a combobox (Line 7 is …

Software Development html-css python
Member Avatar for Ryan0
0
619
Member Avatar for montjoile

Hi. I'm having a problem with a module in a program written in powerbuilder An event is triggered when the user change the focus to a specified textbox the event creates local variables that I set to null, then I read a string that comes from the lecture of a …

Software Development c++ microsoft
Member Avatar for WaltP
0
196
Member Avatar for hello2419

Im wondering would anyone be able to help me with making a scoreboard in c++ for a football game...Any help would be great as i cant find any info on the net.

Software Development c++
Member Avatar for VernonDozier
0
807
Member Avatar for johnnyzats

So this program is supposed to take in a sentence and output it with correct spacing and capitalization. -For example if I entered: heY, How are You doing? -the output should be: Hey, how are you doing? The program runs fine, I just cannot get it to output. [CODE]#include <iostream> …

Software Development c c# c++
Member Avatar for WaltP
0
760
Member Avatar for unigrad101

I would like to create a function using the code below called drawMove which takes 2 parameters (x or 0) and square number. That draws an x or 0 in the numbered boxes on the grid below. Input should be: drawMove(turtle,cellsize,O,6) ---> this should draw a O in the 6th …

Software Development python
Member Avatar for woooee
0
135
Member Avatar for newbie1234

HI every one, I know this is stupid question. But i am new bie in c++. Can you please tell me. Question: I have two file a.cpp and b.cpp. i want to give output (some number) of a.cpp to as a input on other file b.cpp. And b.cpp will take …

Software Development api c++
Member Avatar for WaltP
0
128
Member Avatar for personathome

Hello, For my homework I have to do about 14 functions and I have figured out all but two of them. This one; int toNumber( char c ) If the character passed in is a numeric digit, then the integer value (not the ASCII code) of that digit is returned. …

Software Development c++
Member Avatar for Bench
0
235
Member Avatar for hughesadam_87

Hey guys, I have a simple numpy datatype: [CODE]spec_dtype = np.dtype([ ('wavelength', float), ('intensity', float) ])[/CODE] I chose to use this in my program because it's very easy to read in 2-column spectral data files using the genfromtxt() method. Therefore, I made a fairly sizable program around this datatype. Now …

Software Development python
Member Avatar for hughesadam_87
0
245
Member Avatar for riahc3

Hey I want to get the date and time with miliseconds in a format such as: 2012-02-09 12:41:52.982 or 2012-02-09 16:41:52.129 How can I do this in Java? (If I can get a localized version of "Tuesday" as "Tues" as well even better but if not, I dont mind. Something …

Software Development java
Member Avatar for riahc3
0
439
Member Avatar for HBK_100

[CODE] private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: String sql="Select BADGE_NUMBER,FIRST_NAME from POLICE_TABLE"; try { Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance(); Connection con= (Connection) DriverManager.getConnection("jdbc:derby://localhost:1527/Traffic Ticket System","Administrator","admin1234"); /*As we are creating a connection on a local computer we will write the url as jdbc:mysql://localhost:3306 */ Statement stmt=con.createStatement(); ResultSet rs = …

Software Development apache java
Member Avatar for JamesCherrill
0
183
Member Avatar for Hussam Alahmadi

help me plz The program does not sum the elements of the 2 matrix this my code [CODE]package javaapplication143; import java.util.*; public class JavaApplication143 { public static void ReadMatrix(int [][]a1 ){ int val=0; Scanner input=new Scanner(System.in); System.out.println("Enter 3 rows and 3 Columns for matrix 1 "); for(int i=0 ; i …

Software Development java
Member Avatar for dantinkakkar
0
133
Member Avatar for unigrad101

I am trying to create a function which would take a list and be able to count the number of ints floats and str in that list. output should be: list = ['v', 3.0,1, 'etc'] freq = countDataTypes(list) print(freq) [2,1,1] any help would be greatly appreciated so far: [CODE] >>> …

Software Development python
Member Avatar for bumsfeld
0
137
Member Avatar for carmamir

I tried to find on Internet as there is big problem with their API. Lack of documentation = can't implement it without super dooper experience in VB.NET (and I'm pretty new)... Any one used it ? All codes found all around internet are not working (VB2008/VB2010), their support also do …

Software Development api vb.net
Member Avatar for carmamir
0
2K
Member Avatar for shibu2all

Hello, Can anyone pls help me out with this code, its the server portion of the client server program..i have downloaded it from net [code=java] Socket s,s1,s2; ArrayList al=new ArrayList(); ArrayList al1=new ArrayList(); ArrayList al2=new ArrayList(); ArrayList alname=new ArrayList(); MyServer()throws IOException{ ServerSocket ss=new ServerSocket(10004); while(true){ s=ss.accept(); s1=ss.accept(); s2=ss.accept(); al.add(s); al1.add(s1); …

Software Development client-server java
Member Avatar for dantinkakkar
0
186
Member Avatar for thefifthhjohn

in line 7 I have three errors. TextFieldOutputDemo.java:7 '.class' expected (where it points to 't' in "throws") FileOutputStream(String, boolean)throws FileNotFoundException; TextFieldOutputDemo.java:7 ';' expected (where it points to 't' in "throws") FileOutputStream(String, boolean)throws FileNotFoundException; TextFieldOutputDemo.java:7 not a statement (where it points to 'F' in "FileNotFoundException") FileOutputStream(String, boolean)throws FileNotFoundException; [CODE]import java.io.*; public …

Software Development java
Member Avatar for dantinkakkar
0
402
Member Avatar for ruval002

i have a problem with my following code, note: this is just part of my code when i run it, lets say i enter hello world it will output: hello segmentation fault is there a way i can fix this? [CODE] void input::read_line() { string command; while(command != "exit") { …

Software Development c++
Member Avatar for Ancient Dragon
0
192
Member Avatar for ilearnz001

Currently looking for a guide on socket.h more specificly Linux Version > sys/socket.h Can't Find any start up tutorials on the net if someone has a link(s) that helped them understand sockets please post//pm me them. --Thanks, ilearnz

Software Development c++
Member Avatar for deceptikon
0
113
Member Avatar for RLS0812

I need to keep a string from resetting each time the class is called, but haven't found any good way of doing it ... Every time [B]if (block != LastC){}[/B] evaluates to true. ( which shouldn't happen very often ) [CODE] --- code snip --- public class Player_Move implements Listener …

Software Development java
Member Avatar for stultuske
0
143
Member Avatar for donatas

Hi guys! I've been searching all day about this and can't find a solution.. I'm fairly new to VB and SQL Queries, so I apologize if I sound a little daft. Basically I'm working on a project in VB 2010 where a user can add new teams, players, also create …

Software Development open-source vb.net
Member Avatar for donatas
0
693

The End.