132,726 Archived Topics
Remove Filter ![]() | |
The goal of my assignment is to create a program that takes a string of words and encodes or decodes the string using a simple substitution cypher. I've gotten a decent amount done but I am stuck at the part where I actually have to encrypt and decrypt using the … Software Development c encryption | |
public class Jacobi{ // jacobi(a,n) public static void main(String[] args) { int n = 234567,a = 97770; if(n<=0 || (n %2) == 0) return (0); int temp, j=1; if(a<0) { a = -a; if((n % 4) == 3) j = -j; } do while (a!=0) { do while(( a % … Software Development java | |
I am tryn a currency converter using hash table. What is the technique to use to enble covert both ways. Ex: Dollers to Euro and Euro to Dollers . I can understand how to do it one way using currency as the hashKey and rate as Hashvalue. (I hope that … Software Development java | |
Hey guys i'm trying to figure out how to open a new message window from outlook when i click a button on my form any help greatly aprreciated thanks. | |
The scenario is, If the user has logged in for the first using his one time password it should get redirected to ResetPassword.aspx If the user is not new, then should get redirected to Main.aspx page. Should I use IsPostBack or Membership.ValidateUser? How do we usually code in c# to … | |
Hello, Could you please assist me i want to deploy this application as an executable file with the MYSQL database embedded. I have clean and build the application, the jar file is there but nothing happens. The database is stored on local host. Thank you | |
i recent been using my variables names like this boolean is_dead = false; turn out its not right. right conventions is boolean isDead = false; for some reason i dont like the 2nd one. may be bc i been using 1st one for so long. i was wondering is there … Software Development java | |
hye guyz, Can any one tell me that what the data structure is used behind FACEBOOK ??? I have googled but not found any useful answer... plzz tell me quickly.. Software Development c++ data-structure | |
i was try to solve it , but im begnner in vb.net this is my code Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As New ListViewItem(t1.Text) x.SubItems.Add(t2.Text) x.SubItems.Add(t3.Text) x.SubItems.Add(CInt(t2.Text) + CInt(t3.Text)) l1.Items.Add(x) t1.Text = "" t2.Text = "" t3.Text = … Software Development vb.net | |
i wrote a code to implement some basics of priority queue , but apparantly its not giving desired output. the code is implemented using binary heap as its data structure. i tried tinkering here and there , nut no luck... i want to display a given number of max or … Software Development data-structure java queue | |
Hi to all, I'm making one application for video control in firm...what's the best way to make application which have to access to webcam? There should be option for watching videos from more cams in real time...I read something on google and I found that Swing framework has some options … Software Development java java-swing webcam | |
##TASK Step One The DNA molecule is a double-helix. You can think of this double helix as two parallel sequences of DNA with nucleotides or bases (A,C,G,Ts) on one strand matched with their associated nucleotide on the other strand according to the following rules: A matched with T C matched … Software Development c++ file-stream file-system ios open-source | |
Hi i'm having a trouble with this i got 3 textbox and i format it to Textbox1.Text = Format(Textbox1.Text, "Standard") Textbox2.Text = Format(Textbox2.Text, "Standard") Textbox3.Text = Format(Textbox3.Text, "Standard") which give something like this 1,230.00 2,500.00 1,245.00 and when i add it `Textbox4.text = Val(Textbox1.Text) + Val(Textbox2.Text) + Val(Textbox3.Text)` the result … Software Development mathematics vb.net | |
les say i have a map: //my map is biiger but this is just a ex. int map[][] = {{1, 1, 1 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}; int camera_pos_x = 0; int camera_pos_y = 0; int camera_speed = … Software Development java | |
I'm working on an assignment in which we aren't allowed to use arrays or functions. So i need to use loops to split words from a text file. I got most of the code working but i get an error at this part where the loop doesn't exit when i … Software Development c++ | |
So the "substr" command is used for extracting certain characters, i have a problem in which if the character is a space, the previous value is used for filling the variable The code: #include "stdafx.h" #include<cmath> #include<string> #include<iostream> #include<sstream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string line="Introductory … Software Development c++ | |
Hi, My project requires me to read in multiple ascii files and process them. So I am going to go through the data and using conditional statements store the result in lists. After this, I need to store this data and plot some of it using matlab and display the … | |
Hi! I recently started teaching Java to myself yesterday via TheNewBoston on youtube. I began working on a few programs from the programmingbydoing website but I'm stuck on this problem:http://programmingbydoing.com/a/gender-game.html It's a problem focusing on nested if statements. Here's my code!: import java.util.Scanner ; public class MainClass { public static … Software Development java | |
Group, I see there are multiple "validation" type events to choose from in the "Declarations" drop-down box. I want to understand these choices better to see if one would work for what I want to do. I've got several textboxes that need to have either a number entered into them … Software Development vb.net | |
Hey guys, I am having a problem where i want to print a image and a simple string. i would want that when i print i get this on paper : [Click Here For Image](http://img339.imageshack.us/img339/9308/wiw.png) I looked up printDocument, printDialog and printPreviewControl from MSDN and got a few examples but … Software Development c++ microsoft printer windows-api | |
Hello, I have been learning how to use the MS WinAPI, but their documentations is extremely vague in a lot of places, without information on the proper use of functions (PHP.NET manages this just fine!). But anyhoo. When I handle the WM_DRAWITEM message, it SHOULD display an image on the … Software Development c++ | |
Hi everyone I want some help in my paint application, I am using pictuerbox to draw on it but in the last day my requirement is change that the user want to open an image and do all the functionality on it.. I try to open an image but when … | |
i need help to implement genetic algo on C#...the idea is take 10 number inputs from user then generate a chromosomes according to input kindly help me as soon as possible plz reply soon Software Development | |
As part of my Uni course i have been given code to edit to create a MineFinder (mine sweeper) game. I have 3 seperate classes to create this game. But for now, my problem lies with this "MineFinderModel class... the tasks i am struggling to complete is as follows: > … Software Development java | |
Hello, I have build my application and now that I am trying to run the jar file by double clicking on it nothing happens. I tried to access it from my terminal(mac OS) using this line: java -jar "C:\Users\Me\NetBeansProjects\BS1\dist\BS1.jar" But get the following error: Unable to access jarfile Can anyone … Software Development java | |
Hi, I have jpeg image of JFIF type, i want to read jpeg image, decode it and finally i want to display this image in a screen. Could anyone explain me the parsing of jpeg binary data for decoding and encoding? Thanks in advance Software Development c | |
Hi guys, I am bit puzzled with a requirement on my program: Say I have a class A with some private variables class A { private: string variabe; }; Then I have class b with some other private variables class B { string varialb1; }; Now I have a class … Software Development c++ | |
I have some problems in my program. I have to read info from input files and display a message. This is what I have: #include <iostream> #include <fstream> #include <iomanip> using namespace std; void Printing(ofstream& outFile, int& percentFat); void Percent(float& fatGrams, float& cal, float& fatCal, int& percentFat); int main() { … Software Development c++ | |
I read a sample code from a development kits. The global array is declared without indicating the array size. I wonder is it safe? Here is the code: #include <stdio.h> // For Used Function printf // UART Buffer char uart0_buf[]; // "sprint" UART[0] Buffer char uart2_buf[]; // "sprint" UART[2] Buffer … Software Development c | |
in the code from mox example on their page [[http://code.google.com/p/pymox/wiki/MoxDocumentation](http://code.google.com/p/pymox/wiki/MoxDocumentation)] where does PersonDao comes from ? import unittest import mox class DaoUnitTest(unittest.TestCase): def setUp(self): # Create an instance of Mox self.person_mocker = mox.Mox() def testUsingMox(self): # Create a mock PersonDao dao = self.person_mocker.CreateMock(PersonDao) # Return a value when this method … Software Development python | |
hi i m making a c# app which reads data from ms accesss & display it in textbox i have tried the following method but that didn't worked suggest me smthing or correct my code pls myconn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\nature bliss\Desktop\Stock\section1.accdb;Persist Security Info=False"); try { OleDbCommand cmd = new … Software Development display microsoft-access open-source | |
so i got finally done with make my player move right and left, and 1st level. now i want to make my player shoot bullets. i kind of now logic behind it but i need some help. and please let me know if you have a better method of bullet … Software Development java | |
Hello C# experts! can't figure it out. obviously i'm missing something. here is part of my code: private void button1_Click(object sender, EventArgs e) { dataGridView1.ColumnCount = 5; dataGridView1.Columns[0].HeaderText = "Payment #"; dataGridView1.Columns[1].HeaderText = "Monthly Payment"; dataGridView1.Columns[2].HeaderText = "Amount to Interest"; dataGridView1.Columns[3].HeaderText = "Amount to Principal"; dataGridView1.Columns[4].HeaderText = "Remaining Balance"; double … Software Development | |
hi , I have found vegaseats codes and tutorials helpful for biginners , how can I collect them in the pdf format? | |
Hi again all, I have been tussling with this program all day. I can't seem to get pickle.dumps (or f.write..tried that earlier) to save without saving over itself. If I do a deposit(option 1) and then a withdraw(option 2), and then history(option 3), it only shows the last option ran … Software Development python | |
Hi i finally done my first project and thanks to those who help me here in daniweb. Special mentions @Reverend Jim and @TnTinMN. But when i run the setup to install it in another computer which is a 64bit. My project didnt connect to the database which is access. But … Software Development vb.net | |
Hey guys i was just wonder how i would do this; i need to supply a value for Counts() in the triples function how would i do this to check all values in the array? Private Counts() As Integer = {two, three, four, five, six, seven, eight, nine, ten, eleven, … Software Development vb.net | |
I am having a bit of trouble with converting a string (url) into a Uri. Here is the screenshot of the error: http://www.imgbomb.com/i/d15/3bk3v.png Here is the code that is giving me trouble: Private Sub ComboBox1_Change(sender As Object, e As EventArgs) Handles ComboBox1.TextChanged Dim myString As String = ComboBox1.Text.ToString() Me.WebBrowser1.Navigate(New Uri(myString)) … Software Development vb.net visual-basic | |
Hello all. I'm writing a program that converts from any cominbation of base 2, 8, 10, and 16. So far I have this code and I want to convert from hexadecimal to octal but it doesn't work. I would appreciate any help. Thank you! Here is the code: #include "stdafx.h" … Software Development c++ | |
I'm using visual studio C# I have gridView and I checked enable selection I have radioButtonList with two values when the page load I want the cloumn with the selection to be hidden, but when the user choose one of the radioButton the selection column will be visbale Here is … Software Development visual-studio | |
hy guys can you please tell me what s wrong with the folowing code float a,b,c; printf("input three numbers:\n"); scanf ("%f%f%f",&a,&b,&c); float z=sqrt((1/2)*(pow(a,2.0)+pow(b,2.0)+pow(c,2.0))-(3/4)*pow(a,2.0)); printf("res is %f",z); getch(); return 0; Software Development c | |
void runGame(){ readimagefile("PIX\\Landscape.jpg", 0, 0, 800, 800); while(1 == 1){ moveCharacter(); //moveMonster(); } } void moveCharacter(){ int move = 0; int size = imagesize(0, 0, 800, 800); void *background = malloc(size); getimage(0, 0, 800, 800, background); readimagefile("PIX\\Character\\down_still.gif",x9,y9,x9+50,y9+50); thunderClaw(); //specialAttack(); //thunderball(); if(kbhit()){ if(getch()== 'd'){ move = 1; } if(getch()== 'a'){ move … Software Development c++ | |
The number D computed by the following polynomial formula D=(pow(i,5.)/120)-(pow(i,4.)/12)+(23*pow(i,3.)/24)-(83*i*i/12)+(571*i/30) should always be an integer, when i=1,2,3,4,5,.... However, for some i values, each separate term may not be an integer, but when putting together (with additions and subtractions) in the above formula, any non-integer parts would be "cancelled out", and … Software Development c++ | |
Hi all I have multiple checkboxes to be used as the status of a certain order. another words as the order is being processed the user will check the status and a date will be inserted into an access table. Now my isue is when a checkbox is checked for … | |
impliment the selection sort algorithm to sort the elements in a two dimentional array of order 3*4 in descending order. the program should prompt the user to input 12 element, sort and display the elements in the matrix format. | |
Hi I would like to write the script that produces at least 6 encrypted password using crypt module and save them in a file called password.txt but I get error? and How can I add more than 6 encrypted password ? import crypt import random, string password = input("Please ender … Software Development encryption python | |
Hello i m the student of B.E ( Computer Systems ) .. i have to submit my Final year project proposal within 1 month.. my teachers had concerned me to work on android.. but being an engineer student they want a hardware based project from my side.. i have to … Software Development android android-development java | |
I wrote this function earlier to set the priority if the items in listwidget, however what I think would be more pythonic is to write get and set priority method... how should i proceed with writing the method in a pythonic way ? def changePriority(self,direction): """ Reorder the items in … Software Development python | |
I need a little help on writing the following program: Use the Account class to simulate an ATM machine.Create ten accounts in an array with id 0, 1,. . . 9, and initial balance $100. The system prompts the user to enter an id. If the id is entered incorrectly, … Software Development java |
The End.