132,726 Archived Topics
Remove Filter ![]() | |
I have a java class for enc/dec in DESEDE; for some cipher texts it results in this exception: Input length must be multiple of 8 when decrypting with padded cipher I have not written this code myself I have found it in a thread in this website; could anyone please … Software Development encryption java | |
Hi, Im having this problem in which the program freezes, the the code in the function called doesn't execute. Help would be much appreciated. // spellchecker2.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<cmath> #include<iostream> #include<fstream> #include<string> using namespace std; bool inDictionary(string word, string dictionary[]); … Software Development algorithm c++ open-source | |
how do you do unbuffered io in c? I need to write each charachter typed to a socket, not waiting for "\n" newline i.e. enter key any help? Software Development c | |
Hello all. I am working on a program for class and having a bit of a problem. The program is supposed to ask the user to enter a text file in which read from. Then asks the user for the name of the animal you are searching for. Then if … Software Development c++ | |
Hey there community. So I installed the latest version of MonoDevelop (on Arch Linux), and I wrote a "hello word" program to test if it installed alright. Building it, MonoDevelop says it builds successfully. However if i try to run it (with and without debugging), I get this error message: … Software Development assembly | |
i want to do topo sort but i want to output the lexographically smallest topo sort vesion of that. http://www.spoj.com/problems/TOPOSORT/ here goes the link of problem. actually, i have done this using DFS , but i am able to do the question "print any possible topo sort" of the graph. … Software Development c | |
Hi, I'm working on my final project and I'm almost done , but I notice error in my program I have JList and csv file the user load the file then the user can add new item to the JList they need to enter the id,title,publisher ..etc the problem is … Software Development java | |
Group, I need to use Function keys within a form I've created. The problem I'm having is determing the correct routine to fire it off. Here's what I'm attempting to do: In Form1 (actually called "OrderEntry2"), I want to give the user the option of keying in a part number … Software Development vb.net | |
Hello everyone, I'm a beginner in programming languages and in Python. I came across this error and I don't khow if it is a logical error or a design error. The problem is with class_average a = {1:[1, 2, 3], 2:[3,4,5], 3:[6,7,8] } b = {1:[3,7,4], 2:[8,2,9], 3:[3,6,3] } c … Software Development python | |
Hey guys! I have a project for school that involves changing the code I posted under this. One problem that I cannot figure out is how I would convert the mouse listener to a key listener. I believe the checkEmpty, moveTile, and exchangeTile methods will have to be coded differently … Software Development gui java java-swing legal puzzle | |
Hi, I currently have two separate listboxes, one displaying a list of different leagues (With sponsors/prizes etc to do with leagues), & another listbox displaying a list of all the teams (So Team name, team nickname, team league etc..). Both sets of data have been inputted via a Streamreader, I … Software Development | |
Hello, I am wondering what I am missing. Keep getting a syntax error at the chara on Line 8..... def main(): print('WELL! Hello. Thank you for choosing your path to'\ 'righteousness! bahahaha!') chara = raw_input(str('Please input your character name: ')) #print the welcome for user print('Ok,'chara,'This is just protype son … Software Development python | |
Hi i am trying to parse a *large xml* file and printing the tags to a output file. I am using *minidom*, my code is working fine for 30Mb files but more than that its getting memory error.So i used buffer reading the file but unable to get the desired … | |
I have a program I wrote a few years ago that interfaces largely with MS Excel. At the time my company used Office 2007. We have since upgraded to 2010 with no problems. However, I had to make some adjustments, and now I can not compile. The error is Error … Software Development microsoft-office vb.net | |
Hi, I have a csv file that looks like this: Date, Cost Jan 12, 23.2 Feb 2, 45.3 May 4, 33.4 March 3, 32 May 9, 21 July 22, 332 Aug 3, 765 I am using scanner to read the file and can do that with no issues. Howevet, I … Software Development java | |
I need to develop a multi level marketing application in C# ,i am not able to calculate commission dynamically for all member's from database.mainly i want to calculate total child's or left and right child's for parent retrieved from database. i have used two loop kind of recursion for getting … | |
I have a program like this: int main () { int * buffer1; buffer1 = (int*) malloc (100*sizeof(int)); buffer1 = buffer1 + 5; free (buffer1); return 0; } So my doubt: How much int-sized memory will this free-function free. 100 or 95 ? Software Development c | |
First, I need to read from a text file and display the results in a textbox. The text file is two columns, 18 rows, with the first column a certain ingredient and the second the amount of that ingredient remaining. Depending on what is ordered, the amounts in the list … Software Development vb.net | |
i want to create 2 items on screen. each item will be different color rect. item1 = green rect item2 = blue rect if user get the 1st item. than it will print bullet1 1st image. if user get the 2nd item. than it will print bullet2 2nd image. bullet1 … Software Development java | |
Hi all, I'm trying to bring up a table of data using a select query to create a DataSet that I'm displaying in a datagrid. When I use SELECT * FROM myTable it works fine, but when I only want the specific columns SELECT URN, 'CanX Reason', 'Date to take … | |
Ok, so I attempted using a struct to animate my character, since my original hard coding produced poor performance. Here is my code: //struct template for animating character movement struct animate { int draws; int animationFrames; char *frames[TOTAL_FRAMES]; int charWidth; int charHeight; int xCoord; int yCoord; int xMove; int yMove; … Software Development c | |
lets say i have a array. how many different way can i look up a value. for ex one way would be use forloop and go though every element untill u find your value. 2nd way is binary search. are there more? if so can you let me know the … Software Development | |
Hi danibians, wonder where i got this error. it got error after it reads the runcompleted process. here is my code Hi Everyone, Hope you could help me with this. I got an exception error saying "Exception has been thrown by the target of an invocation." here is my code: … Software Development open-source vb.net | |
hi there, im new in coding on visual basic, well, im new at coding at anything :) i have a problem on my telephone directory program that i created about listview, i was wondering if i can click the item on a listview and show the result on a new … Software Development listview visual-basic | |
If my goal is to consider f1 and f2 to hold the numerator and denominator of two fractions and multiply f1(9,8) by f2(2,3). i don't understand how to write the MultipliedBy function if I only have two member variables in the class it's self. I feel like i'm just missing … | |
Hi people, i was trying this program while understanding the basics of input/output a txt file. SO this is a program while asks the user to input the name of the text file. If it exists, then it will read it else, it will create it and it will prompt … Software Development c++ | |
Why does this error occur? Here is my code: Imports System.IO Public Class Form1 Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click OpenFileDialog1.Title = "Select Image" OpenFileDialog1.InitialDirectory = "C:\temp" OpenFileDialog1.FileName = "Image File" OpenFileDialog1.Filter = "JPEG Images (*.jpg,*.jpeg)|*.jpg;*.jpeg|Gif Images (*.gif)|*.gif|PNG Images|*.png" OpenFileDialog1.ShowDialog() End Sub Private Sub OpenFileDialog1_FileOk(sender As … Software Development assembly file-stream vb.net visual-studio | |
**please help me. i need to take each string in each column of my datagridview** `roivic lanoria ASRock 2.4 GHz Dual Core SSD 160 GB` **and look like this in my datagridview** `roivic lanoria|ASRock|2.4 GHz|Dual Core|SSD|160 GB` **these strings are from a text file. help please.** Software Development vb.net | |
I have a Database It created in Ms accsses how can i set a fix path to connct the database when i install the setup in another computer? plz help..? Software Development vb.net | |
Group, I'm thinking I may want to use the Date data type in SQL Server. However I'm still very unclear how to read, write and compare using this kind of data type. I realize this has a time component which is of no importance right now (it will be later … Software Development sql vb.net visual-basic | |
hi everyone :) i want to learn vb6 , but i dont know where to start. I have a college project related to creating banking software where vb6 is being used as the frontend. i have around 1 month to get my vb6 skills up , as the project has … Software Development visual-basic | |
Hello! I have made a java program in Netbeans IDE (version 7.1). I want to make a file that could run my project without IDE (with the help of just Java, JRE, etc).... I had made a JAR file to try this, but when I open the file, i cant … Software Development ide java java-netbeans | |
Hi I currently have a textfile with different types of unit measurements -> from, to, factor (E.g. ounce, gram, 28.0) So far i've written this: string from, to, x, y; double factor, amount, output; string[] splitData = new string[2]; StreamReader reader = new StreamReader("Filename.txt"); string[] data = reader.ReadToEnd().Split(','); How would … Software Development | |
I have a binary tree, that user types in a string, if the string does not exist, it adds it to the tree, but if it does, it increases the frequency by 1 instead of adding it to the tree. I have my search working(I think I do anyways), The … Software Development java | |
Our assignment was to write a tic-tac-toe program for my programming class. It is person vs. computer and the computer makes "random" moves, even if computer is going to lose they will choose a random place to put their x or o it is all correct, now what I have … | |
hey guyz... i have VC++ 2010 project... (DYNAMIC LINK LIBRARY) and i have to use that dll (which is made byy c++) in VB 6 as reference... when i am using it... giving me this msg... 'Can't Add a Referenve to specified file' how to solve this...??? please help me... Software Development c++ | |
file_name = raw_input('Name of the file you will use to encode the your data \n') file_name = file_name+'.txt' fp = open(file_name, 'r') text = fp.read() #create a string that is just the first letter of every word in the sentence then close file output = "" for i in text.split(): … Software Development python | |
Hi DaniWeb, I've just tried to install eclipse on my linux laptop. I have oracle java 7 installed, but I am getting an error (see below). Can anyone point me in the right direction to get Eclipse installed? I don't know what to do next. BTW, I'm using "linux Peppermint", … | |
Hello. I am trying to recreate manually a small celsius-to-fahrenheit converter that I created with Design view before that. I used its code for reference, but still doesn't work. When I run my code I don't get the components drawn on the screen, only an empty window. What am I … Software Development display java java-swing | |
Hi again I’m working with the text file and I need suggestions about 2,4,5? and mybe about 1 and 3 also. For example I have this text. “I love the python programming How love the python programming? We love the python programming Do you like python for kids? I like … Software Development python | |
Okay so I have a function that looks like this: public void createMap(String mapName){ ArrayList<Point> Positions = new ArrayList<Point>(); Positions = Maps.map1; ... } where Maps is another class, and map1 is a method in that class that returns an ArrayList of points. What I want to do is make … Software Development java | |
why does code 1 gives segfault error whereas code 2 doesn't, both are basically same, do anyone have any suggestion? 1. #include <iostream> using namespace std; template <class T> class nodes { template <class U> friend class linklistchain; private: nodes<T> *adrs; T data; }; template <class T> class linklistchain { … | |
I'm using Sql Express in Eclipse here is the code import java.sql.*; public class Login { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("This is my new world"); //String url = "jdbc:sqlserver://\\SQLEXPRESS;databaseName=pay;integratedSecurity=true"; String url ="jdbc:sqlserver://SQLEXPRESS;databaseName=pay;integratedSecurity=true"; try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); } catch (ClassNotFoundException … Software Development java | |
i have a Life class. which just prints a image of heart. i want to have 6 lifes so iam adding 6 classes in arraylist. 1st heart one left. 2nd heart next to it..... int life = 6; //LIFE - create 6 heats and store in arraylist lifeClass = new … Software Development java | |
We have this subject called Computer Oraganization... we are now using dos debug commands but the problem with my laptop is that when I type debug command...it will prompt 'debug' is not recognized as an internal or external command, operable program or batch file. The C:\Windows\system32 do not have a … Software Development assembly | |
Hello everyone, I was wondering if anyone could tell me how to connect and query sql databases in c#. Thanks in advance | |
I have been working with numbers in tkinter using operators but I'm unsure on how to process the input and using maths on them. I also wouldn't mind knowing how to use words either for future reference. Reply if you know anything. | |
Here is my line of code: class Rectangle(object): def __init__(self,x,y): self.x=x self.y=y def Area(self): return self.x*self.y def Perimeter(self): return self.x*2+self.y*2 def main(): print "Rectangle a:" a = Rectangle(5, 7) print "area: %d" % a.area print "perimeter: %d" % a.perimeter #print "" #print "Rectangle b:" #b = Rectangle() #b.width = 10 … Software Development python | |
Group, I'm having an issue with SQL Server that has me baffled. I need help. When I originally loaded SQL Server 2008 Express and created my database, I called it "DataDesignSolutions". The tables were created through VB Studio 2010 Express. It's path was "C:\User\Don\Documents\DataDesignSolutions.mdf". I'm not sure how, but somewhere … | |
Error E2188 eidstructures.hpp 26: Expression syntax Error E2257 eidstructures.hpp 64: , expected Error E2188 eidstructures.hpp 73: Expression syntax Error E2257 eidstructures.hpp 81: , expected Error E2188 eidstructures.hpp 90: Expression syntax Error E2257 eidstructures.hpp 96: , expected Error E2188 eidstructures.hpp 105: Expression syntax Error E2257 eidstructures.hpp 111: , expected Error E2108 … Software Development c++ |
The End.