199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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]; … | |
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 … | |
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 … | |
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) … | |
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 … | |
[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, … | |
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 … | |
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 … | |
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 … | |
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 | |
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> … | |
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 … | |
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] = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 | |
hello how can i display an information messagebox in asp.net with message and title ? | |
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 … | |
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 … | |
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 … | |
How do you format color anchor tabs for colors so they'll format themselves in stylesheets? | |
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 … | |
What are the likely questions to come in a C programming exam.(It's a cirtificate course) Please add your answers to the questions. | |
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 … | |
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 … | |
any suggestion.......... simple java coding to settle final project in | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 | |
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 … |
The End.