199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shila80

Hello i'm new in java and i'm sorry if my english is not very good i have a question to solve and i cann't figure it out how to solve it i have this class public class B { public boolean what(int []arr1,int[] arr2,int num) { for (int i=0;i<arr1.length;i++) for(int …

Member Avatar for Rayhan Muktader
0
103
Member Avatar for alpha_gamma

Hi all, I am working on a C++ program that converts a decimal to a fraction, finds the lowest common multiple, multiplies the numerator by the denominator, then reduces the fraction again so the fraction will be 'numerator/1'. I am using this code in a larger program to change a …

Member Avatar for iamthwee
0
484
Member Avatar for jlb_2_99

When using loop functions or statements which loop statement do you prefer to use that would be easy for a beginner like me to use: The do while loop, for loop, or while loop. I ask because I am to re-write my code from using the If statement to using …

Member Avatar for jim mcnamara
0
150
Member Avatar for complete

Does anyone have any experience with the free Microsoft development enviroment called Visual C++ 2005 Express Edition? I have downloaded and installed it and I notice it is a lot different than what I am used to. Is MFC gone? If you click on New to create a New Project, …

Member Avatar for Ancient Dragon
0
168
Member Avatar for Zay

Hello; i have this Question and need your help, i do not know how to solve it; [B]Problem:[/B] Write a member function called [B]countNodeWithNoRchild[/B] that will return the number of nodes in a BT(binary Tree) does not have a right child. (Hint: a leaf node also does not have a …

Member Avatar for Narue
0
124
Member Avatar for civilr

Hey everyone I am new here and I found this site on google it looks pretty helpful and clean so I guess I am here to stay. However, I hope someone can solve my problem. I am trying to create an ArrayList with both a URI and FileInfo (file destination) …

Member Avatar for civilr
0
125
Member Avatar for mniece

I'm in need of some help with 3 tables I have with MSSQL. Is there a way to use a single database query to get the results I'm looking for? (See the bottom for an ideal returned recordset.) Thanks! TABLE: APPLICATION APP_ID APP_NM GRP_ID -------------------------------------- 1 Script 1 1 2 …

Member Avatar for mniece
0
88
Member Avatar for raj1324

does gcc compiler support graphics file ?how to write graphics program in gcc?pls guide me. in india how to get gcc compiler cd? send me some address. hurry up thanks & regards all members and guest

Member Avatar for happygeek
0
182
Member Avatar for Cruize_Invades

I heard that using VB 6.0 I can disable the start button. But I've search to found what code to be put but unfortunately i cannot found one. I also know that code for win98 differ from XP OS... So pls some one teach me... Thanks a lot..

Member Avatar for Cruize_Invades
0
123
Member Avatar for Zorbie

Okay, I'll be honest right up front, I'm in a first year Python class and this is a question I'm supposed to write a program for. Here's the question: "Write a program that continually reads in numbers from the user and adds them together until the sum reaches 100." Here's …

Member Avatar for jrcagle
0
273
Member Avatar for linux

I wrote this simple code to return my browser's name, because I've never tested this in Firefox: [code]<html> <body> <script type="text/javascript"> var browser=navigator.appName var b_version=navigator.appVersion var version=parseFloat(b_version) document.write("Browser: "+ browser) document.write("<br>") document.write("Version: "+ version) </script> </body> </html>[/code] In, Firefox, it returns "Netscape 5." I uploaded a screen shot. Error? *sorry …

Member Avatar for MattEvans
0
180
Member Avatar for lacoste78

SO! I need finish this task to create a program able to read 3 sides of the a triangle in Tedit and analyse the results and give some answers such as: the triangle is an isoceles, equilateral or scalene...and show a picture according to the answer. Also calculate the height …

Member Avatar for lacoste78
0
76
Member Avatar for blazted

I wrote a hash table that takes a char as a key and for a test I am using a string for my value. It uses a linked list. But I am having a problem displaying the value. I have a function that displays the key correctly but the value …

Member Avatar for blazted
0
119
Member Avatar for tralfas

here is the code [code]/* Chapter 6: Borders Programmer: ELIIIIIIIIIIIIIIIIIIIIIIIIII DOOOOOOOOONNNNNNNNAAAAAAAAAAAAAAAAAAAAAAAHHHHHHUUUUUUUEEEEEEEEEE Date: Filename: Borders.java Purpose: */ import java.awt.*; import java.awt.event.*; public class Borders2 extends Frame implements ActionListener, ItemListener { public Borders2() { setBackground(Color.red); //set the layout setLayout(new BorderLayout(50,50)); //Add buttons Button Red = new Button("Red"); Button Yellow = new Button("Yellow"); …

Member Avatar for Ezzaral
0
138
Member Avatar for raleman

i am trying to create a program that allows me to see if a sentence is a palindrome. this is what i have but something is wrong. CLS DIM a$(1 TO 5) FOR i = 1 TO 5 INPUT "give me word"; word$ NEXT i LET differflag = 0 FOR …

Member Avatar for vegaseat
0
164
Member Avatar for Gorilla

My problem is: [LIST] [*]I've try many times with DataOutputStream, FileWriter but I cannot write intergers into a file as I wanted.[/LIST][LIST] [*]I seemed to succeed but after writing them into a file, when I open it with notepad, I can read it. They all tuned out to many strange …

Member Avatar for Gorilla
0
102
Member Avatar for Slavrix

my code was working, but when i added in a new section to enter playing against a computer player, it now hates me, and wont stop trying to kill me. [code=c++] //name: ******* //Lab: * //purpose: ******* //modification date:*********** #include <iostream> #include <cstdlib> #include <ctime> using namespace std; const int …

Member Avatar for Slavrix
0
93
Member Avatar for Mouche

I know printing primes isn't anything new, but (like always) I'd love to hear some feedback on how I can make my code more efficient and other constructive criticism. [php] def print_primes(r=10): primes = [ ] for i in range(2,r+1): prime = 1 for divisor in range(2,i): if i % …

Member Avatar for arsham
0
141
Member Avatar for quintoncoert

I am currently working on a project which requires me to instantiate objects of a class. The class is in a dll which is accessed via its header file. I suspect that the dll does not work with visual c++ express edition which I am using. I would like some …

Member Avatar for vijayan121
0
254
Member Avatar for alienlinux

hi, i have:- Server Version: Apache/1.3.29 (Unix) PHP/5.1.4 mod_mp3/0.39 mod_fastcgi/2.4.2 mod_ssl/2.8.16 OpenSSL/0.9.7j the php module seems to have loaded ok yet when i point to any php content it still delivers the code and not the propper content and i don't know what to check now as i am so …

Member Avatar for alienlinux
0
150
Member Avatar for aSa

Hi all, I have trouble with creating Windows Service serving as COM server I have created Service Application and com object in it, register and start it when i try to create com from client app - a new process of service is started. Question is: how do i avoid …

Member Avatar for aSa
0
120
Member Avatar for tunday

I am trying to write a program which sends text from a forms Rich Edit Boxes via 2 serial ports( COM3 and COM 4 have 2 rich edit boxes each for incoming and outgoing text) using Borland C++ Builder 2006. This program uses some C++ serial port communication library code …

Member Avatar for Ancient Dragon
0
164
Member Avatar for boujibabe

I am supposed to create a hotel reservation system that allows you to make a reservation either with a hotel package or without and calculate billing. However I am at lost for where to begin. I have made a couple of sorry attempts but I am having problems identifyind the …

Member Avatar for jbennet
0
107
Member Avatar for jigoro

Hi im a beginner in vb.net. this is a console application. i would like to know how can i use system.timers.timer so that my application will check the file req.txt every 5 sec. any kind of help will do. here is my application. Module Module1 Sub Main() Dim FILE_NAME As …

Member Avatar for jigoro
0
293
Member Avatar for katerinaaa

Hi, I would like to ask if anyone know how can I create a tokenizer for a txt file in C++. I find it difficult because there are not only words but there are also numbers and <p id> tags. I have attached the file that is needed to be …

Member Avatar for katerinaaa
0
184
Member Avatar for Jishnu

Hello every-one, I am new to java. Can any-one suggest some basic-level yet solid book for transition from c++ to java ?

Member Avatar for leehyokug
0
98
Member Avatar for stindeee

For home work i have to do SMS in c++ ,which has to be exactly like on mobile.I dont know how to do this.

Member Avatar for WolfPack
0
90
Member Avatar for dsilander

Hi I would like to run a javascript function (to confirm deletion) from a web control (asp:button) before posting back to the same page. I have read about how to do this in several places (mybutton.attributes.add... ) However, the fact that I have asp.net validation controls on my page means …

Member Avatar for airyce
0
204
Member Avatar for fredzik

Hi, The last time I posted I think I asked too many questions and the main reason that I posted got lost somewhere amongst other side issues. The main reason I posted last time is the following: # The following code is not a game, it is configured just to …

Member Avatar for fredzik
0
126
Member Avatar for stonecoldstevea

Need to write c++ code that calls a function and validate the moduleCode with a do...while loop. I ca'nt get the function to go out the loop Pleez help void inputAndValidate(string &moduleCode,int &numberHours) { string ABC111,DEF112,XYZ113; do { cout << " Enter module code: "; cin >> moduleCode; } while …

Member Avatar for jaepi
0
109
Member Avatar for Confused612

can any body help me out wid this ........as i m doing C not C++.....plz tell me the whole program........plzzzzzzzzz Construct a solution algorithm and write a C program for the following programming problem. Use a top-down modular design. State clearly tasks that are to be performed by each module. …

Member Avatar for Aia
0
3K
Member Avatar for adr1

hi , How are you? I am using a software for my business.I want a tsr program which can help me stop using of some buttons from the keyboard.Like cntrl+delete combination key, f6 function key and some others. And in the same way i want a program to deactivate the …

Member Avatar for jbennet
0
125
Member Avatar for srinath.sec

hi, what is the difference between [COLOR=red]static[/COLOR] and [COLOR=red]shared[/COLOR] library how do we create them and what is the extension used for both of

Member Avatar for dwks
0
96
Member Avatar for RwCC

Hey everyone, I am always having to copy DLLs from various folders for various reasons. So I thought if I had a .bat file to do it then it would save me bucket loads of time. So is anybody here able to provide code to copy from several folders and …

Member Avatar for DenisOxon
0
178
Member Avatar for marsheng

Hi I am trying to insert records into a small Dbase file. Whenever I insert it always appends. If I do db.prior; db.prior; (which should be at least 2 records from the end) and do a db.insert, it always appends. I do not want to use an index as the …

Member Avatar for dugjohnson
0
205
Member Avatar for quintoncoert

can anyone tell me the difference between visual c++ express edition and visual c++ .net? It would apear that they are the same. Both seems to use the dot net framework. Are there any significant differences? And also how do they differ from other types of c++ such as ansi …

Member Avatar for jwenting
0
126
Member Avatar for lilmiss

Create a class called [B]DateProfile[/B] that has the following private instance members: [LIST] [*][B]gender[/B] - a [B]char[/B], the gender of the applicant.('M' or 'F'). [*][B]search_gender[/B] - a [B]char[/B], the gender ('M' or 'F') of desired partner (this is not the gender of the applicant, but of the applicant's requested partner. …

Member Avatar for jwenting
0
141
Member Avatar for tralfas
Member Avatar for laconstantine

Hi Everyone, I have the following function, char* sample1() { char *p = "Israel"; return(p); } //in this case the memory storing india is not destroyed at the end of the function, indicating that it wasn't stored in the stack meant for the function call. However, the following function causes …

Member Avatar for Narue
0
138
Member Avatar for mariocatch

Hey All, Threading may not be the answer to this, but here's my current situation. I have a form that I want updated about every 5 seconds. I couldn't figure out how to do this, so I just did a refresh on a button click on that form. However, in …

Member Avatar for iamthwee
0
149
Member Avatar for assgar

Hi Multiple rows of dynamically created data is retrived from the database and displayed properly. When I get 50 rows displayed scrolling is necessary. The problem is when I scroll to see the items at the bottom of the list the rows get blurred (jumbled). To be specific at the …

Member Avatar for assgar
0
90
Member Avatar for Ospreyluvr

Alright, granted i am not taking the advice, i am starting with 3d. i have blender and gmax. also, i am looking into purchasing deled. i wanted to know if any body had basic code to make a 3d model move so that i have a better understanding. thanks!

Member Avatar for Ospreyluvr
0
117
Member Avatar for ghadahelal

hi all, i have a program that 'll take an Ip address from the user and 'll search this IP address in a file. now i open this file in binary mode. the IP address will be in this form 169.254.28.233 shall i convert this address into hex before searching? …

Member Avatar for Narue
0
148
Member Avatar for ghadahelal

h[I]i all ,[/I] [I]i have a program that read its input from a file in binary mode![/I] [I]now i nead to store this data and to compare it with another data.[/I] [I]which datataype can my input take.[/I] [I]also, the comapred stream is in this form 0004a4900[/I] [I]i made this stream …

Member Avatar for Narue
0
88
Member Avatar for stonecoldstevea

I need to validate the moduleCode by a do...while loop. But my code does'nt exit the loop - Not sure if I did right thing by declaring the string ABC111 before the loop - please help urgently using namespace std; // function inputAndValidate should be inserted here void inputAndValidate(string &moduleCode,int …

Member Avatar for stonecoldstevea
0
89
Member Avatar for shriyash134

HI there, The program which I am working on involves[B] reading XML document and then depending on the input data save the output files(text) in different folders[/B]...can any body tell me where do i find tutorials which can help me in doing this.... I need help .. waiting for response …

Member Avatar for Ezzaral
0
195
Member Avatar for jov_damo86

Kindly please help me on how to make a VB6.0 EXE To run when there is no visual basic 6.0 installed on a computer! Thank you! or what can i do to run a visual basic program to the computer where there is no vb software installed!

Member Avatar for jbennet
0
123
Member Avatar for jcbraith

An interesting thing happened to me today. I'm converting an asp webpage to asp.net. One of my pages has functions from another file imported through the <!-- include file="myfile.aspx"--> format. When debugging, instead of stepping into the myfile.function, the debugger starts stepping through what appears to be a random segment …

Member Avatar for jcbraith
0
263
Member Avatar for Matt Tacular

[code]str1 = 'c:\documents and settings\user\desktop' str2 = 'starcraft.exe' print str1[/code] I would like to know how it would be possible to add str2 to the end of str1 with a "\" inbetween the two strings. so that I end up with "c:\documents and settings\user\desktop\starcraft.exe". Thanks

Member Avatar for ghostdog74
0
184
Member Avatar for jnscollier

So i found a script that does what I want but I'm having trouble "implementing" it. Basically I have all the image file names stored in my table and i want them to all display (the ones uploaded by the particular user logged in) on a page. Of course I …

Member Avatar for UrbanSky
0
117

The End.