132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mostafanageeb

I am now making the huffman algorithm. I have generated the tree but I cannot generate the codes.. please if anyone can help tell me how? [B]This is the class Node[/B] [CODE] public class Node { private Node left=null; private Node right = null; private Node parent = null; boolean …

Software Development algorithm java
Member Avatar for hasanabada
0
110
Member Avatar for gingerfish

hello guys, could you please explain me when do we use these: int[][], double[][], float[][]? i mean, why there are two brackets "[]"? thanks

Software Development java
Member Avatar for gingerfish
0
64
Member Avatar for DIPY

Hi, I want to do something like this. I have a file File.c File.c # include <stdio.h> -------------------------->here struct B and its parameters should be inserted when i get it on next iteration. typedef Struct { B b1; --->this struct i will get on next iteration. }A; I am writing …

Software Development file-system
Member Avatar for sknake
0
140
Member Avatar for srbatcha

Hi i am doing one project in vb6.0 with ms-access 2003 database. i want bulk data updatation in one table from excel sheet. is possible , if possible pls give me a good solution. my table name : segment transaction its contain more then 20 columns , my updatation for …

Software Development visual-basic
Member Avatar for debasisdas
0
260
Member Avatar for GyanPP

An unsigned long(9999999000) returns 1410064408. Any explanation to it?

Software Development c++
Member Avatar for GyanPP
0
147
Member Avatar for Dany_08

Hi, I am new to C# .net. I recently learned how to connect C# with database (SQL). I know a bit of coding and form designing. Please suggest me some projects (related to windows application) to work on for practice. Thanks in advance.

Software Development
Member Avatar for Hidden-Coder
0
134
Member Avatar for makdu

Hi , I have two text files. madavas1.txt and madax3.txt. There are different values in the files. I want a file which gives the difference between the commen value based on the fields below Gateway( please refer to the txt file attached)[code] new txt = madavas1.txt - madax3.txt.[/code] for Eg: …

Software Development
Member Avatar for makdu
0
122
Member Avatar for fortex

Hello people, I was recently working on some homework for my class, and I have a error on my code. First, I will tell what I need to do. What the program asks for is for a person to give a 3-number digit(N), from 100 to 999. After that, the …

Software Development java java-swing
Member Avatar for musthafa.aj
0
148
Member Avatar for forsan200

So basicly i am trying to create a 2 dimensional array for my snake game but i am haveing some trouble: [CODE] public static Tile gameField[][]; [/CODE] [CODE] gameField = new Tile[FIELD_HEIGHT][FIELD_WIDTH]; for(int i=0;i<FIELD_HEIGHT;i++){ for(int j=0;j<FIELD_WIDTH;j++){ gameField[i][j] = new Tile(); } } gameField[1][1].snake = false; gameField[1][2].snake = true; System.out.println(gameField[1][1].snake+"_"+gameField[1][2].snake); //Prints: …

Software Development java
Member Avatar for JamesCherrill
0
138
Member Avatar for Whilliam

In the class diagram, we'll put attributes of our class in the section at the middle of the class' name and methods right? I'm wondering, are we also put instantiated variables in there? Like the variables instantiating other classes and buttons?

Software Development java
Member Avatar for peter_budo
0
135
Member Avatar for group256

Hi, I'm supposed to write a code of my TSP assignment using brute force algorithm. Although there are still some darkness about how to do it. I know what is TSP but I don't know how to start it. Let's say that we have 4 cities(A, B, C, D). Using …

Software Development algorithm c++
Member Avatar for pecet
0
1K
Member Avatar for good_c_ryan_19

Help Pro's :'( I am a newbie in VB.NET .....I am using Sql Server Express 2005 as my database... I am currently working with my THESIS... A Human Reources Information System that concerns only with the file and record management of the employees... With two modules. a. Administrator for HR …

Software Development client-server vb.net
Member Avatar for good_c_ryan_19
0
156
Member Avatar for xfrolox

I'm just trying to add a simple function to the textbox for security that if i only allow 0 - 9 Numbers and i try to put a letter it wont let me i forgot the code so if any can help me ...

Software Development vb.net
Member Avatar for pauldani
0
173
Member Avatar for imolorhe

Please, I need help in finding the sum of two matrices using pointers. Thanks.

Software Development c
Member Avatar for xavier666
0
176
Member Avatar for Hidden-Coder

G'day all, When i'm using the search function (Below) I get a Unauthorized Access Exception on certain folders, which isn't a problem, however after this Exception i'm not getting any results. I have tried searching around but I couldn't make sense of alot of stuff that I found. I haven't …

Software Development
Member Avatar for Hidden-Coder
0
95
Member Avatar for StarZ

hi, I was wondering how can i make a new frame after the password is entered(if it's correct). Like if the user enters the correct password than another brower/frame will open. This is the program: [code]import javax.swing.*; import java.awt.event.*; import java.awt.*; public class password { private static String password = …

Software Development gui java java-swing
Member Avatar for Mandana_bgh
0
121
Member Avatar for San24

Guys, Let me explain the application I have - Form > Main Tab Control > Main Tab Page > User Control > Sub Tab Control > Sub Tab Page > User Control > Contols/Text Box. Form - The main form Main Tab Control - This contains Main Tab Pages. Main …

Software Development
Member Avatar for nccsbim071
0
113
Member Avatar for Ranx

Hi, i'm hoping someone can help with a slightly odd problem i have. I have a piece of code that can create a folder on a sharepoint site from one machine, but not another. [CODE] If Not System.IO.Directory.Exists(strTargetLocation) Then System.IO.Directory.CreateDirectory(strTargetLocation) End If[/CODE] Originally it was because WebDAV was not running …

Software Development sharepoint vb.net
Member Avatar for Ranx
0
204
Member Avatar for StarZ

Hi, so I want to make this kind of "webpage" thing with GUI and how can go to another "page" not open another frame when I click on one of the buttons. Like in my program one of the buttons are "Sign In" and when the user clicks it I …

Software Development gui java java-swing
Member Avatar for musthafa.aj
0
240
Member Avatar for ankush.mukherje

hi experts please help me with this code [CODE]Private Sub cmdreport_Click() Set crApp = New CRAXDRT.Application frmViewReport.Show Set adorsRAM = New ADODB.Recordset Set report = crApp.OpenReport("D:\Ankush\created\proj11\Reports\Report1.rpt") sSQL = "Select type, user, location, cpu_no, model, speed, ram_unit from Master where RAM=" & Form1.cmbram.Text report.ParameterFields.Item("pRAM").Value = Str(cmbram.Text) report.DiscardSavedData 'CLEARS REPORT SO WE …

Software Development visual-basic
Member Avatar for ankush.mukherje
0
131
Member Avatar for isrinc

Newbie with problem reading 6-column floating point data. I copied an example and expanded for my use, but get this output in OutFileOne.txt: 0.000 0.000 0.00 0.000 0.000 0.00 Not getting correct values, nor correct # of values in columns. Any suggestions? Have tried explicit format (%5.2f) with no luck. …

Software Development c
Member Avatar for isrinc
0
1K
Member Avatar for Austinnh

Greetings to all. I'm having an error that occurs whenever I try to build a project in Dev C++. I can compile an individual source file fine. I have tried reinstall. I only have this error on my laptop (Vista). Everything worked fine on my other computer (XP). I have …

Software Development c++
Member Avatar for Austinnh
0
3K
Member Avatar for planethax

In VB6, how would I subtract 1 from a Hex? Do I need to convert to Integer first? (have tried HextoDec function, but not having success) Example Hex = FF FF Hex - 1 = FF FE

Software Development visual-basic
Member Avatar for joekbit
0
253
Member Avatar for bdrkb

Hi How can i send data from vb text box to crystal report text object directly

Software Development visual-basic
Member Avatar for abu taher
0
109
Member Avatar for capiono

Please does any know how to create a word document or PDF file from the textboxes and datagridview values? Thanks

Software Development c# pdf
Member Avatar for capiono
0
84
Member Avatar for capiono

I currently moved my windows form project to a different PC. In the project UI have some text boxes with a default value of "0". Before the move this worked fine. now if I run the code the UI does not show this default values. designer Code: [CODE] namespace PersonalBudget …

Software Development
Member Avatar for capiono
0
124
Member Avatar for dpfaff

Hello People, I took a class in C++ about a year ago and really liked learning to write code and working with with programs. I did not do very well in the class, in fact i ended up with a C-. Recently I decide that I wanted to try agin, …

Software Development c++ open-source
Member Avatar for Lerner
0
146
Member Avatar for npstyler

Hai Experts, I need to convert the pdf files to word document , i have seen some softwares that converts pdf files to word document , i need the component or and activex dll to perform this work if anyone have done plz. plz try to help me

Software Development pdf visual-basic
Member Avatar for cocol
0
231
Member Avatar for xcarbon

Hi, i need help with loggin the process list and saving it as a text file. I need it so that it will log any new program that opens up. Basically monitoring the process list.

Software Development vb.net
Member Avatar for sknake
0
46
Member Avatar for noobday

I've been trying to compile a very simple c++ code ; when trying to compile on codeblocks it says : error - stray '\312' in program [CODE] #include <string> #include <iostream> using namespace std; int main() { char letter1, letter2; string lastName; cout << "Enter your two initials and last …

Software Development c++
Member Avatar for noobday
0
880
Member Avatar for selenask

Hey I'm working with Java and cant seem to get my calculater working, Im trying to use my actionListener to make it all work.. Please help:) [code]import java.awt.FlowLayout; import javax.swing.AbstractButton; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JTextField; import javax.swing.text.JTextComponent; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class …

Software Development java java-swing
Member Avatar for adams161
0
144
Member Avatar for DTV

Is it possible to move the screen focus in allegro. Like, key[KEY_UP] would move the screen up on a map? Thanks in advance.

Software Development c++
Member Avatar for DTV
0
70
Member Avatar for charle2364

HI, im new in using vb.net 2008, and i want to master using it.. i want to create a simple POS system, can you tell me how can i hide group of buttons/ controls on the first load of a form and then group of controls will just show after …

Software Development vb.net
Member Avatar for charle2364
0
102
Member Avatar for Godflesh

I have a problem again :) I try to use this code: [code] import time from threading import Thread from threading import Lock def main(): for i in range(3): my_thread = MyThread(i) my_thread.start() class MyThread(Thread): lock = Lock() def __init__(self, i): Thread.__init__(self) self.i = i def run(self): while True: self.lock.acquire() …

Software Development python
Member Avatar for jcao219
0
382
Member Avatar for breakbone

hi all I'm writing a application which uses Opencv and wxWidgets and sends camera frames via a socket connection. But it seems i'm doing something wrong: after starting a server on my machine, i can't connect my application to the socket the server is listening on...why is that? [CODE=python] import …

Software Development client-server python
Member Avatar for breakbone
0
105
Member Avatar for Kreddy89

Hi guys, I am getting similar "identifier cannot be found" errors, except with "mkdir" they look like: 1>------ Build started: Project: shot_detect, Configuration: Debug Win32 ------ 1>Compiling... 1>film.cpp 1>c:\documents and settings\kedar\my documents\downloads\shotdetect-1.0.86\shotdetect-1.0.86\src\film.cpp(22) : fatal error C1083: Cannot open include file: 'ffmpeg/swscale.h': No such file or directory 1>image.cpp 1>c:\documents and settings\kedar\my …

Member Avatar for Kreddy89
0
494
Member Avatar for phpangel

hi, i have the following code for tic tac toe game Human vs. Computer, it runs without problem but when i prompt for entering X or O, it gives an error, can someone help, appreciate the answer. here's my code: [CODE]#include <iostream> #include<conio.h> #include<process.h> using std::cout; using std::cin; char matrix[3][3]; …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for TheWhite

so I have 2 methods, 1 with an argument the other without command_hello(String sender); command_hello(); I am trying to invoke the method using just their name: command_hello I can do this by using the following for the method with no arguments: getClass().getMethod("command_hello").invoke(this); Works! Great! But the moment I try getClass().getMethod(cmds.get(cmd)).invoke(this, …

Software Development java
Member Avatar for TheWhite
0
157
Member Avatar for ball3r

Hi guys, Firstly, a quick thank you to whoever put this site up, wealth of advice and everyone here sounds helpful. I'm quite new to C++ and programming in general so go easy on me. I'm trying to find a way through a maze from a given start point through …

Software Development c++
Member Avatar for WaltP
0
5K
Member Avatar for deepin

[code=c] while(1){//return from the loop only when the input is zero printf("\n1: Stack1\n2: Stack2\n0: to return\n"); scanf("%d",&i); switch(i){ case 1: printf("1"); break; case 2: printf(" 2"); break; case 0: printf("Thank you for using the service"); break; default: printf("Give a Valid Option"); break; }//end of switch - case }//end of while …

Software Development c
Member Avatar for WaltP
0
3K
Member Avatar for phil750

So i have to build a scheduler in priority ques, which will read infomation from test files. Also the work out the wait time and finish time. Text file will be like this; process1 21 3 process2 23 1 process3 45 20 [processID][space][Quantum][space][priority] So here what i have so far, …

Software Development c file-system
Member Avatar for phil750
0
101
Member Avatar for prushik

I am trying to write a TFTP server. I have successfully completed the code, it is fully RFC 1350 compliant. However, I wrote the whole thing in Haiku OS, and in Haiku, it works great. However, I also need a DHCP server, and I don't have one for Haiku. So …

Software Development c client-server
Member Avatar for prushik
0
241
Member Avatar for Godflesh

How do i make this code to store data in a global variable, it create random number of elements. [code] n = random.randint(0, 99) for i in range(1): print "-"*60 print "Here is some new elements! " while n >= 0: data_list = random.randint(0,99) print data_list, time.sleep(.10) n= n-1[/code]

Software Development python
Member Avatar for Godflesh
0
316
Member Avatar for pac-man

hi guys, I've created a function that returns the number of times a value resides in a container (in this case, vector). The user is able to specify were in the vector they wish to search for the value. [CODE] int number(int n, vector<int>::iterator start, vector<int>::iterator end) { int count …

Software Development c++
Member Avatar for pac-man
0
231
Member Avatar for gangster88

I need to have 4 functions which asks the user how many times to flip the coin and then displays the number of heads and the number of tails as a decimal? [code] def getInputs(): times=input("please enter the number of times the coin should be flipped: ") def simulateFlips(): for …

Software Development python
Member Avatar for charlottetemp
0
1K
Member Avatar for Tech B

I've seen a program called Devcon ([url]http://en.kioskea.net/faq/sujet-1886-enable-disable-a-device-from-the-command-line[/url]) used for enabling and disabling hardware devices. I want to do the same hopefully with python. I want to turn the internet connection off with a script. I can already do it with popen('ipconfig /release') but I want something more robust. Is there …

Software Development python
Member Avatar for Tech B
0
2K
Member Avatar for vedatsivri

Hi Everybody; I wrote a class that uses boost library to create thread. My thread function just do select operation for mysql database. Besides, I developed a client program to test server side, but server side gave 'segmentation error ' after fourth client request via socket. [CODE] void Thread::Start(void (*function)()){ …

Software Development c++ client-server
Member Avatar for Salem
0
101
Member Avatar for planethax

Having a guy help me with some code, however, he doesnt know VB6 and only has freebasic I need to convert the following into VB6 so I can make a user interface (comport selection etc) but not sure how to do it. Even a step in the correct direction would …

Software Development user-interface visual-basic
Member Avatar for planethax
0
475
Member Avatar for kavourdoukos

I had this:[CODE]classA* class[10];[/CODE] But now i dont know the exact number(10) and i want to put a variable there and i get a compilation error.What i should do instead?

Software Development c++
Member Avatar for mrnutty
0
123
Member Avatar for bobscrazy

Hi everyone, basically the problem i have is; when the program loops around for the 2nd, 3rd etc it resorts the swip back to the inital value of 1000, rather than what i want it to, the ewip from the previous day. I have underlined/highlighted the two bits i mean. …

Software Development java
Member Avatar for JamesCherrill
0
99

The End.