132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for akuvidz

i have a problem with editing data in datagridview in vb.net 2005 ,, can anybody give the full code for that!! i appreciate your help..

Software Development vb.net
Member Avatar for akuvidz
0
121
Member Avatar for star_lavender

hi..I am really new in Java software development..I am trying to make sure that the JXTable will refresh or update the data after the save button is clicked which means that the JXTable will display the lastest data that retrieved from the database..as what I had googled through the methods …

Software Development java postgresql
Member Avatar for Ezzaral
0
249
Member Avatar for lilsmurf

When I try to run what I have so far in my program, I get an error when I enter in the date as 11/11/2010 that states "Exception in thread "main" java.util.InputMismatchException". Why am I getting this and how do I fix it? Also, I have some comments in the …

Software Development java
Member Avatar for NormR1
0
749
Member Avatar for bettersaid

f i opened a document in terminal through this [CODE]os.system("open " + pathName)[/CODE] how should i close it? is there something like [CODE]os.system("exit")[/CODE] or something Thanks

Software Development python
Member Avatar for bettersaid
0
78
Member Avatar for TGeorge824

I can't believe I'm asking this, but this assignment I was given is proving very difficult. I was asked to find the ECLOSE function of a given Epsilon non-deterministic finite automata. All it is is the BFS tree of a graph from a given point, provided that the vertices are …

Software Development java linked-list queue
Member Avatar for TGeorge824
0
147
Member Avatar for emko

Hi, I need to make a program that counts the frequency of characters in a file, then outputs how many times each character appears in it. I am trying to make a class for it, but I am having difficulties figuring out how to do the definitions for each method. …

Software Development c++ file-stream
Member Avatar for mrnutty
0
258
Member Avatar for jamesonh20

So even though this is a simple project, I found a lack of good code on the web under this topic for multi lined strings. I thought I would share it with everyone. Hope it helps you! Prints file foward first, then in reverse (and yes there are many different …

Software Development java java-swing
Member Avatar for jasimp
0
176
Member Avatar for cogitoergosum18

hello, i need to write a program that computes an equivalent resistor value if it is in either series or parallel . (in c++). how will i write this in c++ : [TEX] R_\mathrm{eq} = R_1 \| R_2 = {R_1 R_2 \over R_1 + R_2} [/TEX] (parallel) [TEX] R_\mathrm{eq} = …

Software Development c++
Member Avatar for mrnutty
0
141
Member Avatar for aaronmk2

I am getting this error message error: expected primary-expression before 'enum' I can't figure it out. [CODE] #ifndef ROCK_H #define ROCK_H enum RockName {BASALT, DOLOMITE, GRANITE, GYPSUM, LIMESTONE, MARBLE, OBSIDIAN, QUARZITE, SANDSTONE, SHALE, ROCK_OVERFLOW}; class Rock { public: Rock() {myName = BASALT;} Rock(enum RockName) {myName= RockName;}//here is where I am …

Software Development c++
Member Avatar for mrnutty
0
140
Member Avatar for smittles

I am brand-new to Python, and this is my first post on DaniWeb. Seems like a positive community, and I hope one day to contribute as a knowledgable expert and not a world-class newbie. I'm wanting to create a simple python program that "fakes" Shakespeare or haiku-style output. I realize …

Software Development python
Member Avatar for TrustyTony
0
187
Member Avatar for dragonshadow001

Hello, I'm really new to doing Java only been doing it about 2 month so really a novice. I'm currently attempting to make my first app that is not a school project. I want to embed the current time in my application that is pulled from the local system. It …

Software Development java java-swing
Member Avatar for Ezzaral
0
371
Member Avatar for tomtetlaw

When I run this code, the variable s has MZ as the first 2 characters, I never put them there, I don't know how they got there. I think it might have something to do with strcat, does strcat modify the source paramater at all? [code=c]void Con_Draw() { int i; …

Software Development c
Member Avatar for Narue
0
173
Member Avatar for Iam3R

[CODE] #include<stdio.h> #include<stdlib.h> #define MAX 5 char queue[MAX][30]; int front, rear, temp; void init() { front = -1; rear = -1; } void insert() { if ( rear >= MAX-1 && front == -1 ) { printf("\nQueue overflow"); return ; } temp = rear; rear = ( rear + 1 …

Software Development c queue
Member Avatar for tirath9792
0
350
Member Avatar for ihatehippies

Is there a way to set an objects id or memory position? Ultimately I'm trying to change function "a" to function "b" while still preserving any saved reference to function "a"

Software Development python
Member Avatar for ihatehippies
0
169
Member Avatar for shandow

Hi, I'm trying to make my own sokoban game in java. Sokoban is a top down 2D puzzle game where you move around a level trying to push boxes to the goal area in the least possible moves. I'm already pretty stuck at an early stage. My first objective it …

Software Development java puzzle
Member Avatar for adams161
0
422
Member Avatar for reemhatim

please could anyone do this program i am a beginner in c# and i need help can u do a program in which the user can enter two words and get the unrepeated letters between two words example computer program output will be cute please c# syntax. thnx

Software Development
Member Avatar for reemhatim
0
148
Member Avatar for dustbunny000

Is there a logical operator in python for and/or of strings? I am trying to write a weasel code. What I have so far: [CODE]import random import math keys='abcdefghijklmnopqrstuvwxyz ' monkey='methinks it is like a weasel' def attempt(): attempt='' for i in range(len(monkey)): x=random.choice(keys) attempt+=x return(attempt) library_attempts=[] for i in …

Software Development python
Member Avatar for TrustyTony
0
102
Member Avatar for pgset

i just need a method that will draw me a flower but it says illegal start of expression error on line 36. what does that mean and how do i fix it? import java.applet.Applet; import java.awt.*; public class ProjectTwo extends Applet { public void paint(Graphics g) { ///background g.setColor(Color.blue); g.fillRect(0,0,1366,384); …

Software Development java
Member Avatar for adams161
0
149
Member Avatar for dustbunny000

Hi there. I am trying write a module that can be executed at the command line and for some reason it's not working. Does anyone know why? [CODE]import sys def fibonacci(N): a,b =0,1 while b < N: a,b = b, a+b print b N=sys.argv[1][/CODE] Does it matter that I'm running …

Software Development python
Member Avatar for TrustyTony
0
95
Member Avatar for breisa

Is there a function in VB.net that allows me to divide a really long String into a specific number of characters? For example: MyString= "Hello man! Wazzup?" group1="Hello " group2="man! W" group3="azzup?" The length of this string is 18 and I'd like to group it by 3, so each group …

Software Development vb.net
Member Avatar for lolafuertes
0
1K
Member Avatar for pythonbegin

Dear All I am working with a tab-delimeted files - first two columns are pairs of identifiers and third column is floating point number (0-1) denoting interaction strength between colmn1 and 2. sample file is also attached. eg- column1 column2 column3 john steve 0.67588 john matt 1.00 red blue 0.90 …

Software Development python
Member Avatar for TrustyTony
0
104
Member Avatar for charqus

Hello guys. I want something like this. [CODE] if(getdate(month) == 1 && getdate(day) == 5) // 5 January // do code else if(getdate(month) == 12 && getdate(day) == 11) // 11 December // do another code // ... [/CODE] Is that possible ?

Software Development
Member Avatar for CloneXpert
0
120
Member Avatar for justsimplenick

I'm just starting out in java, and I am totally stumped on this assignment. I have to make a program where the user selects a single character and then a file. The program is then supposed to check each character in the file, and output how many times that character …

Software Development java
Member Avatar for NormR1
0
94
Member Avatar for parrishnewbie

#include <iostream> #include <string> using namespace std; int main() { //Declaring values. string oneWord, twoWord, threeWord, fourWord, fiveWord, fullWord; //Assigning values oneWord = "One"; twoWord = "Two"; threeWord= "Three"; fourWord = "Four"; fiveWord = "Five"; // Now we will define the full word fullWord = oneWord + ", " + …

Software Development c c# c++
Member Avatar for Fbody
0
102
Member Avatar for shahreza

i got a question about random number.. this is my sample data : jenny jason jerry peter chriss wayne ralf andre alexis alex garcia lorris ronny lyn armand i wanna pick name above to put in free slot like below.. 1.. 2.. 3.. 4.. 5.. 6.. 7.. - - - …

Software Development java
Member Avatar for NormR1
0
111
Member Avatar for kezkez

Question is below for the TestSlotMachine. SlotMachine class... [CODE] import java.util.Random; import java.text.NumberFormat; public class SlotMachine { enum CoinSlot { penny, nickel, dime, quarter; } //private String typeOfMachine; public double balance; SlotMachine() { // typeOfMachine = machineType; balance = 0.0; } public double deposit(double amount) { balance = balance + …

Software Development java
Member Avatar for kezkez
0
163
Member Avatar for ayoitzrimz

Hello all, I am having an issue with ifstream. Short explanation: 1. I ask the user for the filename and read it via cin 2. I store the input in a c++ string 3. I use the input as the filename Here's where it fails: When a user enters something …

Software Development c++
Member Avatar for VernonDozier
0
249
Member Avatar for binoo0324

I'm a beginner (3wks into C++) Payroll program is due in 1hour. I can't figure out what is wrong with my program. it compiles, builds, and runs but when I enter the name, it goes straight to the end of the program. heres the code <code> #include <conio.h> #include <iostream> …

Software Development c++
Member Avatar for burcin erek
0
292
Member Avatar for virusisfound

Hi, I am working on a project in that I want to dispaly the avablible quantity from database. I have write some code for that code is working. but It display entier data from frist row to last. I want to display only particular item avaliable quantity. can any one …

Software Development display open-source
Member Avatar for hassan12345
0
152
Member Avatar for Mindazz

Hello. Can somebody help me please to remove blank lines from listbox? And remove specified text from listbox (text line that i can specify in form code(But if i specify to remove line something like "http://www.google.com/" it will remove the line "http://www.google.com/" but doesn't remove line "http://www.google.com/chrome/" etc ). Please …

Software Development vb.net visual-studio
Member Avatar for Mindazz
0
509
Member Avatar for brieghz23

Can anyone help me? i'm looking for a [U][B]Point of sale system[/B][/U] that is made in [B]Visual Basic?[/B] . . please help me find it sir/ma'am. Thank you.

Software Development visual-basic
Member Avatar for campuzcrazyness
0
168
Member Avatar for |hex

ive been able to make this simple else if statement work, the problem is, i keep getting the same message when i call the showcase. i want the user to enter a name or object after the word 'show', if they dont, i want a mesage to display stating so. …

Software Development c++
Member Avatar for Fbody
0
178
Member Avatar for parrishnewbie

Hi everyone, I am very new to C++ I have never done any type of programing also. I am really having a hard time learning how to write programs. I am using a book called C++ programming by larry ullman and Andreas Signer. The problem is I am following the …

Software Development c c# c++
Member Avatar for Fbody
0
152
Member Avatar for DeadSoul

i have made this code which displays all the values in JTable can any one help me out how to get report of those data.this code is just the module of my library project .Now i want to generate a report for it . [CODE] import java.awt.*; import java.awt.event.*; import …

Software Development java java-jsp java-swing
Member Avatar for Ezzaral
0
103
Member Avatar for buster2209

Is it possible to search for a term within a string and output the result either 1 (True) or 0 (false)? e.g; [CODE]string str = 1234567890 if (str.contains = "456") { MessageBox.Show("True!") } else { MessageBox.Show("False!") }[/CODE] I know I can search for [I]individual[/I] chars but I want to be …

Software Development
Member Avatar for buster2209
0
112
Member Avatar for dxmedia

VB.NET 2008 - Get Desktop Icons Text Width & Text Height I am developing an application in VB.NET 2008, in which I try to get Desktop Icons Text Width & Text Height. So far I have obtained all desktop icons positions, but I really can't figure by myself how to …

Software Development listview vb.net
Member Avatar for dxmedia
0
416
Member Avatar for AngelicOne

Unlike web programming, radiobutton needs to be group by a groupbox, panel etc. and that's what i'm confused at. I have two radiobutton that is 'yes' and 'no', what I want is to determine what object to declare in parameters used for the two to get its value. My code …

Software Development
Member Avatar for mshauny
0
153
Member Avatar for muze

hello guys...I want to learn the above mentioned topic. Can you suggesst some book or forum to learn this?? thanx

Software Development c++ sql
Member Avatar for Ancient Dragon
0
124
Member Avatar for tomo_uni

I want to retrieve dates between two dates the user has specified e.g. say the user enters the dates 01/10/2010 amd 05/10/2010 i want to be able to get the dates inbetween the dates entered by the user e.g. 02/10, 03/10.... What possible way is there to do it? Thanks …

Software Development visual-basic
Member Avatar for tomo_uni
0
159
Member Avatar for NH1

I need help with converting standard time to military time through a button. Then being able to use another button to convert back.

Software Development
Member Avatar for NH1
0
186
Member Avatar for Khodz

So i'm trying to make a module for my program that returns a multidimensional array based on another array in the form of a command-line argument. Here is the module that's keeping me up at night: [CODE]public static double[][][] getDimensions(String [] args) { final int l = args.length; double dimensions …

Software Development java
Member Avatar for Khodz
0
172
Member Avatar for DanHu

ok so i have 3 separate classes: Product, Action, and Invoice. Action would be my interface that allows me to add and remove items in my hashmap that is in my Invoice class. my Product class would have the instance variables name, info, id and quantity (correct me if I'm …

Software Development java
Member Avatar for NormR1
0
514
Member Avatar for buster2209

Whilst I can find MANY examples of how to split a string based on a certain character within that string, how can I split a string based on the no of chars For example, I have a string that is 20 chars long but I want to create a newline …

Software Development
Member Avatar for buster2209
0
103
Member Avatar for Geekitygeek

Its been a few years since i've coded any network applications so I was hoping for some suggestions on the best approach. I have written two programs which i now need to have them communicate with one another. They are both running on a LAN (over VPN) with static IP …

Software Development client-server
Member Avatar for mshauny
0
121
Member Avatar for buster2209

I'm wanting to automatically upload login details to a router then download the relevant page into a textbox in c sharp. How can this be done?

Software Development
Member Avatar for buster2209
0
101
Member Avatar for sheiyvin

How to convert digit number into java?

Software Development java
Member Avatar for Akill10
0
55
Member Avatar for shabir_24

heyy guys wats up !?? i am trying to convert a list(c++) in qt list... i have no idea how i can do that.... the list is a list of employee objects.... (id , name, rate) i want a list of qtlist which containts the employee objects or at least …

Software Development c++ qt
Member Avatar for Banfa
0
122
Member Avatar for Traicey

Guys I have a textbox, I wana enter 4 digit and when I press enter it should show a label I have add the label but its not working the code I have look more like this [ICODE]if(e.KeyChar == 4) { this.Controls.Add(label); e.Handled = true; }[/ICODE] Any help will be …

Software Development
Member Avatar for tawadchai
0
96
Member Avatar for AngelicOne

I want to find out whether the password is incorrect for the username. I'm using sqldatareader.

Software Development
Member Avatar for AngelicOne
0
125
Member Avatar for rodce

Good Day All, I'm relatively new to programming. And I'm taking a C# course at the local University. Is there a place I can go on DaniWeb to get help with coding questions? Thanks, R

Software Development c c# c++
Member Avatar for mshauny
0
154

The End.