132,726 Archived Topics
Remove Filter ![]() | |
Hi everyone, I'm doing a little experiment on Java loops.. I came across these infinite loops and they never wanted to stop .... Could anyone explain these loops to me, please. Thanks in advance. [CODE] for (int a=0;a <= 5; a++){ int c; int b= 6; for( c=0; c <= … Software Development java | |
Hi Guys, In my appplication Backgroundworker throw an error exception has been thrown by the target of an invocation. Any idea how i can resolve this thread. Software Development vb.net | |
Hello forum, Vaironl here. I'm making a fairly big application for my IB- Computer Science class, and I'm having allot of trouble with the screen. I decided to use null layout to draw textfields, labels optionpanes, Jcomboboxes etc... a couple of things. In my computer it looks like this [URL=http://imageshack.us/photo/my-images/406/recipepicture.jpg/][IMG]http://img406.imageshack.us/img406/1593/recipepicture.jpg[/IMG][/URL] … Software Development java | |
hey,I know the foll. Method to read the textfile line by line. & it is also working Fine. But I want to know that method which includes EOF(End Of File). Can Somebody tell me that method. [code=vb] sFilename = "C:\Listview.txt" If Dir(sFilename.ToString) <> "" Then sFileReader = System.IO.File.OpenText(sFilename) sInputLine = … | |
hi, i have a project in my last year and have 2 queries i am using vb.net and sql server 2005 as backend first problem is, i have a search form in which a field called billno is searched and all details are displayed in datagridview but the problem is … Software Development dataset open-source vb.net | |
I'm testing lucene to write an application. In this testing, I use Tika to extract documents. When I use Tika, I meet this errors. Please explain me. Errors are as follow. [CODE]Exception in thread "main" org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.ooxml.OOXMLParser@7541f8 at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:122) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:101) at touchLucene.SuckClass.getDocument(SuckClass.java:79) at touchLucene.SuckClass.indexFile(SuckClass.java:117) at touchLucene.SuckClass.index(SuckClass.java:62) … | |
Hello I am working with sockets in Java and I have run into a problem. I have created a DataInputStream and PrintStream in my client side and I'm attempting to create and ObjectOutputStream and ObjectInputStream for the same socket (the PrintStream is for text the ObjectOutputStream and ObjectInputStream are for … Software Development client-server java printer | |
How do I get Version Information From The Assembly Info File? tell me soon. | |
Hi, I'm working on a propertygrid that has two items. The value of these items has to be taken from a database table. The table contains two columns, but I only want one column data to be displayed in the propertygrid. When the user selects one value from the drop … Software Development vb.net | |
hello! I'm supposed to write a wordguess program that basically runs like the hangman game on iphone, here is my code: [CODE]import java.util.Random; import java.util.Scanner; public class Wordguess123 { public static String replaceCharAt(String s, int pos, char c) { return s.substring(0,pos) + c + s.substring(pos+1); } public static void main(String[] … | |
Hi, I want to customize the add unimplemented method in eclipse based on some condition. I wants to put some programming logic in eclipse based on that condition i want that it will generate the code for unimplemented method. Any help will be appreciated. Thanks in advance | |
Dear Friends I have an issue when I place a label box in the MDI Parent form and then open a child form the [B][U]label box highlighted in child form[/U][/B], could you please help me out to regret this problem, Thanks in Advance. Software Development vb.net | |
So I have to get a working program for analyzing text, picking up words that has got 2 symbols and which are numbers and if their sum is not more than 9 i has to delete them. I'm about to be done with reading and outputing text file. Theres also … Software Development c++ | |
Hi, I want to save the gridview values of one form while leaving that particular form using VB.NET. I did this in case of textbox and combobox values by using Savesetting and getsetting property. Thanks if any help... Software Development vb.net | |
Hi! Two errors pop up when I try to compile this code (to organize classes and fit as many as possible in a schedule), in the lines "Course newCourse = new Course(cName, cStart, cEnd);" and "lastEnd = course.getETime;" I'm not sure why the code is having trouble accessing the course … Software Development java | |
hi.. i'm new in using vb... can anybody help me to check the problem inside my code? [CODE]Imports System.Data.OleDb Imports System.IO Public Class editMovies Private Sub editMovies_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim con As OleDbConnection = New OleDbConnection(conString) Dim cmd As OleDbCommand = New OleDbCommand("SELECT … Software Development dataset vb.net visual-studio | |
This program is suppose to be a very easy code of a simple time machine. I have it all layed out and working, but the out put it not computing correctly.. I know it is something easy, but i have been staring at this code for a bit now, so … Software Development c++ | |
I need help in write this code. If someone can give me a hand on this please. I need to determine which students have a specific major based upon the button that is clicked , then code will pull all the CS student's name and put them in the results … Software Development vb.net | |
Here we have a code that opens a filestream from a notepad but it doesn't open the notepad file. I have also attached the folder of the program itself so you can check it as your reference. please help us. Thank you very much! Please help. hre [ICODE] #include <iostream> … Software Development c++ | |
Hello to all I am playing with c# this past week, because i want to learn this language. Now i have a question about my with my program. First i have a 1 MDIparent form and 1 MDIchild form with one text box on it, then in the MDIparent I … Software Development | |
Hi once again. As the title implies, the goal of the following code is to create calculator for operations +,-,*,/ and ^. However, the operations are to be executed on values in the files I arbitrarily named a.txt and b.txt. a.txt contains following data: a1 era1 a2 era2 . . … Software Development c file-system | |
yet again i have become very confused on this program. This program is suppose to have the user be able to put numbers in from a keyboard or they have the choose of choosing a file with numbers in it. the program is suppose to acknowledge all the numbers in … Software Development c++ | |
Hi again... I have been working on a small webbrowser application, and am having trouble with my Favorites bar script. So far I have [CODE]Public Class frm_Main Public Function NewFav(ByVal Name As String, ByVal URL As Uri) Dim twoToolStripMenuItem As ToolStripMenuItem = New ToolStripMenuItem(Name) AddHandler twoToolStripMenuItem.Click, AddressOf Me.twoToolStripMenuItem_Click Me.FavoritesToolStripMenuItem.DropDownItems.Add(twoToolStripMenuItem) End … Software Development vb.net visual-basic web-browser | |
I am writing a generic JFormattedTextfield InputVerifier to check range for various types, e.g. Integer and Float. The only way that I have been successful so far is to assign an enum based on getClassName and then use switch statements to do parsing, comparisons, etc. Can anyone recommend something simpler/better? … Software Development java | |
[CODE] template <typename T> int ct2 (tnode<T> *t) { int ctLeft, ctRight, ct; if (t == NULL) return 0; else { return ct2(t->left)+ct2(t->right)+ ((t->left != NULL && t->right != NULL) ? 1 : 0); } [/CODE] I tried running it and I still can't figure out what it does. Specifically … Software Development c++ | |
[CODE]tomorse ={ 'A': '.-', 'a': '.-', 'B': '-...', 'b': '-...', 'C': '-.-.', 'c': '-.-.', 'D': '-..', 'd': '-..', 'E': '.', 'e': '.', 'F': '..-.', 'f': '..-.', 'G': '--.', 'g': '--.', 'H': '....', 'h': '....', 'I': '..', 'i': '..', 'J': '.---', 'j': '.---', 'K': '-.-', 'k': '-.-', 'L': '.-..', 'l': '.-..', … Software Development python | |
I have an error "ERROR [22018] [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression". I am using VBdotNet2005 and MS Access as its database, and I can't really get the hang of this error. I've been trying to google the answer but I cannot find solution for this. … Software Development microsoft microsoft-access vb.net | |
Good day everyone, I need to print data using if-elif statement. I when I run this code like this, everything went well [CODE] if row['username'] == 'mutago': print " okay" sys.exit(0) else: print "wrong" [/CODE] OKAY now i want to include elseif statement to print another data but it returns … Software Development python | |
I have this progrom which is compiling and running.Only Iam tryin to understand how to change the action listener Next en previous such that,If i have 5 employees in record it when you reach the last employee in record the Next and previous buttons should be disabled.please advise here is … Software Development gui java javascript ![]() | |
I've been looking for an app that could find a specific open window on the desktop and 'lock' it so can't be re-sized or moved (most likely by using the title bar value/property). Having had no luck, I was wondering if this can be done in c++? I used to … Software Development c++ | |
I am trying to solve this question (homework) that says the following : [QUOTE]Write a program that calls a function computeSphere that computes the volume and the surface area of a sphere with given radius. The function should not perform any I/O operations. [/QUOTE] the main problem is how can … Software Development c++ | |
We are having problem with our code regarding file streaming. here is our code: [CODE]//Nava //Maganito //Ocampo //Lazo //Manata //CS133/BC2/PROJ #include <iostream> #include <fstream> #include <string> #include <cstdlib> #include <cctype> #include <cmath> using namespace std; void display(); void input(); void equate(); void calculate(); void lineChecker(); double num1=0; double num2=0; double … Software Development c++ file-stream streaming-service | |
Hi, was wondering if it is possible to use openfiledialog to find a file and then use streamreader to read the text and use it in a variable? Got this so far but it comes up with this error: "Object reference not set to an instance of an object." the … Software Development | |
Hi, I have just completed this small cafeteria program. I do have an issue I hope you can advise me with. Here is my question. 1) On the [COLOR="Green"]// Display the contents of the array[/COLOR] output I wish to have the numbers as well as the asterisks representation of that … Software Development c++ | |
I need help writing a script called stats, which provides the user with useful information about the status of their system. The user should run this by typing stats at the command prompt. The output should be displayed immediately on stdout . Anyone able to help me? Software Development shell-scripting | |
This is could some help me out and tell me why my code isnt running , thanks! [CODE] import java.util.*; // import utilities for scanner public class month { //declaring our class public static int monthNumber; //inital month number public static int current_month; //current month variable private static month monthnew;//declaring … Software Development java | |
All, How do you specify a target framework version for the csc.exe c# compiler via command-line? I need to force csc.exe to compile for .NET Framework 2.0. I can target .NET 2.0 from VS, but VS is not an option in this case. I must work from the command line. … Software Development c# | |
![]() | I just started on SPOJ. It tests by redirecting standard input and output to files. Is there a way to do that directly from the terminal instead of modifying the program. Software Development c++ http-protocol ![]() |
I am trying to copy the contents of a folder into another folder in another drive using XCOPY. Here is code I have now but it isn't working and I figure xcopy would be the easier way to go because MOVETO and CopyDirectory haven't been working because its copying files … Software Development file-system vb.net | |
[CODE]void insert() { counter++; char id [12]; string title; string author; int year; char num_id[12]; borrow *newptr,*p,*q;//declare p = head; q = NULL; //counter++; newptr = new borrow;//declare cout<<"\nEnter your ID: "; cin>>newptr->id; cout<<"\nTitle of the book: "; cin>>newptr->title; getline (cin, newptr->title); cout<<"\nAuthor: "; cin>>newptr->author; getline (cin, newptr->author); cout<<"\nYear: "; … Software Development c++ linked-list | |
Hey, So I am completely new to python, I was wondering if someone could assist me with this program I am trying to make, The idea is simple, a program that counts for the user. Asking the user to enter a starting number, ending number, and the amount to count … Software Development python | |
Hi, I need to know how to run an application on client machines from a Central location for example from an application server? Thanks and Regards Software Development client-server vb.net | |
our teacher doesnt teach us or bother to explain to us he just reads from the notes which are given by the university any help would be appreciated stuck on 2 questions note: they are making us use bluej with 1.5 JDK [IMG]http://i44.tinypic.com/2zjmiv6.jpg[/IMG] [IMG]http://i42.tinypic.com/16iiio5.jpg[/IMG] [IMG]http://i39.tinypic.com/o6lm6b.jpg[/IMG] [IMG]http://i41.tinypic.com/vdg1mh.jpg[/IMG] anyone recommend good book … Software Development java | |
Write a temperature class.In addition to converting between Celsius and Fahrenheit also include Kelvin. The class has read(), add(Temperature), subtract(Temperature), Multiply(Temperature), divide(double), equals(Temperature), toKelvin(), toFarhrenheit(), toCelsius(), and toString() methods. Methods add , subtract, multiply and divide all return a Temperature. [CODE] public class Temperature { public double temperature; public char … Software Development java | |
Is their any way to make an exe from my python files other that py2exe as am getting some problem.And for the same is their any method for linux also. Software Development python | |
Hi, I am new in xml programming and I need your help. I want to cataloging my cds and I have create a xml file and a dtd but they are not valid. :( xml [CODE] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE cdcollection SYSTEM "cd-collection.dtd"> <cdcollection> <album barcode=""> <title></title> <artist></artist> <track id="1" … Software Development xml | |
I have created a program without using sqrt and the pwr function but instead have used logs and exponent. The professor said that math.h is not allowed. I am aware that this library is important for computation, but how do I compute the math without using the math.h? Would I … Software Development c++ | |
i would like to sort the information inputted on the textbox and make it appear on the listview of another form by using the combobox. like if i inputted my Surname, First_Name and Middle_Name and i chose the "Full" item for my paytype with the id number "txtid" and the … | |
I need know what is the size of a address of one variable, in other words, how much bytes I need to store the address of a variable (in compilation time). Unhappily not is possible use sizeof in define pre-processors, like this: [CODE] #define ADDRESS_SIZE sizeof(void *) [/CODE] So, I … Software Development c | |
There are many places on internet for great help regarding many things. Proper implementation of really fast routines for sorting data however is not common. I am not claiming these routines to be the fastest around, but their ease of implementation and use may make them welcome. As a thank … |
The End.