43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kangkan_14

How to read only integers from a file in java? Suppose the file has something like this: (14,2,3),(2,3,4) (2,6,78) Now I want to read only the integers not the brackets and commas.How do I do it?

Software Development java
Member Avatar for ztini
0
3K
Member Avatar for bLuEmEzzy

i want to get the row(s) when the checkbox is check/uncheck in the listview.. thank u... [ICODE] For Each Item In CheckedItems If (Item.SubItems(4).Text) = "Cash" Then 'Code Here ElseIf (Item.SubItems(4).Text) = "Check" Then 'Code Here End If Next If (e.CurrentValue = CheckState.Checked) Then If LstvwBankDeposits.Items(0).SubItems(4).Text = "Cash" Then 'Code …

Software Development listview vb.net
Member Avatar for codeorder
0
3K
Member Avatar for kxpatel29

Requirement 1) Modify the code to find and print sum of the same series from 1/2 through 1/n multiple times, where each n is read from data file. Requires nested loop with the inner loop summing up series and outer loop allow inner code to repeat once for each n …

Software Development java
Member Avatar for kxpatel29
0
181
Member Avatar for mikecolistro

The question is as follows: Write a program to read in a word that is up to 10 characters long. See if any 3 consecutive characters in the word are found somewhere else within the word. If they are, echo those characters to the screen. For example, if the word …

Software Development c
Member Avatar for WaltP
0
133
Member Avatar for danuz

Hi, Can anyone please tell me how to solve this calculator code with using [B]cases[/B]? I really don't know how to conclude it. It doesn't matter if code is long cuz of cases. Code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Calculator { class Program { static void …

Software Development
Member Avatar for danuz
0
224
Member Avatar for Progr4mmer

I'm trying to make a program where you enter the number you want to find primes up to which then lists all the primes up to that number... But I enter 100 then it just sits there... Here's my code so far: [CODE]#include <iostream> #include <cmath> int prime(int); int main() …

Software Development c++
Member Avatar for Progr4mmer
0
201
Member Avatar for Torm7311

I am in the process of taking my first java programming class, and this question may be simple for some of you. Here is the question.. Write an application that reads five numbers between 1 and 30. For each number that is read, your program should display the same number …

Software Development java
Member Avatar for Torm7311
0
171
Member Avatar for Progr4mmer

could someone please explain to me the differences of these languages (C, C++, C#) and when i would use them. (i know a little C++)

Software Development c c# c++
Member Avatar for ddanbe
0
108
Member Avatar for tcl76

hi, i have a function that returns a string. For eg: 11111 or 11011. 1 is Pass and 0 is Fail. i want my code to scan the string from right to left side and also look for 0 and indicate its location. Below is my code. But i'm having …

Software Development python
Member Avatar for TrustyTony
0
140
Member Avatar for gyuunyuu

I understand the concept of bubble sort and have no trouble implementing it, but I can't grasp the concept of doing it for 2D array. I've googled for some resources but I was unable to understand those codes. So let's say I have a 2D char array with words (maximum …

Software Development c
Member Avatar for Adak
0
1K
Member Avatar for Mr.BunyRabit

Hey there. Its Ruan I have a little problem. I have a column Student number, and i can access all the individual student number values in the database ACCEPT one... the very last one in the column. this is my code [CODE] String StudentNumber = myDS.Tables[0].Rows[myDs.rows.count]["Student_Nr"].ToString();[/CODE] but when i do …

Software Development
Member Avatar for Mr.BunyRabit
0
89
Member Avatar for Katana24

Im aware of the different data types in java but say if one wanted to have two different types of data in a single array; integer and string, would this be possible? Im aware that java can have an array of each type but I stumbled upon using this and …

Software Development java
Member Avatar for Katana24
0
199
Member Avatar for rcossy1023

My homework says: Write an assembly language program that, when given an integer n, will calculate the value of the expression (2n^2-1)2 + n^3. Your program is to get the value for n from ECX and is to leave the value of the expression in EAX. (Note: The name of …

Software Development assembly
Member Avatar for untio
0
549
Member Avatar for winky

Hey Daniweb, I am looking to FTP into a server, take a list of filenames, and store them into an array, so I can eventually write them into a text file. I am currently having an issue with the storing of the ls into a local array: [CODE] use Net::FTP; …

Software Development perl
Member Avatar for JeoSaurus
0
557
Member Avatar for crapgarden

Here's a defined enumeration: enum shipCost {FIGHTER_COST = 25, BOMBER_COST, CRUISER_COST = 50}; Then they do this which I don't understand: shipCost myShipCost = BOMBER_COST; My question is why don't you just do the following instead? int myShipCost = BOMBER_COST;

Software Development c++
Member Avatar for crapgarden
0
167
Member Avatar for ntrncx

Hey i am beginner and i read a book about c++,and i like to do all the exercises alone until i find alone the solution. but one of the topics that give me a hard time is recursions. i am on an exercise with the following code. [CODE]#include <iostream> using …

Software Development c++
Member Avatar for alaa sam
0
206
Member Avatar for olegb

Guys: Please help. I need to create an on-screen shape (circle) that has a fill color, which will blink every X seconds (go from fill color, to white, back to fill color). This is trivial to do...BUT... i want to do it in my own class, so that I can …

Software Development vb.net
Member Avatar for olegb
0
990
Member Avatar for realproskater

Im getting this error while im working on my pig latin code and have no idea what it is referring too. so here is the error and my code. ill specify the piece of code that is erroring. [code] #include <iostream> #include <fstream> #include <string> using namespace std; bool isVowel(char …

Software Development c++ visual-studio
Member Avatar for realproskater
0
183
Member Avatar for eduard77

Thank you for your help so far.I try now to move on with my vector but now comes the hardest part. All the values that the float vector receives must combine somehow that the value of their addition do not overcome 12. So in other words even if I have …

Software Development c++
Member Avatar for eduard77
0
251
Member Avatar for staticclass

Hi, guys I'm new to this forum, and also kind of new to C#. I actually develop programs in C# for 2 years, but in a very amateur level. Here is my question; I'm trying to make a game like [URL="http://www.techgadgets.in/images/block-d-puzzle-game.jpg"]Block'd[/URL] I found the way to create an array of …

Software Development gui puzzle
Member Avatar for Mitja Bonca
0
172
Member Avatar for y2kshane

[CODE] Dim mark_value() As Integer = {30, 40, 45, 50, 55, 60, 66, 70, 75, 80, 85, 90, 95, 100} Dim Grade_value() As String = {"W", "F", "-D", "D", "+D", "-C", "C", "+C", "-B", "B", "+B", "-A", "A", "+A"} temp = rdr(c2) For c3 = 0 To 14 If temp …

Software Development vb.net
Member Avatar for y2kshane
0
134
Member Avatar for darkelflemurian

hello guys, i have the following question/problem: -what i need to do is to get some data from sqlserver and send it to a dataset(no problem there) after i get the dataset filled i need to send the columns and rows to a textfile but i have to separate the …

Software Development dataset vb.net
Member Avatar for darkelflemurian
0
111
Member Avatar for StevoLord

Hi All, I am a newbie at java and need some help. I have a JFrame setup where basically I want to show two pictures. I have everything setup however at sleep, timers ect dont currently work and I dont know why. The snipplet of code below should show imagePanel1 …

Software Development display java
Member Avatar for StevoLord
0
116
Member Avatar for Harliquin

Ok, so I have to write a program for school that will read data from a text file, split the data (comma delimited) into the correct type, pass that information on to a class, store the class object into an array. This is what I have so far: [CODE]import java.io.*; …

Software Development data-science java
Member Avatar for Harliquin
0
153
Member Avatar for realproskater

Here is my problem: Write a program that reads in a text file and converts it to pig Latin. i.e. if the first letter is a consonant, move it to the end and add “ay” to the end, if it is a vowel add “way” to the end. Here’s an …

Software Development c++
Member Avatar for realproskater
0
1K
Member Avatar for ChrisHunter

Hi i need to add a combo box to a property grid that can be populated with the result of an sql statement, i can more than likely populate it when i come to it but i have no idea how to add the combo box. Currently i am creating …

Software Development c#
0
205
Member Avatar for jonnod123

Hi All, Just a quick question to see what others think is the best preactise... You have an Windows application that connects to a SQL Server DB. You use a dataset to represent the database locally. Is it better to write queries locally in your dataset, or in SQL Server …

Software Development dataset visual-studio
Member Avatar for jonnod123
0
100
Member Avatar for boifang

i have been strugling to identify my error but i have failed to solve the problem my code errors is incompatible types in line 11. [CODE]import java.io.*; public class Appliance { public static void main(String args[]) { try { File file=new File("Name.txt"); FileReader f=new FileReader(file); int ch; while(ch=f.read()) { System.out.print((char)ch); …

Software Development java
Member Avatar for masijade
0
133
Member Avatar for abelLazm

hello all i m working with datagridview in c# .... i have a checkboxcolumn in my datagridview..... the problem is that whenever i check the state of checkbox column in all the rows in order to perform any further operation the current row doesnt include in the checked rows although …

Software Development
Member Avatar for jay.gadhavi
0
105
Member Avatar for DecreaseEntropy

I'm trying to make a QR encoder that takes a text file of URLs and names and generates QR bar codes with the URLs and names. Can anyone point me in the right direction?

Software Development python
Member Avatar for katmai539
0
176
Member Avatar for SPereira

Hi Guys, I have written a program in VB 6 wherein I want to delete a particular record from MS Access Database Table. I noticed that the record does not get deleted immediately. Only after I close the recordset it disappears. I have a Delete Command Button in a Form …

Software Development visual-basic
Member Avatar for SPereira
0
2K
Member Avatar for eikal

Hey for hw i gotta do a program that spits out the perfect squares between 0 and a number entered... well i got it done but it spits out 1 extra number that goes OVER what the person entered... here's my code. [code] public static void main(String[] args) { String …

Software Development java
Member Avatar for ztini
0
117
Member Avatar for rssk

hi all, f1 =['0.2' , '0.4','0.0'] f2 =['0.1','0.2','0.1'] f = f1 - f2 i need a output like f = [0.1,0.2,-0.1] but wen i run this program it is showing error like [B]TypeError: unsupported operand type(s) for -: 'list' and 'list' [/B] thanks in advance.........

Software Development python
Member Avatar for rssk
0
176
Member Avatar for arguav74

Hi everyone, I am new to C++ and I'm having difficulty getting this program to work to calculate Haistone numbers. So please - any advice or solution as to what I'm doing wrong would be greatly appreciated. The program is to take two numbers, and then for each number in …

Software Development c++
Member Avatar for Ancient Dragon
0
368
Member Avatar for L3gacy

Hey everyone, My problem is that in my program below I made an indefinite loop for comparing strings and values, my problem is on line 60 & 61, the loop automatically accepts whichever if statement is on line 60 when I test for an uppercase and lowercase char, as soon …

Software Development c++
Member Avatar for L3gacy
0
234
Member Avatar for azzu khan

i have a (check style)list box which have some items.i want to remove more than one items which are selected(checked) . this removing event is done by clicking on command button. but it gives error of "invalid property array index" plz help me to correct this error.... [B]this my coding.....>>>[/B] …

Software Development visual-basic
Member Avatar for WaltP
0
165
Member Avatar for comSysStudent

Hi all, I'm mostly into my Java so I'm not even sure if I gave the post a proper heading. Basically I'm trying to read two matrices from the command line and print them out. Reading works as far as I can tell but when my program tries to call …

Software Development c++ matrix-multiplication
Member Avatar for comSysStudent
0
219
Member Avatar for bettybarnes

I'm having a problem with user control.. how can i disable from the panel the user control if another user control is selected from menustrip??? here is my code at the moment [CODE] Private Sub LabToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LabToolStripMenuItem.Click If LabToolStripMenuItem.Enabled = True Then …

Software Development vb.net
Member Avatar for lolafuertes
0
138
Member Avatar for miturian

So, in the course of a numerical simulation I have noticed that if I save and load the state of my system (a large number of doubles), the following behavior of the system will be slightly different from if I just kept the info "inside the program" and didn't bother …

Software Development c++
Member Avatar for miturian
0
187
Member Avatar for bettybarnes

Hi guys pls help me with my problem this is for my update code [CODE]Private Sub BtnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnUpdate.Click Dim StrSQL As String = "updatePatient" classLibrary = New ConnectionLibrary classLibrary.openConnection(strConnection) 'label1.text = databasestatus If Not classLibrary.isConnectionOpen() Then Exit Sub End If classLibrary.initializeCommand(StrSQL) classLibrary.addParameter("@IPD_ID", …

Software Development vb.net
Member Avatar for lolafuertes
0
155
Member Avatar for alex55

I have this string function that should calculate the average of and array compare the values of the 12 numbers and output which month has the highest temperature -(0-11) = (Jan-Dec) -all variables not defined in the function are defined globally The problem is when I compile and run the …

Software Development c++
Member Avatar for alex55
0
131
Member Avatar for discovery-power

Hi All, I really need some help. I have been asked to write a search screen for a rooms booking application. I have kept the design nice and simple so all the user has to do is enter the dates they want to book a room for and the results …

Software Development database-design vb.net
Member Avatar for discovery-power
0
95
Member Avatar for Kanoisa

Hi all, I have begun workin on getting c++ to do physics and things for me so im working on some maths functions. starting small and working up, Just did this one on prime number generation and was wondering if anyone can point out any ways it could be ,made …

Software Development c++ mathematics
Member Avatar for Kanoisa
0
288
Member Avatar for Jessurider

CAN ANYBODY HELP ME............. see i've created a label and a pictureBox..............in the below code when i press the key "A" the count begins which is been displayed in the label........and also during when pressing ("A"), the picture "RedSlideButton.png" is displayed within the pictureBox , and on releasing ("A") the …

Software Development
Member Avatar for ShahanDev
0
141
Member Avatar for negneg

Hi Everyone, I am trying to compile a code and I keep getting error C2064: term does not evaluate to a function taking 1 arguments here is my code(actually I got it from a book),can anyone help me what is wrong? thanks Negin #include <iostream> #include <math.h> using namespace std; …

Software Development c++ matrix-multiplication
Member Avatar for negneg
0
203
Member Avatar for ravenous

Hi guys, I'm sure that the answer to this is simple, but I don't know what it is and it's bugging me. For reasons that aren't important, I'm trying to make a kind of light-ish weight array class. I want to be able to use syntax like that of [icode]std::vector[/icode] …

Software Development c++
Member Avatar for ravenous
0
255
Member Avatar for ahtaniv

1. Do we have static classes in C++? 2. If so what are they useful for? 3. Is this the name given to classes that should not be allowed instantiation? 4. If so, how is it different from abstract classes?

Software Development c++
Member Avatar for Narue
0
188
Member Avatar for Jake.20

Guys forgive me if this topic is belongs to database forum, i don't have a clue if this topic is for database or vb.. Guys can you give me some idea on how will i link my login accounts that are stored in the database on their own profile forms(vb) …

Software Development vb.net
Member Avatar for Jake.20
0
83
Member Avatar for Jessurider

can anyone help me............... in the attachment i've made textfield and a button.........in that on pressing "A" the count begins which is been displayed in the label..........but the speed of the counting is very fast when pressed down without releasing......can anyone tell me how to reduce the speed of the …

Software Development
Member Avatar for Jessurider
-1
119
Member Avatar for boifang

[CODE]class MOrders { int nooforders; // Data members of the class public int getorder() { nooforders = 500; } public void displayorders() { System.out.println("The number of orders to be delivered: "+ nooforders); } public static void main(String args[]) { MOrders obj = new MOrders (); obj.getorder(); obj.displayorders(); }[/CODE] getting a …

Software Development java
Member Avatar for masijade
0
73

The End.