132,726 Archived Topics
Remove Filter ![]() | |
Hi, can you help me please how can i populate data from my listview using sqldatareader. by the way can you please explain me why is it that listview in first column we call item but the other column we call it subitems.can you please enligthen my mind on this.I … | |
I am trying to store a file into an ArrayList and then have user input from console search for an element in the Arraylist and return found or not. It keeps giving me -1. public class arrayl { public static void main(String args[] ) throws FileNotFoundException { System.out.println("Please enter title … Software Development java | |
**I created a text file using following method:** using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FajlliTekstual { class Program { static void Main(string[] args) { FileStream fileStream = new FileStream("shenime.txt", FileMode.Create, FileAccess.Write); TextWriter writer = new StreamWriter(fileStream); Console.WriteLine("Someone Else"); writer.WriteLine("Bla Bla"); writer.WriteLine("Bla Bla"); writer.WriteLine("Unkown Person"); writer.Close(); … Software Development | |
create a project that generates 5 random integers from 100-999. store them into an array. Re-display the numbers in a list box. calculate the sum and product of the 5 numbers and display them in label. use procedures and functions. Software Development vb.net | |
Now that MITx first test is over, I got feeling that this one task requested for generate and test solution is begging also for less efficient recursive solution as it is so simple. Here it is! Single liner aproved by the released grader! If you wander if you are able … Software Development python | |
I need help in my home work urgent. Write a program in C++ which asks user to enter two binary numbers. Store these two numbers in two different stack variables (objects) bit by bit and calculate its sum and store it in another stack variable and display its sum. Solution … Software Development c++ | |
Hi, is it possible to code column header in listview during run time? can you please give me some idea on this.Thank you in advance. | |
I'm not sure if this is a duplicate question, so if it is, please feel free to direct me in the proper place, but I couldn't find an answer to my question. I am currently trying to switch from using an array to a linked list. (This is for an … Software Development c data-structure linked-list | |
Hi all. I'm starting to learn a bit about template functions and I have a question regarding declaration in a header file. My code is as follows (from "Accelerated C++, chapter 8"): #include "Split_Template_func.h" #include <iostream> #include <iterator> using std::cout; using std::cin; using std::string; using std::getline; using std::ostream_iterator; int main() … | |
Hi Everyone, I am trying to generate a function to enable users to insert table into a richTextBox winForm control.What I have is a Insert button which is fiering InsertForm winForm.the form contains two textboxes as txtRow and txtCol and a btnInsert. Now ,I would like to know is there … Software Development | |
Hello again. Generating item codes for my inventory system became complex when the panel said that this must be the format of the generated ID number: "CATEGORY-ITEMNAME-ITEMINDEX" For example: School Supplies - Coupon Bond short- Second Item in the database would result to an item ID : SCS-CBS-002. Advanced thank … Software Development vb.net ![]() | |
I have to make a multiplication table. The program works correctly but I need to put the numbers multiplied in the array also. EX. x 0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 answers 2 3 4 5 6 7 8 9 10 … Software Development c++ | |
I'm trying to write a coding that will be able to determine if a number keyed-in is a Prime Number or not. Here's what I did: public class PrimeNumber { public static void main(String args[]) { int n; Scanner Prime = new Scanner(System.in); System.out.println(" Please enter a number: "); n … Software Development java | |
I have stuck with one problem. I have created my own program that will work. In program there are two for loop. Now my problem is for(int i=0;i<q;i++) { for(int r=0;r<q;r++) { /*perform some kind of operations returns one integer value.*/ /*here q=4 so first time r loop execute 4 … Software Development java | |
So for my program, I have to allow the user to enter a character then ask them how many of that character they want. I'm saving the character and the quantity into two different arrays. I've attached my code but when I go to display the array, it doesn't print … Software Development c | |
I am having problems comparing the arrays in the following code. I commented where I "think" the problem is. Any help would be appreciated. #include <iostream> #include <conio.h> #include <cctype> using namespace std; const int NUM_QUESTIONS = 20; class TestGrader { private: char correctAnswers[NUM_QUESTIONS]; char studentAnswers[NUM_QUESTIONS]; public: void setKey (); … | |
ok so for this program i have to make a main program that calls four different functions. the introduction function doesn't return anything and it only prints what the program will do. the second function aretheyvalid receives three integers that represent three test scores. the third function is the one … Software Development c++ | |
Thank all you for last replies here i hve a problem in my project . I have 2 form . In frm1 i have a datagridview which contain all information of student i.e ID, NAME , CLASS No. , ADDRESS , Department and course . In this form i hve … Software Development vb.net | |
Hey guys Andrew here, with another problem. My while loop is made so that it is on, or off, simple eh? That's what I thought, but it doesn't seem to be acting as I would expect it to! The problem is, when I want it to loop, in testing it … Software Development python | |
I'm trying to install GCC 4.7.2 for windows and linux but I can't seem to do. Anybody know how I can do that. I have eclipse Juno Software Development c++ | |
Hi, I have a bar chart to display information. I also have a vertical line indicate the limit of Y-value. For example, I set the limit to 25. So now I want the color of column bar to change to red color if the column exceed the limit. I tried … Software Development vb.net | |
When reading from an access database, my code is like this: Private Sub PaidNavigateRecords() If ds.Tables("Paid").Rows(inc).Item(1) <> "" Then txtRanch.Text = ds.Tables("Paid").Rows(inc).Item(1) Else txtRanch.Text = "" End If If IsDate(ds.Tables("Paid").Rows(inc).Item(2)) = True Then txtDate.Text = ds.Tables("Paid").Rows(inc).Item(2) Else txtDate.Text = "" End If If ds.Tables("Paid").Rows(inc).Item(3) <> 0 Then txtInvoice.Text = ds.Tables("Paid").Rows(inc).Item(3) … Software Development vb.net | |
I'm writing a program for my C++ class, this is a short clip of it: for(customer = 1; customer <= 5; customer++) { customer_Num[customer][2] = rand() % 999 + 1; // Receipt number cout << "Customer Name:" << endl; getline(cin,customer_Non[customer][1]); cout << "Customer's address:" << endl; getline(cin,customer_Non[customer][2]); cout << "Customer's … Software Development c++ | |
I need help with this http://codepad.org/FNUci22s I am posting the ling of code pad because it has a way to execute it, so long story short. I use two different functions seno, sen (both for sin). When using the printf and adressing both to compare results I get from the … Software Development c mathematics | |
This is some code I have made to count the most occuring vowels within the inputted message. Everytime I run it, it prints out it out 5 times, how can I fix this? I also want it to display a message when there is no vowel entered. Maybe someone can … Software Development python | |
Hi! Which way is the more effective? Is there any difference? If I give value to a variable in the class public class A{ int a = 3; } or if I give value to a variable in the constructor of the class public class A{ int a; public A(){a=3;} … Software Development java | |
Ok so I have my .dll working correctly however I can't get my hook to load properly. When I use GetLastError() to figure out what went wrong I get error code 1428. ERROR_HOOK_NEEDS_HMOD 1428 (0x594) Cannot set nonlocal hook without a module handle. I've seen a ton of examples that … Software Development c++ | |
Hi, I need help creating or manipulationg my current regex that will grab two numbers from a line, while excluding a specific number. Here is an example of what the line will look like: "In our tests, downloads on port 6881 achieved up to 12059 Kbps while downloads on port … | |
i have two MySQL tables with the following structures CREATE TABLE tbldepartments ( departmentID TINYINT( 2 ) UNSIGNED NOT NULL AUTO_INCREMENT, department VARCHAR( 20 ) UNIQUE NOT NULL, PRIMARY KEY ( departmentID ) ) and CREATE TABLE tblemployees ( employeeID SMALLINT( 5 ) UNSIGNED NOT NULL AUTO_INCREMENT, departmentID TINYINT( 2 … Software Development mysql vb.net visual-basic | |
Hi guys, i am writing a GUI program that will take a tutor minutes and earings and create an average earnings. My problem is instead of it using what we type in the fields E.g 200 mins and 50 dollars earnt and displaying the average. It shows the default fields. … Software Development gui java java-swing | |
I'm trying to do a quickSort with a Doubly LinkedList. I can partition the original list into a lower and upper sublist, but have been unsuccessful going any further. Below is the code for the class DoublyLinkedList. The methods that perform the quick sort are at the bottom (partition, recQuickSort, … Software Development java | |
Hey so i've decided to try out writing some stuff in python after a while. My approach to this probably isn't the most efficient, but i'm sure you guys will see what i'm trying to do. I'm having troubles with the last part of the program with my askForRestart function. … Software Development python | |
I am working on some pre-processing. i have a group of text files whose names are dates (i.e. 20120201). data in each file is organized like this: 20120201_line number field1: 123124235 field2:ergjenrgjnergoiefoiefoenr . . field10:dfgkjndgknrkj 20120201_line number . . . The line number is the only thing that separates the … Software Development python | |
I am trying to multiply two single arrays and printing out a 2D array...basically I'm making a multiplication table. I keep getting SEGMENTATION FAULT error. Any suggestions? #include <stdio.h> #define COLUMN_SIZE 12 #define ROW_SIZE 12 #define SIZE 12 int main (void) { int i, j, k; int column[COLUMN_SIZE] = {1,2,3,4,5,6,7,8,9,10,11,12}; … Software Development c++ | |
Basically this function is supposed to accept a user inputted string, and the amount it is supposed to be transposed by 'x' amount (between 0-25). The idea behind transposition is that if the user enters "abc" for the string and then wants to transpose it by 1. The new string … Software Development c++ | |
I have a textfield, and that only accept integer numbers. If user input charter type value it shows JOptionpane Error Message and when user click on the ok button in optionpane message the textfield clear itself public void nosgetit(DocumentEvent documentEvent){ DocumentEvent.EventType type = documentEvent.getType(); if(type.equals(DocumentEvent.EventType.CHANGE)){ } if(type.equals(DocumentEvent.EventType.INSERT)){ String ns=nos_txt.getText(); char … Software Development java | |
Hi All, I am writing a program in which I take data for a table from the user, and then ask for the alignment for each column. Then I have to display it. Each column mush be separated by a tab and a space. For example, let's say the user … Software Development python | |
Hi Guys , I am stuck in finding first 29 numbers in the Fibonacci sequence.I already have the code that can display the first 11 Numbers, Here is my code : .MODEL SMALL .DATA NUM_1 DB 0 NUM_2 DB 1 NUM_3 DB ? .CODE MAIN PROC MOV AX,@DATA MOV DX,AX … Software Development assembly | |
I need no make a program with stacks. Due tomorrow! But I suck at structs, so I spent 3 days trying to make the program and still have it not done yet :( I need your help!!!! I need to put 10 int numbers into the stack in an increasing … Software Development c++ | |
Hello , I'm making tetris in vb.net and i'm working with an image in a picture box that falls and with classes , my whole program works but hen my image falls it actually copies itself , does anyone know an eraser function or something or a method how to … Software Development vb.net visual-basic | |
Basically I am asked to reinvent the wheel a.k.a. the uniq commmand. I have to write a code that returns the number of occurence of each line in a file. I've done it a lot of times in Python and Java with a simple for line in file if given_line … | |
i want to write a simple programme with the function malloc on a function.. i want to write a function where i will have a table MAX(define the MAX) with strings and read it later i want to save every string on the table in that way that i don't … Software Development c | |
Hi. I am using a comparer class to sort a list of People details by their firstName. The code to do this is as follows: public class PersonDetailsComparer : IComparer<PersonDetails> { public int Compare(PersonDetails x, PersonDetails y) { int returnValue = 0; if (x != null && y != null … Software Development | |
I am BSCS student, i have selected Cyber Spy as my Semester project.(C# nd ASP) it will basically get keylogs and screenshots from host computer and save that information in online portal for administrator to check what employees are doing. I have learnt about keylogging and have basic idea about … Software Development asp | |
Hi, i'm willing to print a pyramid but it's not working quite good my programme is followings: Anyone please help me..:) NOTE:"REMEMBER, you can't use extra things in this programme except bool variables and if, if else statements as they are prohibited and that's the MAIN task" #include<iostream> using namespace … Software Development c++ | |
int [10] array_int=new int [10]; array_int[0]=0; array_int[1]=1; array_int[2]=2; array_int[3]=3; array_int[4]=4; array_int[5]=5; question is: how to print in circular manner starting from the middle(index is 2) that is output : 2 3 4 5 0 1 . Software Development java | |
Hi, I am just trying to do some program on arithmetic expression parsing. So i want to store my operator precedence table in the program somehow. I could use a multidimensional array, but that would be inefficient i guess. Another idea i have is to use a HashTable, where the … Software Development java | |
![]() | So here is my problem. My program's goal is to to find the shortest path for a maze in a text file. User inputs a string and then the string goes through a function that reads the file into a 2d array. My problem is that I'm seperating the sources … Software Development c++ open-source |
Hi Developers..... I have a Problem.... I have a XML file.....n I have to Read the Data from that XML file n Create a New File and the Data is in a Binary Format.....(All the code is in C# only) I have used the BinaryReader,BinaryWriter and BinaryFormatter but i can't … Software Development file-system xml | |
The End.