132,726 Archived Topics
Remove Filter ![]() | |
In the name of God my IDE is visual studio 2010 (c#) I want to create 3 threads for 3 sort(bubble sort,quick sort & merge sort) to show which function sort quickly? for showing this I make 3 array of buttons(for every func. 1 arr) & I want to sort … Software Development ide multithreading visual-studio | |
Hi, I have to create a tree for Minimax algorithm upto depth d. I am not getting how to create.Could anyone please suggest me a method? Thanks. | |
How do you implement in java to select only data from a Column i a database using java | |
Hello everyone, I have created my own random text generator with a custom method, no Markov chains included, and now I would like to try it on a different text corpus that is larger from that of NLTK's and I wanted to know which Data structure should I use in … Software Development algorithm data-structure python | |
Here's my code: [CODE]#include <iostream> #include <iomanip> #include <string> #include <vector> #include <fstream> #include <stdlib.h> using namespace std; class employee { /* Employee class to contain employee data */ private: string surname; double hourlyRate; int empNumber; public: employee() { hourlyRate = -1; empNumber = -1; surname = ""; } employee(const … Software Development c++ | |
Does anyone know why I am getting an error on this line of code below? Thanks for you help in advance. [CODE] vector < vector < htNode<B> > > table; [/CODE] Software Development c++ | |
i hve crete information application... i using this code to save employee information into accessdatabase [CODE]If _contactIC = 0 Then sql = "insert into employee_table (firstname,lastname,ic,address,gender,phone,status)" & "values ('" & firstname.Text & "','" & lastname.Text & "','" & em_id.Text & "','" & em_address.Text & "','" & em_gender.Text & "','" & … | |
i using this code to load data from accessdatabase to 2 combobox [CODE] Dim cmd As OleDbCommand = New OleDbCommand("SELECT product,model FROM combo_table", conn) conn.Open() Dim sdr As OleDbDataReader = cmd.ExecuteReader While sdr.Read() old_product.Items.Add(sdr.Item("product").ToString) old_model.Items.Add(sdr.Item("model").ToString) End While conn.Close() conn = Nothing[/CODE] [ATTACH]20620[/ATTACH] use can see in this picture hve 2 … Software Development vb.net | |
i am trying to solve that assignment and this is what i have so far [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CarInsurance { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, … | |
I believe this to be a simple problem. My program runs fine, but I cannot figure why the variable "final_grades" is not being passed to the function and output. alternatively, I may be calling to the function incorrectly. This is the first class that I have written, so it may … Software Development c++ | |
hi! how can i get the column name of the current cell in the radgridview? RadGridView1 is the name of my datagrid. these doesn't work: [CODE]RadGridView1.CurrentCell.Column.ToString(); RadGridView1.CurrentCellInfo.Column.ToString(); RadGridView1.CurrentColumn.ToString();[/CODE] help me please... Software Development asp.net | |
I have a C++/CLI form, and a native class in separate files. I include the header file of the native class at the top of the Form.h This causes the compiler to try to compile the constructor of the Form as a native function and spits out 100+ errors and … Software Development c++ | |
Hello all, I am trying to debug some code that I have come across. It is an array based BST, and I can not figure out why the parent's are not being recorded correctly. Essentially the first few inserts work, and then the parents become incorrect. Can anyone give me … | |
heloo... i want t o develop a data report in vb 6. i have genetared some reports, whose allo fields are from one table.. now i have a table, in whicnh two tables will be datamember.. ed. Sales mancode,Salesman name will come from table one. sales, Empty Return will come … Software Development visual-basic | |
Any help with this would be appreciated. Basically I need to setup a function that will track both the getUserChoice/GetCompChoice scores for each of the 10 Games, however lets say out of 8/10 games the user has won 6 so therefore the user cannot come back to win the most … | |
My question is we have to use one text box,using this how to enter multiple values like Bill entery! Software Development listview visual-basic | |
i hve 2 form..first for insert dat & second for preview data..i'm using datagrid to preview data from accessdatabase.. how to make datagrid automaticly load data form database after insert new data..data grid only load after i relaunch my application...do i need create refresh button or anything else?? Software Development vb.net | |
i am writing a decryption program that reads a file from another project solution and decrypts it then writes it to a new file in its own project folder. For some reason when i try and read the file in the program says that file doesn't exist. Im pretty sure … Software Development c++ ios visual-studio | |
I'm very very new to c++.I'm truing to built a program to make new appointment etc. [CODE]#include <iostream> #include <vector> #include <string> using namespace std; class Appointment; class MyDate { private: string date; string hour; public: MyDate();//constructor xoris parametrous// void set_date(string _date) { date=_date; } void set_hour(string _hour) { hour=_hour; … Software Development c++ | |
Hey all. I am making an application through 10 exam scores (integers 0-100) are entered into separate text boxes within a group box, and are analyzed with the click of a button. The list box should then display the mean, standard deviation, and the list of scores and corresponding grades. … Software Development vb.net | |
Please can someone check that I have understood this part of the code for my game or advise a better way of showing this? [CODE] //-------------------------------- // DIFFICULTY //-------------------------------- void Difficulty() { Top_Border(); cout << "\n Choose computer difficulty level.\n" " (E)asy\n" " (A)verage\n" " (H)ard\n\n" " ? "; cin … Software Development c++ | |
Hi All, My data set consist of numeric values 0s and 1s. I have designed a code that enables me to compress the string (rwo) to substring based on LZ algorthim. However, it seems that the substring is not correct as you can see in the following example: reading file … Software Development | |
I am making an english to pig latin translator and I cannot quite get this right! For some reason i can always get the first word to translate but the other words jumble together and sometimes repeat themselves. The rules for this program are as follows: To translate an English … | |
Hi all during my implementation to tree data structure, I make a method which combine two trees in one tree and called it attach. I declared 3 trees t1,t2,t3. and then called method attach which will create new tree and put t1 in right and t2 in left and then … Software Development c++ data-structure | |
Hello everyone. Let's say i have 2 scripts called "fill_cup.sh" and "empty_cup.sh" and i create a 3rd script "cup.sh". How can i run/execute the scripts "fill_cup.sh" and "empty_cup.sh" in the script "cup.sh". I tried with sh fill_cup.sh and ./fill_cup.sh but it doesn't work. for example Script cup.sh #!/bin/sh [CODE]echo enter … Software Development shell-scripting | |
Hi all, I'm trying to read data from this xml file that looks like this: <VEGETABLE > < FRUIT > <FRUIT name="apple">1</FRUIT> <FRUIT name="Orange">2</FRUIT> <FRUIT name="Benana">6</FRUIT> I wrote the following script:[CODE]import sys from xml.dom.minidom import parse from cmath import sqrt # Load XML into tree structure tree = parse(sys.stdin) #Find … Software Development apple data-structure python xml | |
I have been reading the 'inside the c++ object model' by Lippman and one of the sections has me a little confused. It is the section where the author explains how virtual tables are created and virtual pointers assigned, in the scenario of multilevel, single inheritance. If anyone here has … Software Development c++ | |
Hi, i am writing a program that plays “guess what number I’m thinking of…” with you. User Inputs guesses and output whether the number is too low, too high, or right-on. I already wrote the program to have the user guess what number the computer is guessing; however, can anyone … | |
Returning back to asm and coding in general, got an issue with what's probably an obvious mistake but I'm stumped non-the-less. [CODE='c']kputs("Testing");[/CODE] [CODE]; ; Print a single character to screen ; kputchar: ; assumes the register ax will contain the character to print mov edx, [SCREEN] ; edx = screen … Software Development assembly operating-system | |
I've created a program that will process a file in a certain manner. The processing works fine, the problem I'm having is to open files that has a " " (space) in their dir or filename. See I wanted to be able to use my program in a easy manner … Software Development c++ file-system | |
Hi all - I have a xml file that I am trying to extract data from and create variables to use in a PHP / html form. I am new to extracting information from xml and creating variables The XML file is show below and what I would like to … | |
Hi, I'm doing the following code to connect to Access Db. The db1.mdb is placed in c:\db1.mdb. It giving me error "couldn't find file" [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System; using System.Data.OleDb; namespace CustomerDB { class OleDbTest{ public static void Main() { //create the database connection … Software Development microsoft-access open-source | |
Hi, I have a stream server application written in C, that I need to incorporate in a GUI C++ managed new program, but I am having trouble finding the equivalent of the C sockets function calls. The C apps initialize this way: [code] /* * Init socket */ if ( … Software Development c++ gui socket-programming | |
Well i wrote out a example of the problem . im not sure what the best way to deal with this type of situation is or if the way i have it now is the best way. basically the problem is as follows Class A is the base class or … Software Development | |
my program writes wasd123wasd123, but i dont know how to make it writing 1ws2aasd22ww. How to make random presser? Can someone help me? [CODE] #include <iostream> #include <windows.h> #include <stdlib.h> using namespace std; int main () { for(;;){ Sleep(1000); rand(); keybd_event(VkKeyScan('w'),0,0,0); Sleep(1000); rand(); keybd_event(VkKeyScan('a'),0,0,0); Sleep(1000); rand(); keybd_event(VkKeyScan('s'),0,0,0); Sleep(1000); rand(); keybd_event(VkKeyScan('d'),0,0,0); … Software Development c++ | |
Hello World ! I want to move a rectangle from going one point to another point in openGl. I am reaching the position but movement is so fast when I execute the program..it already in reached state. how to add delay so that I can see moving rectangle. | |
how to disply last enter data of a particular name like table name = abc contents in the table : 1.abc 2.pqr 3.abc 4.xyz now in visual studio i want to search last enter data of abc Software Development visual-studio | |
Is there any way to return the name of the control I click on in a window form application using C#? Using this pointer only returns form name. Software Development | |
Hi, I am having trouble writing a sentinel controlled loop in LC-3 assembly language. I know that you must store the sentinel somewhere in memory and that when the sentinel is detected, then the loop is done. However, how do you actually write this in LC-3 code. Lets say I … Software Development assembly | |
A file filter reads an input file, transforms it in some way, and writes the results to an output file. Write an abstract file filter class that defines a pure virtual function for transforming a character. Create one subclass of your file filter class that performs encryption, another that transforms … Software Development c++ encryption file-system ios | |
i need a command in c++ to scan the first keystroke the user enters ....(i.e) user doesnt have to press <enter> key...i need to scan as soon as he types....please help...thanks in advance.... Software Development c++ user-interface | |
Hello, i am looking for creating a progess bar in c application.. I know how to create it in JAVA but i want it in C.. Software Development c | |
Hey guys! Its been a loooong while that I didn't come with any mess here :D I'm making a calculator app for a friend, and I want to make it the more complete that I can. I'm putting into it the basics: addition, subtraction, divison and multiplication. Also, I'm using … Software Development vb.net | |
[CODE]// quote.cpp - Script 4.6 // We need the iostream file in order // to use out and cin. #include <iostream> // We need the string file // For the string functionality #include <string> // Start the main function. int main() { // Declare the necessary variables. std::string quote, speaker; … Software Development c++ | |
All I am really trying to do is create a textBox where non-contiguous segments of text can be highlighted at any given time. From the experimenting I have done, it would appear that the System.Windows.Controls.RichTextBox is a good fit for this when customized slightly. Extending RichTextBox and getting multiple pieces … Software Development asp.net | |
I am trying to implement this code for hash table in python and i don't understand why i and k are not used in the while loop. Can somebody help me please, [CODE] import random data = [] m = 10 t = [] for i in range(10): data.append(random.randint(0, 100)) … Software Development python | |
Can anyone help me to make a basic for loop using an array for example candy to candies not so complicated so I can simulate on my own help me and sorry for my bad English thanks :)) Software Development c | |
Hello, i need help on how to create a JLabel as a status bar that display count representing the number of each shape display in addition i need to create a class called MyShape and make it a superclass this my code for for al shapes : [CODE]package Lab8; import … Software Development java java-swing |
The End.