132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ccyg

the codes running ok on NetBeans, and wih the error messages while I am running the jar file. Any helps with the following code would be very appreciated. Scanner file = null; while(file.hasNext()){ if (file.hasNextInt()) list.add(file.nextInt()); else file.next(); }

Software Development java
Member Avatar for hrishi_1
0
275
Member Avatar for parivallal.j

the text file looks like: one hello hi twenty-five billion fifty maths three thousand and two output: count the number of text numbers: 4 please Give me any idea..

Software Development c++
Member Avatar for richieking
0
96
Member Avatar for pangandagf

design a program that will check the format for telephone numbers. telephone numbers should be entered as a string w/ the first three character followed by a dash and the last four numbers.. please help i need an answer on this..its a simple string.

Software Development c++
Member Avatar for richieking
0
101
Member Avatar for XTMercenary

I'm currently creating a Java program in swing for my final year project simliar to something you'd find on codeacademy etc. i'm trying to compare the user input for example "System.outprintln(helloworld");" with a string of the stored answer for the question in this case the answer would be "System.outprintln(helloworld");" i've …

Software Development java java-swing
Member Avatar for JamesCherrill
0
150
Member Avatar for kingofspades

So I put the database into the dubug folder in bin of my project, and in the data source configuration wizard i selected ms access and my file, then i copied my connection string, it was "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\bin\Debug\bookshop.mdb" and wrote some code for it to connect to it, to be …

Software Development microsoft-access open-source vb.net
Member Avatar for kingofspades
0
150
Member Avatar for tesfaye.mulu.71

Dear programmer, A pharmacy needs to automate drug inventory management system. Every drug has chemical Name, Chemical Composition, date of manufacturing, expiry date, and country of origin, quantity, category and others. The pharmacy has a policy to dispose expired drug before use. However, it is not an easy task to …

Software Development c c# c++ linked-list queue
Member Avatar for Schol-R-LEA
0
3K
Member Avatar for nitish.mohiputlall

Here is my question: Write a program that reads from the keyboard an initial balance b, the annual rate of interest r and the projected balance you want to reach. The program should then display the number of monthe it will take for the balance to reach the projected balance. …

Software Development c
Member Avatar for Banfa
0
183
Member Avatar for Vish0203

I have a generator function, i've filled in the function if there are no more_seqs. But I feel trouble if there are more sequences. I need to generate 1 tuple at a time. if the function call is generate_zip(range(5),range(3),range(4),range(5)) then the tuple generated should be (0,0,0,0) (1,1,1,1) n so on …

Software Development python
Member Avatar for slate
0
188
Member Avatar for Iamateur

In this code,while executing it does's show the result. For eg: Consider addition,in addition result it shows the second value to be added. How it can be corrected? Public Class calculator Dim add, subt, mul, res As Integer Dim div As Double Dim ch As String Private Sub Button1_Click(ByVal sender …

Software Development vb.net
Member Avatar for Minimalist
0
310
Member Avatar for thomas_14

I have a method in foo class that needs to be initialized in my main.cpp and inside another method of foo.cpp. basically my example has a mainPage then will allow to user to do addition or subtraction depends on their choice. after the addtional/subtraction method is done, it will go …

Software Development c++
Member Avatar for thomas_14
0
514
Member Avatar for serkan sendur
Member Avatar for gelmi

can some one give me a codes?im creating a time reservation system and every time a user input a data on the combo box and click the button SUBMIT, all the data will be recorded in the list view.and now?im having a problem with the codes for a conflict schedule.i …

Software Development vb.net
Member Avatar for bokies
0
162
Member Avatar for Suzie999

Hi, I am currently writing a library for dynamic use, and in it I have some string functions. This particular one returns a substring of a given string from the rightmost, determined by a given count. I just get the feeling that I'm missing some error checking and would like …

Software Development c++
Member Avatar for Suzie999
0
295
Member Avatar for Vish0203

I have a list say word = ["engine","ant","aeiou"] I need to sort the list according to the number of vowels in the list elements. And this sort must change the input as well. I tried writing the code, by using zip() and a few ops i'm getting the required answer …

Software Development python
Member Avatar for vegaseat
0
303
Member Avatar for zaidiSEO

Most important things in C # Sharp, as a Student Leaning the programming.. 1. CONSOLE 2. Web Forms and other Things , Suggesstion me

Software Development c#
Member Avatar for Michael27
0
467
Member Avatar for joydsouza90

could anyone tell me what are the max values that can be entered in turbo c++ gotoxy function..... the help says that (35,25) is the bottom right position in the window but i can enter text even upto x-coordinate 50.. what i want to do is enter text at y- …

Software Development c++
Member Avatar for Ancient Dragon
0
4K
Member Avatar for COKEDUDE

Is there a way to read a file character by character for chars and the number set for numbers? bob 4567 joe 39083 sara 4239824 That is my file while ((c = fgetc(pFile)) != EOF) { //my work } I know this works on my chars. This won't read numbers …

Software Development c
Member Avatar for COKEDUDE
0
310
Member Avatar for sehrish20

I need a simple c++ code that prints the semantic errors of the compiler. Can anyone help me please?

Software Development c++
Member Avatar for richieking
0
155
Member Avatar for ambi108

Could i please have an example of using the equivalent of the obselete Scale method for picture box controls in vb.net?

Software Development vb.net
Member Avatar for Reverend Jim
0
105
Member Avatar for ade.julianto

i'm working on the final project in my university. But i don't know how to connecting fingerprint tool with my application.. i have a SDK from my fingerprint tool, but it use a VB code not a C# code.

Software Development
Member Avatar for Mike Askew
0
1K
Member Avatar for VB 2012

lol Hi people its been 2 years im back :D I finshed high school but had too stop programming so im back to noob The problem is i cant seem to find SelectedIndex while using listview -__- I really dont want to use text to find a item :/

Software Development listview vb.net
Member Avatar for Minimalist
0
197
Member Avatar for Pickletronic

Hello, I was trying to view all the data from a single from a database after the button "search" is clicked and the output will be inserted into corresponding textboxes for future editing. After I entered the ID(1) I get an "OleDbException was unhandled" " Data type mismatch in criteria …

Software Development vb.net visual-basic
Member Avatar for G_Waddell
0
2K
Member Avatar for kingofspades

I am new to vb and for an assignment i have to make a application that adds, deletes database records. I used an ms access database. If i run the file in another pc, it doesnt't work as the datbase file is not in that pc,i need it to work …

Software Development vb.net
Member Avatar for kingofspades
0
194
Member Avatar for gerta_1

do u have any code to find a system of two linear equations with two variables??

Software Development c++
Member Avatar for duskoKoscica
0
541
Member Avatar for Dinesh_9

How can i get an users input in the format of `/home/filedirectory` and then list all the files in the path /home/filedirectory??

Software Development java
Member Avatar for JamesCherrill
0
226
Member Avatar for pritaeas

We're in the process of upgrading/improving our application framework, and we're currently looking into (application) user groups and roles. We want to implement CRUD rights to our screens. What's in place is a kind of ORM, so there's a class for each table already. Am just looking for ideas on …

Software Development
Member Avatar for pritaeas
0
240
Member Avatar for RandomGuy32

I am new to NBC programming and am trying to program my Lego NXT Brick to search for and follow a line of black electrical tape that I have on the floor (I have the light sensor in the front and pointing straight down at the ground). As of right …

Software Development assembly
Member Avatar for Assembly Guy
0
110
Member Avatar for Ritesh_4

Hello I have a Java Agent which I need to maintain (dev was done by someone else), with the following code samples extracted: String type = (String) types.nextElement(); DemByDate dd = (DemByDate) client.typeDemande.get(type); Vector v = (Vector) dd.demandes; Calendar calendar = Calendar.getInstance(); calendar.set(dd.d2.getYear(), dd.d2.getMonth(), dd.d2.getDate()); int maxDay = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); dd.d2 …

Software Development java
Member Avatar for Ritesh_4
0
3K
Member Avatar for Andy90

Hi, I want to know how can I find the frequency of applications executed on desktop? My main motive here is to find least used application on desktop! I know there is a way of doing it through windows OS tools. But, I want to know how the same can …

Software Development java
Member Avatar for stultuske
0
209
Member Avatar for S2009

Hi All, I am creating a Windows Application. I am maintaining LibraryBooks details. When I click on the Details all the books available(as stored in SQL SERVER Database) is been displayed in the DataGridView. But the datagridview also contains a empty row at the end which it generates automatically. But …

Software Development windows-server
Member Avatar for ddanbe
0
293
Member Avatar for args009

Hi, I can't get my carrentalprogram to work. When I try add vehicle/customer, I get this: "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException" I think it means that what i type in my textLines = Null. I guess the methods from the class "Controller" can't be used. Here are the classes "Controller" …

Software Development java
Member Avatar for stultuske
0
182
Member Avatar for MARKAND911

Is it possible to implement theme of Microsoft Office in my windows application. I mean when anyone changes theme of Microsoft Office it should also make change the theme of my windows application. If its possible, let me know how to do that?

Member Avatar for Fenrir()
0
284
Member Avatar for mixelplik

How do I pass a single row of a 2 dimensionsl aarray to a function? #include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; // ------ Prototypes ------------------------------------------------------ double calcNums(double[]); // ****** MAIN ************************************************************ int main() { double nums[2][5] = {1,2,3,4,5,6,7,8,9,10}; calcNums(nums[1][5]); return 0; } double calcNums(double nums[1][5]) …

Software Development c++
Member Avatar for mixelplik
0
695
Member Avatar for PulsarScript
Member Avatar for Ancient Dragon
0
137
Member Avatar for Limiter

Hi guys, I am currently learning this language and have 2 simple questions. 1: What is the equivalent of "break" and "continue" statement in Racket?? I can't find it anywhere on the site's documentation nor online on other sites. 2: Is there a way to create new variable using a …

Software Development
Member Avatar for yawaramin
0
327
Member Avatar for zachattack05

Good afternoon! I seem to disappear from this forum for a while then re-appear...I've been so busy with my first born baby girl that I haven't had time to check my email much less work on any of my projects, but something has come up and I need some input. …

Software Development algorithm apple
Member Avatar for zachattack05
0
229
Member Avatar for overwraith

So, I wrote some code for appending to an array, and I thought to myself, would be cool to make the method more generic using an interface. I keep getting this error though that basically says that the compiler's best overloaded method that can match this is _____, and it …

Software Development
Member Avatar for overwraith
0
174
Member Avatar for CJMW

So im making an RPG. For collision detection, I thought I would do it like this: 1. Read text file containing collision data. 2. Iterate through the list using nested for loops. 3. When a value of 1 occurs (denoting an inpassable tile) add a rectangle to list 'badTiles', where …

Software Development file-system
Member Avatar for CJMW
0
414
Member Avatar for CodingCabbage

from random import randint from tkinter import * import time screen = Tk() widthOfScreen = screen.winfo_screenwidth() #Get the width of the screen heightOfScreen = screen.winfo_screenheight() #Get the height of the screen screen.geometry("%dx%d+0+0" % (widthOfScreen, heightOfScreen)) def spammer(): count = 0 for count in range(0,1000): Button(screen, text = count, font = …

Software Development python tkinter
Member Avatar for CodingCabbage
0
274
Member Avatar for Iamateur

Module throtemp Public Class TempIsZeroException : Inherits ApplicationException Public Sub New(ByVal msg As String) MyBase.New(msg) End Sub End Class Public Class temp Dim tmp As Integer = 1 Sub showtmp() If (tmp = 0) Then Throw (New TempIsZeroException("zero temp found")) Else Console.WriteLine("temp:{0}", tmp) End If End Sub End Class Sub …

Software Development vb.net
Member Avatar for oussama_1
0
251
Member Avatar for ivan.dyadi

Qn. Given the following pseudo code, write a program that executes it. (20 marks) read a read b compute x=a*b+2 compute y=a-b total=x2+y*(x+a)*(y-b) print total Solution:vv

Software Development c c# c++
0
122
Member Avatar for Patrick_3

Hello everyone! I have tried again and again to get this to work using multiple suggestions from the Internet. I am trying to convert an int[] to an Image object. I am getting the array using a PixelGrabber object: int img1_1d[] = new int[img1_w * img1_h]; PixelGrabber grab1 = new …

Software Development image java
Member Avatar for JamesCherrill
0
763
Member Avatar for priya.chitroda

Create a structure for a classroom. Make sure it includes the following: Room Number, Lecture Name, List of Students, Number of chairs, Window (Yes/No), Projector (Yes/No), Available(Yes/No). Instructions: Create functions that allow you to add data to the attributes of the classroom. Create functions that allow you to print out …

Software Development c++ data-structure
Member Avatar for james.opdyckeii
0
128
Member Avatar for darrylnuyda

Hi everyone, Can I ask your suggestion? Please.. I got the problem in my query, about storing the Date into my database. When time I submit o saved the data inputed to my textfield , the query is okay, but when I checked the database the date it's not good(the …

Software Development
Member Avatar for KushMishra
0
178
Member Avatar for Alibi Ghazi

Can any one help me , i need an algorithm of the fast fourier transform without using fft function .

Software Development algorithm
Member Avatar for phorce
0
143
Member Avatar for ryanpalma0794

I have no idea in how to make a simple database using C++. Please share some ideas or LINKS in how to make a simple database using C++. thanks in adnvance!

Software Development c++
Member Avatar for Ancient Dragon
0
360
Member Avatar for kentuckyjoe

I'm trying to iterate through the controls on a form and set the tabIndex to 0 for all labels. I copped the following code from google but it doesn't work for me and I'm pretty certain it's because all of my controls are on a panel and not on the …

Software Development vb.net
Member Avatar for kentuckyjoe
0
269
Member Avatar for cambalinho

i'm building a data base.. heres what i did: 1 - create the forms and put the controls; 2 - create the Service-base DataBase(add New Item); 3 - a toolbox, on left, is showed and then i create a new table; 4 - using the mouse right button, i select(on …

Software Development open-source vb.net visual-basic
Member Avatar for cambalinho
0
189
Member Avatar for VasquezPL

Hello guys... I have written a program which uses templates prepared in HTML to send emails. Everything was working in OUTLOOK 2003/2007 but now 2013 is a standard in my company. The problem is that OUTLOOK 2013 does not accept <img>link</img> anymore. My program open html template and read it …

Software Development html-css
Member Avatar for VasquezPL
0
356
Member Avatar for rikje.van.driessche

can annyone help me with this code? package me.nocare.who.cmds; import me.nocare.who.Whoplugin; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class WhoCommandHandler implements CommandExecutor { private Whoplugin plugin; public WhoCommandHandler(Whoplugin instance) { this.plugin = instance; } @Override public boolean onCommand(CommandSender sender, Command Command, String commandLabel, String[] args) { String msg …

Software Development java
Member Avatar for rikje.van.driessche
0
206

The End.