199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lulie

[B] I have this method:[/B] [code] static int countLeaves(BinaryNode node) { if (node == null) { return 0; } else if (node.left == null && node.right == null) { return 1; } return countLeaves(node.left) + countLeaves(node.right); } [/code] and i want to Write a client program that constructs a binary …

Member Avatar for Lulie
0
120
Member Avatar for crazykid

hey guys. i'm working on this project and i can't seem to get it figured out. there's a lot of steps involved, but i can't get any further right now because i cannot seem to figure out how to place values in an array. the program should ask the user …

Member Avatar for crazykid
0
346
Member Avatar for gendler.max

Hi, I am writing a program for my C++ class that must create a struct(Hero) and make an array of it. My class is using the lvp library and i was wondering if anybody could help me make a vector of hero objects. This is what i have so far: …

Member Avatar for gendler.max
0
137
Member Avatar for bufospro

Hi, I want to make a game that I saw in internet but via applet code (and with move counter). The game is [URL="http://leepoint.net/notes-java/examples/games/slidepuzzle/slidepuzzle.html"]http://leepoint.net/notes-java/examples/games/slidepuzzle/slidepuzzle.html[/URL] Could someone help me please ???

Member Avatar for jwenting
0
137
Member Avatar for kalrajhi

//Program checks employment status, if part time, NO VACATION, if full time, program goes into if/else nest and asks for number of years working at company. More than five years,full time employee granted 3weeks of vacation. Five years or less, full time employee is granted 2weeks of vacation. [CODE]#include <iostream> …

Member Avatar for kalrajhi
0
175
Member Avatar for fattest

i am writing a small script and part of it requires comparing two version strings in the form V[1-9].[0-9].[0-9].[0-9] The script will perform some action if the two strings have different subversions (STRING1=V1.1.0.2 and STRING2=V2.1.0.4 for example). So far the script is [CODE]for i in {1..4} do if [ $STRING1[(ws:.:)$i] …

0
87
Member Avatar for sonmagy

I want view web page by http connection in j2me but the output is html code if any one can help me please replay

Member Avatar for sonmagy
0
88
Member Avatar for dan_t

Another question, Is there a way in php to send emails without having to use the "mailto:" ? Most everything I have seen uses this method, but a lot of people don't use MS Outlook. Thanks Dan

Member Avatar for dan_t
0
92
Member Avatar for smitysmit

can i make a program open another program after a user selects it such as i am making a menu and i want if the user enters 1 it opens the program accociated with 1 or will i have to paste all the files from the external program to the …

Member Avatar for restrictment
0
153
Member Avatar for trashbat

I'm trying to convert from some Java code, and I've got one massively complicated headache. Bear with me while I see if I can provide a comprehensible explanation. Let's suppose I have an abstract class called BaseDatatype. Other classes will inherit from this, e.g. StringDatatype, NumericDatatype and so on. Now, …

Member Avatar for Antenka
0
140
Member Avatar for Agent-of-Chaos

i have this piece of code and i want it to be implemented in vb.net [CODE]Sub DrawScreen() If Picture1.Point(1 + x + (i * 4), y + (j * 4)) = RGB(c1, c2, c3) Then v(&HF) = 1 Picture1.Line (1 + x + (i * 4), y + (j * …

Member Avatar for Luc001
0
296
Member Avatar for k2k

i was having fun with php until i hit this road block... geolocation.class.php is in the same directory as my index.php.. anyone has any idea why it can't find it? =( /* * this is part of the index.php * / [code] <div id="midBox"> <table border="0" align="left"> <tr><td><script type="text/javascript"> var …

Member Avatar for saiprem
0
277
Member Avatar for berbatov

Hi everyone I am new to this forum hopefully someone can shed some light on this vague scenario for a test to get an interview for a company. I dont know for what to do at all stuck please could someone help it would mean alot thank you: Scenario: A …

Member Avatar for Salem
0
101
Member Avatar for athenaabc

Hi i'm a student and have problem with moving bitmap. I must load it in the center of client area and after there moving using keys but it doesn't work :( Can you help me this is the code:[CODE] CKursovaView::CKursovaView() { size=CSize(50,50); // TODO: add construction code here } CKursovaView::~CKursovaView() …

Member Avatar for soniakhan33
0
132
Member Avatar for aa_teguh

hi guys, i have a trouble on my sms gateway project,, with ASP.net engine and sql server2005. i have massage like this "Cannot open database "db_sms" requested by the login. The login failed. Login failed for user 'USER-7DA292602D\user'." any body to help me?? thanks for replay...

Member Avatar for dinesh.isuranga
0
56
Member Avatar for antman89
Member Avatar for gkaykck

--Homework-- Write a C program that codes a string which is given by keyboard so that the coded string includes characters with their number of sequential occurrences. For example, if the string to be coded is AAABBFFFRRRRZTT then the coded string must be A3B2F3R4Z1T2. You can assume that there is …

Member Avatar for gkaykck
0
204
Member Avatar for asthaynian

I'm trying to make quiz GUI. The GUI has one button and an entry box. The user presses the button and it asks a random question from using the world database. After 10 questions, it tells you the number correct and incorrect. I'm having a lot of trouble with the …

Member Avatar for TrustyTony
0
1K
Member Avatar for mick3339

I am trying to read a csv file and store it into a 2D array, However it give me "segmentation fault" each time I run it. Here is my code [CODE] #include <stdlib.h> int main(void) { const char filename[] = "a.txt"; FILE *file = fopen(filename, "r"); if ( file != …

Member Avatar for Salem
0
491
Member Avatar for sallecpt

hey guys. okay, I know how to count form values. something like; <?php echo count($_POST['field']; ?> where the field would be something like field[i] however, I am cracking my head to get a solution to count, but only where the field has a value. Please, someone, help me with this …

Member Avatar for diafol
0
217
Member Avatar for vallikasturi

Hi... I have two tables without primary keys and with a common field meterid... I can't add a primary key to any of these tables... Now i need to join both tables.. Can anyone write the query for this...plss... select * from table1,table2 where table1.meterid=table2.meterid; isn't working... The result of …

Member Avatar for bhartman21
0
722
Member Avatar for prodstar

hi i'm currently in need of a quit option i have something like for example click 2 for quit but i don't know how to make a command for it, could someone please help me

Member Avatar for finito
0
69
Member Avatar for Lupus

Hey all I have a problem in my code I can't seem to find a solution for.. One combobox is being filled up with a datatable like this: [CODE]CbUsers.Datasource = usersDAO.getUsers()[/CODE] The getUsers() returns a datatable from my acces database. Users have a name and id, I want to use …

Member Avatar for Lupus
0
138
Member Avatar for sidhu51

hi, i am a newbie in C#. I am having a variable named stone inside a private function named rock. a variable stone is defined in a structure called sand and is accessed only as sand.stone inside the function rock. Now, I must access this variable called stone in another …

Member Avatar for sidhu51
0
99
Member Avatar for restrictment

Hey everyone, I got bored and decided I wanted to make a 'pitch' cards game in c++, however I came across the problem of generating all 52 cards in a deck without duplicating the same card. So basically, I just want to print out every single card in the deck …

Member Avatar for iamthwee
0
197
Member Avatar for Cap'nKirk

Hi, I am trying to cobble together a couple of snippets that I have found on the net to read and write to an ini file. The reading and writing part works fine but what I am trying to do now is to check if the ini file actually exists …

Member Avatar for Cap'nKirk
0
217
Member Avatar for sourabhtripathi
Member Avatar for 0x69
0
116
Member Avatar for makdu

Hi, I am trying to find a solution to read the packet destination for an internet connection through wifi. I am able to do the same for a lan connection using packet sniffer example. But the same is not working for wifi connection. [CODE] mainSocket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP); …

Member Avatar for makdu
0
371
Member Avatar for BobbieJean

I've gotten this applet to do some of what it should but I'm having trouble getting it to do the rest. It's a multiplication applet that asks the user a question such as "What is 6 times 7?", has a JTextField for the user's answer, and a JButton to check …

Member Avatar for quuba
0
110
Member Avatar for kanayda

i have to write a program for a palindrome on vb that uses a loop and a decision and i don't think i need any arrays or any other real big complications. this particular program when i tried it cause i cant actually use this one due to plagiarism didn't …

Member Avatar for vb5prgrmr
0
115
Member Avatar for empror9

hello, i want write a simple programe wich count the number of the chrechtar this is my code [CODE] #include <iostream> using namespace std; int main() { int count = 0; char str[30]; cout << "enter a word: " << endl; cin >> str; for (int x = 0; x …

Member Avatar for siddhant3s
0
163
Member Avatar for Moemasri

I had finished the login page and all the othr pages i have 3 roles student admin adn a tutor i am creating an asp web application after loging in the page is redirected to a default page that have a master page i want to put for every user …

Member Avatar for kvprajapati
0
617
Member Avatar for Alazzawi

Hi guys, i really need help in VB 6, the problem is that i have an old project that i make as a setup file, and now i need to re construct my project from that setup file, so i can make some modification because unfortunately i don't have the …

Member Avatar for asaukani
0
117
Member Avatar for thiyagu_mca2006

Hi All, Im Thiyagu, a junior software developer(Java/J2ee). I have assigned to access Webservice (sending request and receiving response from a WSDL). can any tell me the steps involved to convert Java code from a WSDL file using Axis(with ant build script). please very urgent. Note : I already tried …

Member Avatar for MudassarNazar
0
639
Member Avatar for KyleUbenk

Hello, I'm using a process to compile java source code from within my program. I am then attempting to read the output ( errors , if it compiled ok etc) . But for some reason it isn't working. It works fine when using other shell commands ( ping etc ) …

Member Avatar for kvprajapati
0
866
Member Avatar for ShahdaaD

[COLOR=#555555][B][I]hi guys, I am a Beginer Programmer.[/I][/B] :confused: [/COLOR] [COLOR=#555555][B][I]I Like to Learn about C# and i started from a week ago.[/I][/B][/COLOR] [COLOR=#555555][B][I]I Searched in google to find a froum to get some help about C#.[/I][/B][/COLOR] [COLOR=#555555][B][I]and i found this website.i hope i can find some friend to get help.[/I][/B][/COLOR] …

Member Avatar for kvprajapati
0
172
Member Avatar for lilpinay

this project is to determine if a phone number is a prime number. if the number is a prime number then print a message to the effect. if the number is not a prime number then print the prime factors of the number. allow the user to continue entering numbers …

Member Avatar for javaAddict
0
92
Member Avatar for the_preface

I'm writing a program that reads information from three seperate classes. Here is my code: [CODE] public class Animal { protected int id; protected String type; protected double mass; //------------------------------------------------------------------------ // Sets up an animal with the specified ID number, type and weight. //------------------------------------------------------------------------ public Animal (int animalID, String animalType, …

Member Avatar for javaAddict
0
171
Member Avatar for zigana91

I am working on an assignment where I am to create a mortgage calculator that allows the user to input there mortgage amount, term and interest rate. The following is what I have so far. The errors I keep coming up with are the following: The Decimal Format the for …

Member Avatar for javaAddict
0
156
Member Avatar for jellybeannn

[code] protected override void OnInit(EventArgs e) { this.currency_txt.TextChanged += new EventHandler(currency_txt_TextChanged); base.OnInit(e); } protected void currency_txt_TextChanged(object sender, EventArgs e) { rateSymbol.Text = currency_txt.Text; amountSymbol.Text = currency_txt.Text; } [/code] i'm trying to write a textbox text to a label, the above code doesn't change anything or give any errors. My textbox …

Member Avatar for finito
0
150
Member Avatar for thanlin

Exception Error: [code] private void Form1_Load(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(); conn.ConnectionString = "Data Source=LINLINPC\\SQLEXPRESS;Initial Catalog=POS;Integrated Security=True"; conn.Open(); MessageBox.Show("Connection"); conn.Close(); } [/code] I got this error(The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception.)

Member Avatar for finito
0
67
Member Avatar for krishnisilva

does anyone konw why is this code giving an error saying: There is already an open DataReader associated with this Command which must be closed first. the error is coming form the place where i have cold the line the code is below: C# Syntax [CODE] public String[] LoadUSEmp() { …

Member Avatar for finito
0
112
Member Avatar for doomkid

Ok so the other day i was playing a game on facebook and decided to make a program to make it faster to play the game and save some time. i made a simple auto clicker with some hotkeys to start/stop and then added some text boxes and some more …

Member Avatar for Luc001
0
221
Member Avatar for man5237

Please help me to write a shell script to find the GCD (Greatest common Divisor) of [B]3[/B] numbers. Thanks in advance.

Member Avatar for kvmreddy
0
3K
Member Avatar for farhanafzal

Write a C program to enter the elements of three one dimensional array A (size 5), B (size 10) and C (size 5) as an input from the keyboard. The program will find and print: • The maximum element of array A entered as an input. • The minimum element …

Member Avatar for farhanafzal
0
111
Member Avatar for so0oso

i write now code the game of hang man i want code sound in eclipse if true or false Brief sound teacher she said the cod is one line after Loading any sound plaaaaaaaaaase i want help

Member Avatar for Salem
0
115
Member Avatar for pradeepktg

Hi All, I have developed a web application using jps. I have a user pages, which can be accessed after entering login credentials. If a user tries to go the a certain page directly without logging in, it directs to login page, this works perfectly in all browsers except mozilla. …

Member Avatar for pradeepktg
0
106
Member Avatar for Nickg140143

Hello, I'm trying to validate the form, but each time I try to do so, all fields return invalid. I've tested my regular expressions with various online testers and they seem to work fine, am I perhaps using it in the wrong way? Or maybe a problem with my functions?:-/ …

Member Avatar for Nickg140143
0
204
Member Avatar for melteddashboard

Hey I'm new here so forgive me if I do something wrong. Just let me know and I'll try to fix it. Basically I'm trying to write a binary search tree without using recursion. (Difficult I know, but if you can show me how to do it without changing the …

Member Avatar for VernonDozier
0
436
Member Avatar for ShuiYinDeng

Sever.java file [CODE]import java.net.*; import java.io.*; import java.util.*; /** * Simple server use to teach University of * Northumbria's Operating Systems and Networks modules. * To be used with compatible simple client. * <PRE> * Protocol: * client <---message--- server * message = <message body> CRLF * </PRE> * * …

Member Avatar for moutanna
0
133

The End.