132,726 Archived Topics
Remove Filter ![]() | |
Write a method that accepts an array of digits (base 10) and creates and returns a new array representing the same fraction but now base 16 Software Development java | |
Well I have a combobox with 3 items namely: Product Size and Cost. I have also a maskedtextbox. If I select "Product" and "Size" on the combobox, I want to disable the maskedtextbox from filling, how must I do it? Software Development visual-basic | |
How to create a java class to represent linked lists of integers. Provide it with methods that can be used to reverse a list and to append two lists. Software Development java linked-list | |
Hi all, I want to display excel data range from '2/1/2011 10:00:00 AM' to '2/4/2011 10:00:00 AM' using ADODB and VB6. The data result then display on the listbox but actually i get data that i don't want (date 10,22 are include). Does somebody can help me..? Here is code … Software Development sql visual-basic | |
hi Everyone, My program is doing good when I suddenly bumped into this problem. I dont know how to do the next functionality that I need to accomplish. I am done with inserting values, showing the gridview etc and it works great. Now my problem is the update command. I … | |
I would like to write function that takes the input from the user and stores it in an array. my problem is that i do not know how long the input is going to be. i read up on dynamic arrays and pointers but got very confused. e.g. if the … Software Development c++ | |
Hello, I have a login screen in my VB 6 program, it is for teachers, I have a user-name text box and password text box. There is also a login button. I want there to be one password for all teachers but I want each teacher to have their own … Software Development visual-basic | |
this is control or software or else support some form? Software Development visual-basic | |
heres my code: [CODE]#include<iostream> using namespace std; int main() { int x; for(x=3; x<=47; x++) { cout<<x; } system("pause"); return 0; } [/CODE] i just want a little help with this problem: this code cout counts from 3 to 47 but i want to cout 3 then adding 2 to … Software Development c++ | |
Hey guys, I have got a problem. I have an application that shows data in datagridview. Now, I want to add 'Print' option in it. I want to it print only those that are selected. I have tried a code but it didn't help at all. Please suggest me something … Software Development | |
[CODE] import java.util.*; public class Try{ private int [] arr; private final int MAX=10; Scanner scan=new Scanner(System.in); public Try(){ arr =new int[MAX]; } public void accept(){ for(int i=0;i<arr.length;i++) arr[i]=scan.nextInt(); } public int smallest(){ int smallest=0; for (int i=0;i<arr.length;i++) smallest=Math.min(smallest,arr[i]); return smallest; } public int largest(){ int largest=0; for(int i=0;i<arr.length;i++) largest=Math.max(largest,arr[i]); … Software Development java | |
i was given a project to develop a software that will perform or aid the function of a community pharmacist and i am using a desktop standalone java application,which will be well garnished with GUI component, and will be a distributed system(RMI),and also to use Artificial intelligence technique to implement … | |
this code is meant to input words from file, and output to file the amount of letters in them and how many words there are [CODE]#include<iostream> #include<iomanip> #include<fstream> #include<cmath> #include<conio.h> #define in_file "data.txt"//input file name #define out_file "result.txt"//output file name using namespace std; void inputwords(int&, int&); void outputwords(int, int); ifstream … Software Development c++ file-stream | |
![]() | Hello, I have an error on my program, after hours of trial and error I couldn't fix it. I am trying to build a simple server which needs to have threads so more than 1 connection can take place. I don't know if I am doing the threads right, I … Software Development client-server java |
i am a java begineer and my confusion is: in c++ we have seen that we can initiliaze the array just by writing this- int a[5]; but in java we need new operator for array initilzation as- int a[]=new int[5]; plz explain me in detail the reason for this??? Software Development java | |
i recently asked a on a forum how to handle the problem if a user pushes onto a full stack or pops from an empty stack on how to handle this problem..... my question is could anyone give a accurate example code of the first example he gave me below? … Software Development c++ | |
when you make a .cpp file with just functions and call it your library, is it still proper to provide a .h file with it that has the functions prototypes in it? Software Development c++ | |
Hi friends, I was understanding the concept of friend functions. I read in my book that there are two possible ways of "making friendship":cool: 1. Make a class a friend. 2. Make the method in a class a friend. I am able to write a code for the first point. … Software Development c++ | |
I have two radio btuttons which link me to another form but they have failed to likk me to the forms i directhem to link me to. i dont know if ther is any problem with my code this is the code. some one to help me [CODE] Dim one … Software Development vb.net | |
i need to place the correct functions .. the goal is to be able to add, delete, display dota heroes [CODE]#include<stdio.h> #include<conio.h> #include<string.h> #define N 3 typedef struct{ /*Place fields here.*/ }name; typedef struct{ /*Place fields here.*/ }hero; typedef struct{ /*Place fields here.*/ }hero_info; typedef struct{ /*Place fields here.*/ }hero_rec; … Software Development c++ | |
Hello, I would really appreciate if someone could tell me what is wrong with this function. When I execute the program it returns the memory address and not the calculated average. I have not included the entire program, there is a sort function and scores are entered by the user … Software Development c++ | |
Hi again.. i'm looking for how to running notepad from vb6.. please help me. any help will be appreciated. Software Development visual-basic | |
Hi friends, One of my class member function is supposed to return an array of integers. Here's the function. [CODE]int* MyClass::getallVars() { int* a = new int; int b[] = { GetparentVar1(), GetparentVar2(), GetchildVar1(), GetchildVar2(), }; a=b; return a; }[/CODE] Is there anyway I can do this without the use … Software Development c++ | |
[QUOTE=swathys]Hi, I have a problem to solve this, when the 1st language button clicked it should carry the language that already specified in xml but it seems my code doesn't work in that way. Can you help me please ! Form1 [CODE] Private Sub FlashObj_FSCommand(ByVal sender As Object, ByVal e … | |
my assignment is to figure out the output but im bot sure i got it right here is the Q A variable x globally defined in your program is assigned the integer value 3. A variable x defined in a function named f_name is assigned the integer value 5. Answer … Software Development c++ | |
Hi, I have create an application in vb.net and ms sql 2005 as database storage. How do i create an installer that can be included in a CD. What i mean is if i want to install it in the virgin PC the Installer CD would be able to run … | |
Hello Members, I have a program with a lot of MouseListeners. The issue I am having is the program is ending even before I click. I tried using sleep and flags to pause the program without much success. Just wondering if there is way to get the program to pause, … Software Development java | |
With ListView and ListBox, you can have multiple selections when you set the property to do so. There are different ways to delete all selected items from a ListView and ListBox, right or wrong. I have some lessons learned on the topic. (1)Use For Each loop in ListView. (It works) … | |
There is a problem I am having inside the AddToEnd function. At this line: [QUOTE]*ptrL->ptrNext = ptrInput;[/QUOTE] it gives this error: [QUOTE]lab8.c: In function ‘AddToEnd’: lab8.c:105: error: request for member ‘ptrNext’ in something not a structure or union [/QUOTE] Can anybody tell me why? P.S. I realized that I do … Software Development c | |
I'm trying to create a program where it reads in the high and low temperatures for each month of the year using a 2D array. However, I cannot seem to get it working correctly. It outputs a bunch of strange numbers. [code] #include <iostream> #include <iomanip> using namespace std; const … Software Development c++ | |
I need to make a program run just one copy of it using Mutex. But I coudn't find anything on using Mutex in c++. Software Development c++ | |
I need to make an application that can calculate the items the user chooses from There is 7 different items the user can choose from Small Coffee $4.95 Medium Coffee $6.87 Large Coffee $8.52 Bagel $2.99 Cream $0.71 Sugar $0.50 Lid $0.99 Total the coffee order (subtotal + tax at … Software Development vb.net | |
hey. i want to send a mail from my java application. the code below works fine except that it results in authentication error in runtime.. here is the code.. import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.Message.RecipientType; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; public class SendMail … | |
Hello I'm trying to make a verb conjugator for Spanish. The problem is that I need to get the last two characters in the verb to be able to determine the verb group to which it belongs. In Spanish, conjugation depends on the verb ending, among other factors. Verbs end … Software Development python | |
Hello, I am trying to test my binary tree, but I am getting errors: The error occurs when I try to call a template function. For example: tree.insertNode(inp);. I get this error: request for member âinsertNodeâ in âtreeâ, which is of non-class type âmain()::binaryTree ()()â . I have defined my … Software Development c++ | |
I was directed on how to read a hex file into an array and it worked out very well. I got the array loaded up from a file that contained hex bytes between 00 and ff. However, when I when to look at the decimal values in the array by … Software Development | |
Let's say you have made a class called threevector which takes stores three doubles. Then you define another class, a fourvector, which stores four doubles. I have seen this syntax used for the constructor of the fourvector: [CODE]fourvector(double fourth, threevector one_two_three): threevector (one_two_three) { fourth = 0.0; }[/CODE] I understand … Software Development c++ | |
Hi i have a program in which i want the main form to get information either from the login form or from the sign up form depending on which one is used. Here is the code below. The information does not seem to appear although there is no error. Please … Software Development open-source vb.net ![]() | |
For example I have a non-ordered list of values [10, 20, 50, 200, 100, 300, 250, 150] I have this code which returns the next greater value: [CODE] def GetNextHighTemp(self, temp, templist): target = int(temp) list = [] for t in templist: if t != "": list.append(int(t)) return str(min((abs(target - … Software Development python | |
I have a combo box with a list of my customers, when a user selects a customer i have the customer code populate a label called LBcustomer. here is how i populate my combo box [CODE] Dim connString As String = "Data Source=" & ServerV & ";Initial Catalog=" & databaseV … ![]() | |
Hello, How can I do it on a recursive way? (Function ''plus'' needs to call itself) [CODE]#!/bin/bash function plus { let GLOBAL=$GLOBAL+$1 } GLOBAL=0 n=$1 for ((i=1; i<=n; i++)) do plus $i done echo Answer: $GLOBAL[/CODE] Any help is welcome! Regards, trume Software Development shell-scripting | |
I am having problems accessing the members of the base class in my derived class. Is there anything wrong with the way I defined my base class as in: template <class T> class Stack : private Llist<T> Is there anything wrong with that? I am getting errors from gcc in … Software Development c++ | |
Hi All Hope everyones doing good. I have two \t files with 3 columns, file1 contains 600050 rows and file2 contains 11221133 rows. I am comparing file2 with file1 to match common entries in first two columns, if file1[0:2] in file2[0:2 ,] write file2[0:2]+column 3 else fil1[0:2] + 5. I … Software Development python | |
I am trying to read from a txt file and counts the number of times each word appears. The problem is that it counts the EOL characters as well. I tried to use the rstrip, still it didn't do anything. So how can I handle these end-of-line characters? Please help. … Software Development python | |
Hello everyone who reads this. I am currently creating a program in which the user inputs a booking reference which will allow them to overview flight details that they have added to previosu flights. I have been having trouble working out which direction I should follow to sort out this … | |
Hi all I need a bit of help I don’t know what I am looking for, basically I want a rich text box to display public variables like (pizza toppings dinks ect that have been selected in other forms) these variables have declare in a module. But I want the … Software Development vb.net | |
Hi, The following code is from a textbook. I cannot get it to work. Would someone be so kind as to look at the code as I am coming up with two errors. They are the two lines towards the bottom that read: int die1 = 1 + randomNumbers.nextInt(6); int … Software Development java | |
hi, I now face some problems in saving the content of the listBox to the exist text file. i need to append the content to the text file and canot overwrite the content in the text file.Who can help me..? [CODE] FileStream fs2 = new FileStream(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt", FileMode.Append, FileAccess.Write, FileShare.ReadWrite);//create text … Software Development file-system | |
I have a datetimepicker which reads a date as dd-mm-yyyy. the sql im using(sql server 2008) is only reading mm-dd-yyyy. i am having a problem with changing the format of how the date is saved. i put a catch to the code and this came up System.Data.OleDb.OleDbException: Conversion failed when … Software Development |
The End.