43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for MasterHacker110

I'm trying to create a very simple enigma machine cipher. But mine doesn't decrypt the data correcly. #include <iostream> #include <string> using namespace std; const char alphabet[27] = { "ABCDEFGHIJKLMNOPQRSTUVWXYZ" }; const char reflector[27] = { "WSXRFVYHNIKPQAZEDCTGBUJMOL" }; const char rotors[27] = { "QWERTYUIOPASDFGHJKLZXCVBNM" }; /* Get the position of …

Software Development c++ encryption
Member Avatar for tinstaafl
0
305
Member Avatar for MasterHacker110

I've been messign around with Python a little recently. Though I now want to import one of my .py files into my "main" file, but I get an `"module" object is not callable` error. How do I actually do this then. My files: KeyGenerator.py main.py Code I use to import: …

Software Development python
Member Avatar for MasterHacker110
0
343
Member Avatar for YorkshireSpud

Im personally learning how to program in python though I do know of other languages. Is Python the best to learn off?

Software Development python
Member Avatar for vegaseat
0
281
Member Avatar for rayhaneh

I'm new at C++ ..and I dont know what should I do whith my program ... this program's input for exg. is: 5 mary sara kimi lili olive : : and then sorting them .. but my problem is that when I submit my home work they score me "0" …

Software Development c++
Member Avatar for rayhaneh
0
227
Member Avatar for GoneGirl

Hi guys, After 10 days of googling and trying I finally must ask. This is not an assignment for school but its a practise one for the upcoming assignment in a few weeks. So i have the weights of 200 oranges in a csv file. With this csv file i …

Software Development file-system java java-swing user-interface
Member Avatar for GoneGirl
0
2K
Member Avatar for MasterHacker110

I am working on a little project of mine. Nothing major, just messing around with encryption etc... I have problem thoug. My methods do not change the values of my data. Meaning that the pointer that I pass to hold my encrypted data, doesn't get the data assigned to its …

Software Development c encryption
Member Avatar for MasterHacker110
0
179
Member Avatar for Dragennd

Hello all, zoidmaster here. I have a question regarding work with a MS Access database. I have the code written out from a tutorial I found online for a basic database, however all it can do with the database is read, add and delete lines from it. I'm trying to …

Software Development microsoft-access sql vb.net
Member Avatar for Dragennd
0
475
Member Avatar for bonzo2008

I have commondialog that i can search for *.bmp,*.jpg files thats okej, now the problem is. saving the picture to the rot + filename next time I start the program I will change the picture to another file that shall be saved in rot + filename the first picture shall …

Software Development visual-basic
Member Avatar for BitBlt
0
194
Member Avatar for Natty_1

According to your variant write a program. That program reads a sequence of positive numbers from standard input. The sequence is terminated by number 0 and does not include that 0. For each number in sequence program should create a new thread. The thread gets some how the value of …

Software Development c++
0
78
Member Avatar for senait.kifle.127

Hello Guys, so I have this question today. let's say I defined a structure like this : struct List{ char *co; char *di; List* next; }; I wanted to define a function with a pointer to a list of elements of this structure as a parameter. In the body of …

Software Development c++
Member Avatar for NathanOliver
0
256
Member Avatar for Trle94

Hello everyone, I'm currently trying to make my application start automatically on pc restart. Now could you help me out with this error: http://screencast.com/t/hmwYmvqg9jK Here is snippet: Dim regKey As Microsoft.Win32.RegistryKey regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True) regKey.SetValue(Application.ProductName, Application.ExecutablePath) regKey.Close()

Software Development microsoft-windows vb.net
Member Avatar for Trle94
0
360
Member Avatar for Jeremybcent

I get the error "Syntax Error (missing operator) in query expression" sql = "SELECT Chores.ChoresID, Chores.ChoresDate, Materials.MaterialName, Advisers.AdviserInit, Advisers.AdviserSurname," _ & "Area.Area, Chores.StudentNo, Student.Forename" _ & "FROM Chores" _ & "INNER JOIN Materials on Chores.MaterialID = Materials.MaterialID" _ & "INNER JOIN Advisers on Chores.AdviserID = Advisers.AdviserID" _ & "INNER JOIN …

Software Development visual-basic
Member Avatar for Jeremybcent
0
199
Member Avatar for Maritimo

One of my students make me a question (which answer i know) but I think could be instructive to formulate the same question here so many people can learn about it. The question is: How to implement a copy assignment into a Derived class? Consider the following class A: class …

Software Development c++ oop
Member Avatar for pritaeas
0
399
Member Avatar for Simon180

Am looking for a way to download a image from a URL using twebbrower and to save it to a folder, it would access url and then have section for file name and folder name and then it would save the file as a jpg to the folder on drive. …

Software Development image pascal
Member Avatar for Simon180
0
180
Member Avatar for Trle94

Hello everyone, I need small help with arrays, been smashing head whole night getting it work, so if anyone know solution for this please let me know here or post example snippet. So i have example code: Dim housing() As String = {"House", "Flat"} Dim people() As String = {"01", …

Software Development vb.net
Member Avatar for hericles
0
113
Member Avatar for Simon180

Am trying to look the code below so it will loop the current items already in the list and display them all plus any new onces added but am having a bit of trouble doing this what am I missing or doing wrong? Gallery.Duplicates := dupIgnore; Gallery.Sorted := True; // …

Software Development html-css pascal
Member Avatar for SalmiSoft
0
132
Member Avatar for theashman88

Hi I got a quick question. Is there any way i can change the background color and the text color within my compiler of dev-c++. I'm not trying to change the color of the output when I run the program, I'm talking about the actual code itself and its compiler. …

Software Development c++ html-css
Member Avatar for nullptr
0
7K
Member Avatar for Khan2014

Hi All, I was wondering if anyone could tell me a better doing this. I have a thousand image in each folder going from 0 to 999 and i want to be able to select an image in any folder and load it. Thanks in advance for the reply. if …

Software Development
Member Avatar for Khan2014
0
157
Member Avatar for gedas

hey, i am creating a web service but the problem is when i try to deploy that web service it gives me error below: [ICODE]init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Building jar: D:\Documents\NetBeansProjects\EmployeeWebService\dist\EmployeeWebService.war D:\Documents\NetBeansProjects\EmployeeWebService\nbproject\build-impl.xml:684: Deployment error: Starting of server GlassFish Server 3 is not supported. Please, start the …

Software Development java
Member Avatar for ajithoop
0
158
Member Avatar for punna.udaykumar

A series of different parts of sentences will be randomly put together to come up with new interesting sentences. using with Random, Integers, Print, Strings, Breaks, Functions, For, Range

Software Development python
Member Avatar for sneekula
0
487
Member Avatar for OMER AHMED

hi all ... i am designing a software where i am using login and password. the user and password is store in notepad which is connected with listview . now i dont know i mean i need something when user enter user and password it should search and if details …

Software Development listview vb.net
Member Avatar for OMER AHMED
0
820
Member Avatar for dancks

I was testing this in prompt mode: import re def checkurl(url): check = re.match(r'^(:?https?://)?[^\/#?&]+\.[^\/#?&]+.*$',url) if check == None: print “NNOOOOOO!!!!” else: print “YESSSS!!!!!” checkurl("javascript:void(0);") checkurl("/account/general?ru=https%3a%2f%2fwww.bing.com%3a443%2fsearch%3fq%3dukraine%2bcrisis&FORM=SEFD") checkurl("/?FORM=Z9FD1") checkurl("http://choice.microsoft.com") I have no idea why this won't work. Ignore the regex its only supposed to weed out relative paths and fragments of strings. …

Software Development python regex
Member Avatar for Gribouillis
0
995
Member Avatar for shahera.arafat

(node.h) This is the code and it gives me these errors >>which confused me alot >>what are these errors ?!! and what is the problem ?!! Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 12 graph.h Error 4 error C2660: 'graph::create' : …

Software Development c++
Member Avatar for tinstaafl
0
211
Member Avatar for lewashby

[Linux] Mint I wrote the following code from an SDL book I have and it seems to be building just fine but when I go to run the program I get this error -> "Launch failed, Binary not found." I used Eclipse as my IDE and the setting are adjusted …

Software Development c++ ide
Member Avatar for tinstaafl
0
272
Member Avatar for akuma_reen

hello i had trouble in finding out whats wrong with my code I want to sort the data's from my text file and it somehow did but some of the words did not appear. word.txt hello apple hi banana mango the output I get is : hello hello hi hi …

Software Development apple c file-system
Member Avatar for akuma_reen
0
2K
Member Avatar for chumli

I have finally got the game running but it ends too early. I need to make the game continue until there are 4 in a row but it ends after the first turn and no disk is dropped. do { cout << "Drop a " << (player == 'R' ? …

Software Development c++
Member Avatar for chumli
0
159
Member Avatar for MasterHacker110

I recently read about the Ackerman Function and thought I would do my own implementation of it: #include <stdio.h> long long int ackermann(long long int m, long long int n) { if (m == 0) return n + 1; if (n == 0) return ackermann(m - 1, 1); return ackermann(m …

Software Development c
Member Avatar for Moschops
0
268
Member Avatar for Johnny Blaz
Member Avatar for chumli

Ok so I completed my hangman code but now I have to read the words from a .txt. I have looked at numerous codes and examples but cant get it to work at all. Any help I would be grateful. #include <iostream> #include <string> #include <vector> #include <algorithm> #include <ctime> …

Software Development algorithm c++
Member Avatar for chumli
0
147
Member Avatar for Florian_2

Hey, guys! Newbie here. =) I try to reverse an image but an error came and i don't know why :/ This is the error: Traceback (most recent call last): File "C:/Users/Florian/Documents/ISN/S10/défi11.py", line 10, in <module> im.putpixel((x,600-y),(p[0],p[1],p[2])) File "C:\Python27\lib\site-packages\PIL\Image.py", line 1267, in putpixel return self.im.putpixel(xy, value) IndexError: image index out …

Software Development python
Member Avatar for vegaseat
0
785
Member Avatar for bonzo2008

Hi the line with image4.picture don't work the rest of the code is printing out as it shall do. The image4.picture is in hidden position and the path is Okej.( can see it when the image4 is vissible=true) How or where is the problem ?? Help is use full with …

Software Development visual-basic
Member Avatar for bonzo2008
0
1K
Member Avatar for shahera.arafat
Member Avatar for deceptikon
0
154
Member Avatar for aluhnev

//HI All what is wrong with this code,i try to declare 4 dim. array int [, , ,] a = new int [3,4] = {{2,3,4,5}, {34,56,25,67}, {22,44,55,77}}; //how do i declare it an assign values to it?Thanks.

Software Development
Member Avatar for aluhnev
0
162
Member Avatar for juanpa_2510

Is it valid to use an integer variable as a condition? I mean: int var = 20; if (var) { //code here } I know that when var == 0 it's equivalent to false and true if 1, but otherwise could it be a valid question?

Software Development c++
Member Avatar for deceptikon
0
175
Member Avatar for Dudestreet

Hi Team, I was wondering if I am the only one who is not able to do it or what. Well, as the title suggests, I would like to OPen Excel in vb.net. I was able to find end number of articles online on this but none would help. It …

Software Development microsoft-office vb.net
Member Avatar for Dudestreet
0
5K
Member Avatar for glenak

I went to the official JAVA forum, but either those guys there have no clue how to solve this or there's no solution to it, in which case, Java applets are useless and java should stop pimping it. I have to say, this is the most frustrated I've been at …

Software Development display ide java open-source
Member Avatar for lilly13
0
1K
Member Avatar for JJHT7439

I have to complete a lab which basically takes a text file and finds path between 2 actors that you input by going through the movies in the text file. (For the labs purposes we are only doing 3 degrees of separation) For example if the text file is: [QUOTE]Apollo13 …

Software Development python
Member Avatar for James_41
0
3K
Member Avatar for bilal qadri

how to create dynamic object array with over loaded constructor call plz help and tell me the syntax ...

Software Development c++
Member Avatar for Maritimo
0
95
Member Avatar for jeram.burbon

Im try to write a program but i keep getting this error here is the program program: input: 3-digit ID & birth date (3 int month, day, year) validate birth date (1900's; dont worry about leap year) last student ID: 000 output: ID & birth date for each student birth …

Software Development java
Member Avatar for stultuske
0
1K
Member Avatar for Simon180

Am looking for a way to add a custom item image in icon view on a listview the icons I want to use is a single image bmp file with 4 icons on the image so I need a way to select each image on the file and a nice …

Software Development image listview pascal
Member Avatar for SalmiSoft
0
245
Member Avatar for chumli

> 1) I need to make the game ask the player if they would like to play again and repeat if they choose yes. I have tried to add a loop in a few different ways but have not made any progress so far. > 2) When a letter is …

Software Development c++
Member Avatar for chumli
0
300
Member Avatar for IsaacMessi10

Hi, I'm getting the following error: NullReferenceExceptionWasUnhandled on `if (messageUserList[i].Contains("_0"))`. I can't seem to find where the data is null. I've tried debugging using breakpoint yet no luck. Basically what I intend to do is get the text from a particular textbox `txtSendMsg` and write it to `messageList` at position …

Software Development
Member Avatar for IsaacMessi10
0
139
Member Avatar for gtcorwin

I click the Code button and it erases all the code I typed and won't let me type in the box any more. I am getting realy annoyed trying to post c code because I can't add the curly brace... can someone please tell me what it takes to post …

Software Development first-post gui
Member Avatar for deceptikon
0
171
Member Avatar for KetraCoder

Hi, I'm trying to make a game, so when the NPC talks to the player, I want the text to type it self So it would be like: H He Hey Hey t Hey th Hey the Hey ther Hey there Instead of just Hey there. I've attempted to do …

Software Development java
Member Avatar for KetraCoder
0
232
Member Avatar for Lethugs

Hi, I have to forms, second for is shown from the first form trough showdialog command. Both forms have datagridview User will select data from DGV in second form then pass all this data to DGV in first form How can I achieve it, I know how to do it …

Software Development vb.net
Member Avatar for Lethugs
0
351
Member Avatar for MasterHacker110

I am trying to create a form dynamicly and thus I need to initialize my DBGrid with code. { Connect the DBGrid to the database. } procedure TfrmRemoveRecord.InitDBGrid(); begin dbgList.DataSource := dmProgramDatabase.dsrCaches; end; But I get an access violation error.

Software Development pascal
Member Avatar for MasterHacker110
0
184
Member Avatar for Auroch

Hello! I'm trying to transform working Python code to Matlab code. It's Simpson's rule. But MatLab code is not working. What should I change for in this code? Python: from math import sin def f(x): return ((0.6369)*sin(sin(x))*sin(x)) def method_simpson_compost(f,a,b,n): h = (float(b)-a)/n i = 0 fks = 0.0 while i<=n: …

Software Development python
Member Avatar for Taywin
0
322
Member Avatar for wael1sham

using turbo c++: write a program that converts the input dollar to its peso equivalent.Then display the peso equivalent.One dollar is approximately 45.119 pesos.

Software Development c++
Member Avatar for NathanOliver
0
145
Member Avatar for bmwwbb54

import java.util.*; public class Initials { public static void main (String [] args) { Scanner keyboard = new Scanner (System.in); String name; System.out.println("Please enter your full name including your middle name: "); name = keyboard.nextLine(); System.out.println(" "); int x = name.indexOf(' ')+1; String nameTwo = name.substring(x,name.length()); int y = nameTwo.indexOf(' …

Software Development data-structure java
Member Avatar for Taywin
0
2K
Member Avatar for writerervin

I was wondering how I would go about programming a gui toolkit from scratch. I would appreciate any and all help you could give me.

Software Development c++ gui
Member Avatar for Moschops
0
294

The End.