132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for irisadaf

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
Member Avatar for Wegginho
0
206
Member Avatar for techie929

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.

Software Development algorithm java
Member Avatar for qlipboard
0
76
Member Avatar for kasraluckblack

what is the accnum & password of this program.?

Software Development java
Member Avatar for jwenting
0
71
Member Avatar for cretaros

How do you implement in java to select only data from a Column i a database using java

Software Development java mysql
Member Avatar for masijade
0
65
Member Avatar for koveras vehcna

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
Member Avatar for koveras vehcna
0
241
Member Avatar for Japracool

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++
Member Avatar for Japracool
0
290
Member Avatar for sdr001

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++
Member Avatar for sdr001
0
191
Member Avatar for arezz09

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 & "','" & …

Software Development listview vb.net
Member Avatar for debasisdas
0
139
Member Avatar for arezz09

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
Member Avatar for P.manidas
0
103
Member Avatar for shyla

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, …

Software Development c# gui
Member Avatar for pseudorandom21
0
184
Member Avatar for skips

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++
Member Avatar for skips
0
171
Member Avatar for JakeA

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
Member Avatar for abelLazm
0
348
Member Avatar for pseudorandom21

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++
Member Avatar for jonsca
0
128
Member Avatar for atticusr5

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 …

Software Development c++ ios
Member Avatar for mike_2000_17
0
148
Member Avatar for Jaseem Ahmed

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
Member Avatar for reygcalantaol
0
98
Member Avatar for stephenk291

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 …

Software Development display java
Member Avatar for VernonDozier
0
1K
Member Avatar for vinothmca

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
Member Avatar for Jx_Man
0
68
Member Avatar for arezz09

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
Member Avatar for Jx_Man
0
166
Member Avatar for toferdagofer

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
Member Avatar for Moschops
0
161
Member Avatar for irinaki

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++
Member Avatar for chrjs
0
181
Member Avatar for triple_A

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
Member Avatar for triple_A
0
178
Member Avatar for Wakesta

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++
Member Avatar for mrnutty
0
153
Member Avatar for Nony2007

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
Member Avatar for Nony2007
0
122
Member Avatar for Arikon

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 …

Software Development regex vb.net
Member Avatar for Arikon
0
1K
Member Avatar for eman 22

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
Member Avatar for eman 22
0
93
Member Avatar for mkab

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
Member Avatar for SakuraPink
0
245
Member Avatar for SakuraPink

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
Member Avatar for SakuraPink
0
4K
Member Avatar for Agni

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++
Member Avatar for Agni
0
327
Member Avatar for hawita

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 …

Software Development algorithm c++
Member Avatar for Moschops
0
152
Member Avatar for reet_bahl
Member Avatar for Momerath
0
203
Member Avatar for Auraomega

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
Member Avatar for Auraomega
0
106
Member Avatar for ctpsolo

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
Member Avatar for ctpsolo
0
446
Member Avatar for LloydFarrell

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 …

Software Development finance php session xml
Member Avatar for LloydFarrell
0
149
Member Avatar for shazzy99

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
Member Avatar for shazzy99
0
237
Member Avatar for BobFX

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
Member Avatar for BobFX
0
475
Member Avatar for willmotil

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
Member Avatar for Momerath
0
161
Member Avatar for slaidas

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++
Member Avatar for WaltP
0
150
Member Avatar for pcgamer2008

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.

Software Development c++ opengl
Member Avatar for pcgamer2008
0
124
Member Avatar for virusisfound

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
Member Avatar for virusisfound
0
160
Member Avatar for snehil_khanor

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
Member Avatar for snehil_khanor
0
79
Member Avatar for hobokook

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
Member Avatar for herpderp
0
2K
Member Avatar for shyla

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
Member Avatar for shyla
0
1K
Member Avatar for IndianaRonaldo

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
Member Avatar for IndianaRonaldo
0
181
Member Avatar for harinath_2007

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
Member Avatar for Moschops
0
105
Member Avatar for RenanLazarotto

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
Member Avatar for RenanLazarotto
0
131
Member Avatar for jimmymack

[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++
Member Avatar for jimmymack
0
214
Member Avatar for kimbokasteniv

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
Member Avatar for kimbokasteniv
0
265
Member Avatar for gabb810

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
Member Avatar for vegaseat
0
219
Member Avatar for ILIDAN

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
Member Avatar for ILIDAN
0
144
Member Avatar for shyla

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
Member Avatar for shyla
0
254

The End.