199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tpluscomb

I have been writing some quicksort code and testing it on integers and all seems to be going well. Now I'm trying to use my code to read in words from a file and quicksort them. I tried using my quicksort on an array of strings but that did not …

Member Avatar for ArkM
0
922
Member Avatar for cbickle

Hey everyone im working on a class in java that does several things. it is supposed to take a sky condition either sunny snowy cloudy or rainy and a temp between -50 and 150 f. the default sky is sunny and temp is 70. it needs a method that converts …

Member Avatar for Antenka
0
901
Member Avatar for shubhang

Hi, I am new at java. I have made the search class of an address book program with the functions of add, modify and delete. Please have a look into the code. Please also explain the function of [code] e.printstacktrace();[/code] [code] import java.io.*; import java.util.*; class search { private String …

Member Avatar for Antenka
0
183
Member Avatar for laki234

i have created my code.But my division is not working for longer number.CAn anybody solve this. [ICODE] #include <iostream.h> #include <string.h> #include <stdlib.h> #include <sstream> #include <iomanip> using std::setfill; using std::setw; using namespace std; void subtract (struct head *oprnd1, struct head *oprnd2, struct head *result); void add (struct head *oprnd1, …

Member Avatar for William Hemsworth
0
246
Member Avatar for laki234

hi i want to create huffman binary code which tales string as a input,identify Identify the set of characters appearing in the input string. Count the frequencies of these characters. According to these frequencies, generate a Huffman binary code .I have to do this in c++ using cursor.I dont knw …

Member Avatar for MosaicFuneral
0
237
Member Avatar for Quendy

Here is my code, I want to get the coordinate of the mouse position: [code=cplusplus] #include <iostream> #include <string> //#include "WinDef.h" //#include "stdafx.h" #include <windowsx.h> #include <windows.h> #include <atltypes.h> using namespace std; int main() { DWORD pos = GetMessagePos(); CPoint pt(LOWORD(pos), HIWORD(pos)); ScreenToClient(&pt); return 0; } [/code] But I could …

Member Avatar for vmanes
0
557
Member Avatar for lehe

Hi, I have an array. I put its definition in a .c file and externally delare it in a .h file like this: //.c file unsigned char jetmap[][]={ {0, 207, 255}, {0, 223, 255}, {0, 239, 255}, {0, 255, 255}, {16, 255, 239}, {32, 255, 223}, {48, 255, 207}, {64, …

Member Avatar for lehe
0
118
Member Avatar for alias120

Hi there, new to the community and first of all just wanted to say its great to be here. I'm rather new to C++ and i was having an issue perhaps someone could clear up for me. Alright, our instructor for a class im taking would give us simple programs …

Member Avatar for davids2004
0
160
Member Avatar for lone_emu

I got most of the basics but i need help on getting all of the requirements right and EVERYTHING I NEED TO DO. Is there a way to replace certain chars without actually using str.replace();, especially punctuation? This is the assignment 1. You will create a class that will perform …

Member Avatar for Antenka
0
616
Member Avatar for nvodapally

Implement a recursive template function for the 2-way Mergesort algorithm. A Main program is provided that tests this function. Can anybody help me out with this question? this is the main function [code=cplusplus] #include <iostream> #include "Student.hpp" #include "MergeSort.cpp" int main() { const int n=10; { Student A[n]; Student tmpArray[n]; …

Member Avatar for skatamatic
0
79
Member Avatar for alip15379

Hi everybody I'm new to this forum, and I hope I get to know you all for as long as I'm gonna be coming here. I need help with my program. basically wat i need to do is to create a program in which it check the spelling of the …

Member Avatar for Antenka
0
180
Member Avatar for shubhang

I have made this delete class of my address book program. It gives an error when I use the renameTo() function. Please look into my program. [code] import java.io.*; import java.util.*; class del { private String stru,strf; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); public void calc()throws IOException { System.out.println("enter record to be …

Member Avatar for bondo
0
170
Member Avatar for starletcharmed

Hey! We have to write a function that deletes nodes from a linked list. I was wondering if you could tell me if this is correct, and if not, how I could fix it? [CODE]void delNeg(node * L) { node *cur = L; node *prev = NULL; while(cur != NULL) …

Member Avatar for cikara21
0
101
Member Avatar for curto21

I need help trying to execute a script remotely using ssh. I'm writing a script that will run on a local machine. From that script I need to execute a script on a remote machine. The problem is that when I run the remote script using ssh, it's output is …

Member Avatar for DimaYasny
0
104
Member Avatar for scamguru

[B]I have to read a file (for a string) and the file is available only at the compilation time, not in the run time. Is there any possibility to read the file during compilation and initialize a variable with the value read from the file. I have tried different methods, …

Member Avatar for vmanes
0
109
Member Avatar for NewGuyCPP

I'm new to c++ like most people here, but i'm trying to learn to do C++ if one of my courses and its not going well (been given 6 powerpoints to go by). Ok so to the questions: Using Dev-C++ for programming and whenver i put in a number wrong …

Member Avatar for cikara21
0
118
Member Avatar for christiangirl

I have this program all working, except in how the text looks in the file. The text is supposed to be all on different lines, but its all on the same. Here's the code: [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /* * class LogOrder * Allows user …

Member Avatar for christiangirl
0
135
Member Avatar for Oblique

I am trying to create a Space Invaders sort of game. I am using a linked list for the bullets that the player shoots and in the same list, there is also the enemies. I have a addNewEnemy Function which I run once in the main game loop. This adds …

Member Avatar for emotionalone
0
130
Member Avatar for burhanms

Hello, I work on a problem and I want my solution to be picked from discrete numbers.( I want a value for diameter and I want it to be selected from the available diameter values) Does anyone know it can be done with C++ and how? Thanks

Member Avatar for MosaicFuneral
0
99
Member Avatar for djdellux

i am tying to query from a db and cant get the time section to come back with the correct result PLEASE HELP!!!!!! [ICODE]<html> <head> <title>Loggin DB</title> </head> <body> <h1 align=left>Please enter search feilds:</h1> <body bgcolor="#82CAFA"> <form method="get" action="loggin1.php"> Page: <select name="Page"> <option value="approve.php" >Approve</option> <option value="custquery" >CustQuery</option> <option value="slpnlogin">SlpnLogin</option> …

0
60
Member Avatar for it2051229

In C we have what we call dangling pointers where if a pointer is pointing to something else and if that something else is deallocated or removed from memory then the pointer that is pointing to that something else is now a dangling pointer. I've been learning the basics of …

Member Avatar for KevinADC
0
98
Member Avatar for bondo

Basically I'm reading from a file and populating a dynamically allocated array with the words that are in the file. I've already read through the file to figure out what numArts is, so I know how many words there are in the array. This works up until the: [CODE]arts[index] = …

Member Avatar for bondo
0
174
Member Avatar for hbmarar

Hi, I wanted to make use of a algorithm script for computing scores nd though i started doing it with a single database, i after testing script, decided to get a master and score databases both having same tables and data. I imported 2.5 GB of data dump to both …

Member Avatar for hbmarar
0
196
Member Avatar for trinityavatar

Hello, I am [I]entirely[/I] new to Javascript (try yesterday!), and I need to create a price sheet form in Acrobat for a client. While the answer to this question may already be here on this site, I am sufficiently clueless about how to search for it and appreciate tremendously your …

Member Avatar for trinityavatar
0
135
Member Avatar for AlbertPi

The following method "sound" works on my PC and it sounds a beep. I am using java 1.5 and Jdeveopler 10.1.3.4 on Windows XP/SP2. import javax.sound.sampled.*; public void handleBeep(ReturnEvent returnEvent) { try { sound(2000,150); } catch (LineUnavailableException lue) { System.out.println(lue); } } public static void sound(int hz,int msecs) throws LineUnavailableException …

Member Avatar for AlbertPi
0
228
Member Avatar for lehe

Hi, I got this message "Windows has triggered a breakpoint in inout.exe. This may be due to a corruption of the heap, and indicates a bug in inout.exe or any of the DLLs it has loaded. The output window may have more diagnostic information" while debugging the following program in …

Member Avatar for lehe
0
208
Member Avatar for adam291086

I am trying to create an authentication script. I am trying to use the PASSWORD function within Mysql but it wont work. Any ideas [CODE] #!/usr/bin/python # e begoli, python connector for mysql # import MySQL module import MySQLdb import cgi print "Content-type: text/html\n" # connection db = MySQLdb.connect(host = …

Member Avatar for adam291086
0
123
Member Avatar for das_das

hello I have attended SCJP 5.0 and SCJP 6.0 Mock test at , it good one at [link removed] 10 sets of mock test i have attended... I want to attend more mock test before actual exam.. can anybody please tell me where can i attend ? thanks das

Member Avatar for peter_budo
0
102
Member Avatar for emilio

hello how can i display an information messagebox in asp.net with message and title ?

Member Avatar for emilio
0
90
Member Avatar for eagled2

First off i'm not sure if this post goes in mysql or php so if this is the wrong place please move this post for me. I am setting up a page with a list of commands that are pulled from a mysql database. I have the page that displays …

Member Avatar for pritaeas
0
109
Member Avatar for krany18

hai friends, please guide me how to store a .doc (resume ) into sqlserver in asp.net using c# i know the fileupload control but how it can store into sqlserver which datatype i can take.. please give me a valuable solution as soon as possible. Thanks & Regards A.Kranti Kumar …

Member Avatar for sbv
0
134
Member Avatar for ocbphoto

I am not sure what i am doing wrong, can someone help me please. I have my DB which contains - Manufacturer Table - Model Table (this one contains also the year field) I want to be able to choose Manufacturer>Model>Year will be display in the text area but nothing …

Member Avatar for pritaeas
0
123
Member Avatar for cassie_sanford

How do you format color anchor tabs for colors so they'll format themselves in stylesheets?

Member Avatar for punjabivirsa3
0
91
Member Avatar for xlx16

when i wrote the following program in turbo c,the out put was right but when i wroted it in borland c,the out put was wrong and the (*) was printed in wrong place,so what is the problem with borland c for dos.for another example i wrote a program which contained …

Member Avatar for ajay.krish123
0
116
Member Avatar for nectionplayer

What are the likely questions to come in a C programming exam.(It's a cirtificate course) Please add your answers to the questions.

Member Avatar for ajay.krish123
0
65
Member Avatar for KosalKauv

Dear Sir/ Madam I would like you to help me as below: I want to create a project for manage student information and i have one table store student information in the table have student ID, Student Name, Address, Photo.... and i want to insert student information with photo and …

Member Avatar for Teme64
0
192
Member Avatar for gadisandeep

Hi,I am reading this .CSV file and new to this.I have information in tabular form where i have names in 1row and 1column and in between cells i have numbers indicating links of those names by that purticular number. I want to retrevie those names who are having that purticular …

Member Avatar for Tyrone.Wilson
0
112
Member Avatar for dayotjawak
Member Avatar for jessxe02

Help I want to learn how to connect SQL to my java program? is there any free online tutorial? help my please..

Member Avatar for sierrainfo
0
154
Member Avatar for locsin

Greetings! Anybody know to make numbering in print report. I want to put numbering in my print report. All employees are have diffrent project location. I want to print report per location. example. No. Employee NUmber Name 0001 Noli Locsin 1175 Alvin Patrimonio 1176 Keneth Durendez Now, My report printing …

Member Avatar for kain_mcbride
0
91
Member Avatar for Gaurav arora

HI all i m making a project for a departmental store. In that I have to make a bill generation form in which i have taken a gridview for the products entry which have been purchased by the customer. I have taken 5 columns in that gridview. ProdId,ProdName,Qty,Price and total. …

Member Avatar for EastStreetEagle
0
129
Member Avatar for xzajox

Hi, I'm having this problem and can't get a solution anywhere. -- <Introduction:> I have a master page, then I have a content page which contains a little login form wrapped in <div id="LoginTable"></div> What I want, is to use a ScriptaculoUs JavaScript Effect.Highlight(...) on some mouseovers. The Effect.Highlight is …

Member Avatar for xzajox
0
125
Member Avatar for christiangirl

I have to write two programs, one writes to file based on what the user selects. The other reads the file, and outputs what the user selects. And I'm really not sue if I'm doing this right. Here is what I have for writting to the file: [code]import javax.swing.*; import …

Member Avatar for vee_liang
0
85
Member Avatar for Terlington

Hi All, I'm actually making a little program but I'm encountering an error that I can't manage to resolve. So I have a linked list of "User" (each User has got a pointer to the previous User and another pointer to the next User). At First, the List is empty …

Member Avatar for Terlington
0
127
Member Avatar for NinjaLink

Hello. I am currently having problems. I am asking a user to input the position and number of where they would like to insert into the Linked List. After the user input the information, the number does not appear in the Linked List, but everything else does. Can someone help …

Member Avatar for paramdhingra
0
126
Member Avatar for christiangirl

I have to make a program where I take a file that contains users order information(the file is from another program I had to make), and then tests it and outputs how many of what it orders. I cant seem to get it to work, its running but then at …

Member Avatar for masijade
0
83
Member Avatar for sivak

can u tell me what is the difference between webappliaction and windows applications ? same as difference between sql 2000 and 2005... asp.net 2.0 and asp.net 3.0 ..plz reply me soon

Member Avatar for bondo
0
118
Member Avatar for BobLewiston

I installed VC# 2008 Express. Following the lessons at C# School at programmersheaven.com, I tried to compile the sample app HelloWorld from the command prompt via: csc HelloWorld.cs but I got back: 'csc' is not recognized as an internal or external command, operable program or batch file. As far as …

Member Avatar for bondo
0
240
Member Avatar for risa

Hi, How to insert a combox to a column of list ctrl in MFC?....such tht i can select a particular item from a list of items in the combo box of list ctrl column....plz help

Member Avatar for Nick Evan
0
93
Member Avatar for demroth

Johnson's algorithm is a way to find shortest paths between all pairs of vertices in a sparse directed graph. The problem is I can not seem to find any good documentation on it nor any code to analyze. I have been to Wikipedia, read some algorithm books and some power …

Member Avatar for nicholasmathew
0
101

The End.