132,726 Archived Topics
Remove Filter ![]() | |
hello . I am trying to simulate the MD5 hashing algo. My code: [CODE] private void jButton1MouseClicked(java.awt.event.MouseEvent evt) { try { MessageDigest object = MessageDigest.getInstance("MD5"); String str = jTextField1.getText(); byte arr [] = str.getBytes(); object.update(arr);//update the md5 object with the message arr = object.digest();//calculate the digest str = IntegerToHex(arr);//convert to … Software Development java | |
Hi, Can somebody let me know how to check whether particular network drive is mapped or not e.g x:\\share1\share2? Regards, Rana Software Development perl | |
hi evrybodt plzhelp me in vb6 hough transform for circle detection.....i need its code as soon aspossible..... Software Development visual-basic | |
The following is a simple program on 'while ... do': program dowhile; {$APPTYPE CONSOLE} uses SysUtils, Ourcrt; Var my_words: string; begin [COLOR="Green"] my_words:=''; writeln('Enter some words (type "stop" to finish):'); readln(my_words);[/COLOR] while (my_words<>'stop')do begin clrscr; writeln('You typed:'); [COLOR="Red"] writeln(my_words); writeln; writeln('Enter some words (type "stop" to finish):'); readln(my_words);[/COLOR] end; end. … Software Development pascal | |
hi, if I had: [code=C++] char* arr; [/code] and want to add character one by one into [B]arr[/B]. How could I? I don't wanna use vectors! thanks Software Development c++ | |
hi, everyone i'm new in java programming i need help in my simple project i have list contain names of persons from db .. i finished it using access ... the problem that i wanna to 'when i select any name of this two window open and chat between each … Software Development client-server java | |
I getting an error from a code that I have been working on. The error is Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.throwFor(Unknown Source) at java.util.Scanner.next(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at sample2.AdditionalMethods.main(AdditionalMethods.java:57) My code for the information is package sample2; public class shape { private String Name; … Software Development java java-swing | |
I am begginer in C so please be easy on me.....:-) Anyways....my query is I have a server and a Client program written in C(attached below) for test in UNIX/LINUX in which the client sends a request to the server and the server then sends back the request to the … Software Development c client-server unix | |
I'm going to be working on a summer research project with my college's robotics team. My task is going to be to develop a program to communicate with the robot via 802.11g. I would really like to stick to straight C++, and if I can't then C# is also an … | |
I want to update data using DataGridView in Visual Studio2008 with the following code. But it is not working. Plz help me. Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click cmd = New Odbc.OdbcCommand("UPDATE Table1 SET Name") Me.Table1TableAdapter.Update(DataSet1.Table1) MsgBox("Updated") End Sub Software Development vb.net | |
this is giving me an error at the line that says loc = (zip.find("605", 0)); can't tell why?!? [CODE]void calcShippingCharge(string zip, int RATE605, int RATE606, int &chg) { //search zip code for proper prefix int loc = 0; loc = (zip.find("606", 0)); if (loc >= 0) chg = RATE606; else … Software Development c++ | |
Hey everybody, I am trying to initialize a deck of cards using a structured data type. Here is the currently relevant portions of the code: [code] struct ACard { int Num; char Pic; }; void InitiateCard(ACard Card[]) { for (int i =0; i < 13; i++) { Card[i].Num = i; … Software Development c++ | |
Hi u all!!! I have a website, dedicated to beauty products for women, ok? Sometime ago a friend of mine told me "hey! why don´t you send that info through MSN?". I liked that, so I downloaded an autoresponder code from here: [URL="http://nayyeri.net/blog/auto-responder-add-in-for-windows-live-messenger/"]http://nayyeri.net/blog/auto-responder-add-in-for-windows-live-messenger/[/URL] So I simply added this routine to … Software Development assembly | |
Hi, I am trying to create a mortgage calculator per an assignment and have it working ALMOST perfectly. I just need to add a loop to make it pause when the screen is filled and wait for an ENTER until the loan balance is 0. Can someone help me? Here … Software Development java | |
I am having trouble printing onto a JPanel. I am able to print any string that i want to. here my code: [CODE]import javax.swing.JFrame; import java.awt.BorderLayout; import javax.swing.JLabel; public class TestDraw { public static void main(String[] args) { final int WINDOW_WIDTH = 300, WINDOW_HEIGHT = 300; DrawPanel panel = new … Software Development java java-swing | |
What will be the code for not overwriting the text file you make. [code]ofstream myfile; myfile.open (home/.test.txt); myfile << "test"; myfile.close(); [/code] Because the test.txt is needed to create only just once after you load the widget. I inserted that code to the mainWindow but whenever I loaded the mainWindow … Software Development c++ | |
Im having this exception when i use the class vector: [code] vector <int64> p; dsdriver::EngineAdmin ea; p= ea.getEngineIds(); [/code] And EngineAdmin is: [code] class DSUTIL_EXPORT EngineAdmin { public: static vector<int64> getEngineIds() ; [/code] When i use p=ea.getengineIds(); its throw me an exception in xmemory: [code] void deallocate(pointer _Ptr, size_type) { … Software Development c++ | |
help please, how to save a data between the time of what user input in the 2 textbox. 1 textbox is for intime and the 2 one is out time. for example if the user input 7:30 - 9:30 Am Intime all i want is this is the only time … Software Development visual-basic | |
I have a very hard programming challenge and i need help... I have nothing so far, so im hoping somebod could help me build it... Im to write a program that uses a structure to store student name, student ID number, pointer to and array of test scores, average test … Software Development c++ data-structure | |
This is the input that I am trying to load up the array with: 11 13 7 10 XXXXXXXXXXXXX X JX AX X X XXXX XXXXBX X X X SX X X X XXXX XXX X X X X X X X X XXXXXXXXX X X X X X XXXXXX … Software Development c++ | |
Hi, I'm new to C++, and I made this program that makes either 1, or 2 pop up. And for 1, a text field is suppost to pop up to show you won, and if 2 pops up, it's suppost to say you lose. I got everything down (The unmber … | |
After this code executes [CODE] ptr = new myStuff; // some code ... delete ptr; [/CODE] the memory allocated is freed but ptr still contains the mem addr of the 1st byte of the previously allocated mem. Is there some history to this? Why didn't the C++ standard also have … Software Development c++ | |
How can my VB.net application interact with windows modal dialog boxes? For example when you click an HTML <input type=file> the dialog that opens is a windows form that isn't in my application, so how can I manipulate it? Software Development vb.net | |
The problem seems pretty simple but I haven't figured it out yet. I'm using wxWidgets to make a gui and this function gets called when I press enter while in a text field. [code=c++] void Camera_Settings::on_exposure(wxCommandEvent &event) { wxString temp = exposure->GetValue(); char *value = (char *)temp.mb_str(); char *hex_string = … | |
Hey guys below is my full code of the program I am trying to run. I want to save the data automatically. It goes through many areas but the save area is not working for some reason. Errr...I have spent many hours and it is very basic code probably because … Software Development c visual-basic visual-studio | |
It is a grading system, but its not calulating the grades [ICODE]#include<stdio.h> #include<conio.h> #include<string.h> #define max 2 void Cal_semester_Grade(char studname[][25],int gradeavg[][1],int examAvg[][1]); void Class_Grade(char studname[][25],char classname[5], int classgrd[][3],int gradeavg[][1], int Maxtestscr[][3],char subjectname[15],int classprectge[][3],int finalClassgrade[][1]); void Exam_Grade(char studname[][25], int examMarks[][2], int MaxExamTest[][2],int Examperctage[][2],int examAvg[][1],int finalExamgrade[][1],int paperweight[][2]); //void search_name(char); void Menu(); char … Software Development c | |
hey can someone suggest the best way to get the list of files in a directory. i only need files no need directories. given a folder, i want to write a program that gets all the files in it. its part of a much bigger program. appreciate any help. many … Software Development c | |
I have a very hard programming challenge and i need help... I have nothing so far, so im hoping somebod could help me build it... Im to write a program that uses a structure to store student name, student ID number, pointer to and array of test scores, average test … Software Development c++ data-structure | |
Hi guys, I just can't figure out how to traverse trough this heap. It's a 4-heap and I'm trying to implement a toString method for it. It should return a string and must be recursive. Like pre-order traversal. I'm lost with it. [CODE=java]public String toString(int index,String out) { int child … Software Development java | |
I am writing a program that will reverse the order of ASCII code. The user input a character and output the reverse 7 bits of it. EX: 011001 to 100110. I am trying to understand the sll and srl instructions better and how they are used because they seem to … Software Development assembly | |
hi all, I m new to C++(but have a very good knowledge of C) and very desperately looking for some good programming problems that involves some object oriented principles of c++.Can anybody please give a link to such problems. | |
Hi guys. I have been working at this for several hours. I'm still a novice in C++. The program I need to write is suppose to calculate the day number for a given day represented by three type int values. It also needs a function that returns true if the … Software Development c++ | |
Hey everyone, I'm trying to make it so that my ^ operator is right justified within this binary expression tree. For example, 2^3^4 should be evaluated as 2^(3^4). So I should get 2^81, instead of the usual 2^12. Here is the code I have so far. Everything works, except the … Software Development c++ linked-list queue | |
My program must read a file and count how many times each letter comes up using vectors[27]. besides main there will be 2 required functions. int char2int(char arg) void display(const vector<int> & counters) the file has numbers to but those should be read as a O. need help please help! Software Development c++ | |
I'm trying to install java on my home laptop and it isn't working, i followed all the steps outlined by my lecturer but the javac filename isn't executing properly. Is it setup right by me?? In environmental variables PATH = C:\jre1.6.0_07\bin;C:\Program Files\PC Connectivity Solution\;C:\watcom-1.3\binnt;C:\watcom-1.3\binw;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Metrowerks\CodeWarrior\Bin;C:\Program Files\Metrowerks\CodeWarrior\Other Metrowerks Tools\Command Line Tools;C:\Program … Software Development java | |
ok i understand some basics of vb but am still relatively a new... my problem.. code is for saving values into a database and displaying on the same form on a datagrid which is connected to the database... Imports System.Data.OleDb Public Class Addbooking Inherits System.Windows.Forms.Form Public cN As OleDbConnection Public … Software Development dataset open-source vb.net | |
hi: please help me to find the code that convert nfa to dfa by using c++ and please send it to my email [email removed] thank you very much please help me now.....:icon_neutral: Software Development c++ | |
Write a program that shows a constructor passing information about constructor failure to an exception handler after a try block. What do i really need to do ? Software Development c++ | |
Hi there, Say I have created an ifstream object in main(): [CODE]ifstream [B]inData[/B]; // Create new input file stream object inData.open( "input.dat" );[/CODE] How could I then pass this object to a function, instead of having to recreate it there? I.e. what would the argument and parameter look like? Thanks … Software Development c++ file-stream | |
I'm unfamiliar with how to write recursive functions. Can anyone help me out here? I need a recursive function to see if date number 1 is greater than date number 2. If it is it returns true. If 2 > 1, it switches them and returns them like that. If … Software Development c++ | |
Hi.. i want to know how do we access a web site's data to be displayed on my application e.g. like i want to create an application that looks up some investing site and displays current stock and share values on my desktop. I have already in mind that the … Software Development data-structure vb.net | |
Hi Guys, I want to ask about these codes, i don't understand clearly. So to understand these codes detail what kind of books i have to read and tutorial i have to learn. Please guide me. [code] #include <windows.h> int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE PrevInstance, LPSTR lpszArgument, int nFunsterStil) … Software Development c++ windows-virus | |
Hi, Following is the function which is giving me a segmentation fault. I do not know what is wrong in this code. I am counting the number of lines in the file. [ICODE] char f11; char c; int f12 = 0; FILE *ilfile; ifstream ficnf; int size_f = 0; int … | |
hey guys.. am learning c++ just started.. am not able to implement member dereferencing operators.. i know there basic definations and rules but...its like.. a clear picture is still not coming to my mind..as in how to make use of them.. please explain with examples.. Software Development c++ | |
Hello friends. I'm working on a program to sort a list object using toArray, Arrays.sort, and Arrays.asList. The problem asks that I then apply Collections.binarySearch directly to the list object. I know what the problem is (which I have stated through comments in my code) but I don't know how … Software Development java | |
1. Develop a Java application that will determine the gross pay for each of three employees. The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40 hours. You are given a list of … Software Development java | |
Hey guys, What am I doing wrong here? sss.hpp [code=cpp] #include <fstream> #include <string> #include <map> namespace sss { using namespace std; class node { public: multimap<string, string> values; multimap<string, node> children; string &value(const string name, size_t index = 0); node &child(const string name, size_t index = 0); private: template … Software Development c++ | |
There are multiple occurances of the PLUS_BORROWER data. For each occurence of PLUS_BORROWER, I want to save the CREDIT_SCORE and DAYTIME_PHONE_NBR when the Type= And SOCIAL_SECURITY_NBR are certain values. Then I want to execute a loop and extract the Credit_Score and Daytime_Phone_Nbrs. [code] <PLUS_BORROWER Type="Primary"> <SOCIAL_SECURITY_NBR>123459999</SOCIAL_SECURITY_NBR> <CREDIT_SCORE ModelName="Emperica">793</CREDIT_SCORE> <DAYTIME_PHONE_NBR>4077889999</DAYTIME_PHONE_NBR> <DAYTIME_PHONE_EXT>101</DAYTIME_PHONE_EXT> … | |
Hi everyone, I need to parse a text file based on a few delimiters. There are 2 problems I am having. I'll start with the first problem. I have no problem using the split () method to parse text by a single delimiter. For example: [CODE]String[] str = stringRead.split(":");[/CODE] However, … Software Development java |
The End.