3,815 Topics

Member Avatar for
Member Avatar for kaczmar86

I want my program to analyse geometric figures drawn by user. Figures must be filled with color. I have already found algorithm that checks if points are inside figure. I have problem with getting pixel color. [CODE=csharp] Bitmap rysunek; Pen pisak = new Pen(Color.Black, 1); rysunek = new Bitmap(pictureBox1.Width, pictureBox1.Height, …

Member Avatar for ddanbe
0
295
Member Avatar for blurrycustoms

Hey guys, First post here, but I have some interesting projects that I would appreciate some help with. I'm posting this in the C section, just because I have had a little experience with C. I know there is a ton of info on the subject around the web, but …

Member Avatar for ARUN(MCA)
0
146
Member Avatar for ezkonekgal

A book shop has bookshelves with adjustable dividers. When one divider becomes full, the divider could be adjusted to make space. Create a Java program that will reallocate bookshelf space using Garwick's Algorithm. Can any give me some pointers with this ? thanks.

Member Avatar for ezkonekgal
0
220
Member Avatar for blackslither

Hi I'm looking for a "shortest path algorithm" , but with a maximum number of edges limit . So the path has to contain at most N edges . i've found shortest path algorithms but not with a number of edges limit , and i've tried to modify A* , …

Member Avatar for Murtan
0
1K
Member Avatar for legilimen

Am searching for an efficient algorithm for generating solved Sudoku given the size(rows and column) of the board as input. i have written a program but its performing badly when the number of rows and column exceeds 40 (ie 40 x 40 matrix ). [CODE] import java.util.Scanner; public class Main …

Member Avatar for BestJewSinceJC
0
254
Member Avatar for solarwarrior

i'm making my minor project in steganography. but i'm not getting any useful information about f5 algorithm of hiding data in a JPEG image.it makes some use of DCT quantized coefficients ,please help me !!

Member Avatar for solarwarrior
0
92
Member Avatar for nm_9218
Member Avatar for Salem
0
24
Member Avatar for smnadig

Hello, The Hexadecimal value of EBCDIC has to be converted to corresponding character as the user inputs it. The following table shows the hexadecimal value of characters in ASCII and EBCDIC. Can anybody help me with an efficient C-Algorithm for this conversion? Char----Deci-------Hex.ASCII---Hex.EBCDIC A ------65---------41------------- C1 B-------66---------42-------------C2 C-------67---------43-------------C3 D-------68 ---------44-------------C4 …

Member Avatar for ArkM
0
1K
Member Avatar for Fox5

Alright, I'm trying to learn some basic threading and this is a problem I've been banging my head up against for a while. I'm doing some image manipulation using boost::numeric::ublas::matrix, which I believe is supposed to be thread safe, but as soon as more than 1 concurrent thread is involved …

Member Avatar for Fox5
0
116
Member Avatar for apaciboy

it is very important to me, please someone help me for the following problem..!! The method of padded lists tries it improves the binary search method using two tables of equal size: table for data and table for logical flags. At first the table of data contains some empty places …

Member Avatar for Narue
0
82
Member Avatar for apaciboy

A problem that i cant find solution, someone help me..! Often is presented the need of search of k keys in a sorted table of n elements. Draw and are analyze three algorithms of mass search, where that is the keys must search with one call of algorithm and no …

Member Avatar for ddanbe
0
73
Member Avatar for rajesh_pec

[B]can someone kindly help to do this problem:[/B] Write a program use C++ language with Recursion algorithm to do this exercise. Prefer compile with Visual C++ or DevC Snowflake.h and image included in attachment file 2. What changes have to made in the program in snowflake.h to draw a line …

Member Avatar for Murtan
0
82
Member Avatar for athar89

I have written this parsing algorithm in c++ and compiled in visual studio.On runtime after giving the value it gives an assertion error. The logic is correct bcuz ive dry runned it but i think there's a problem with memory allocation.I need urgent help.Please. // sas.cpp : Defines the entry …

Member Avatar for Murtan
0
185
Member Avatar for manzoor

How to find the top n elements without sorting the array? Is this possible??? Well I don't want to sort the array because the order is mandatory? After I have found the top n elements I want to modify them? Is there any certain algorithM?? Help ??? this is no …

Member Avatar for Salem
0
202
Member Avatar for mrboolf

Hi all there. Given the huge amount of blackjack/card games threads and me being personally interested in poker and other games, I was feeling like starting to play with a few useful (at least I hope so) classes for dealing (no pun intended :P) with card games. I started my …

Member Avatar for Murtan
1
527
Member Avatar for jamshid

Hi All Do you know what is this algorithm is? Can i find some code examples written in this algorithm? Thanks

Member Avatar for Rashakil Fol
0
112
Member Avatar for Lukezzz

I have the ambition to make a List, Global so it can be reached within other Threads. When compiling the code with the declared list like this the compiler says: [I]syntax error : missing ';' before '<'[/I] Should I declare the List in any other way than this ? (The …

Member Avatar for Lukezzz
0
133
Member Avatar for tomtetlaw

Hi all, I am making a text game in c++ and i am trying to get the player's attack to ba a random number between 1 and 7, but when i try to compile it, it gives me this error: 49 C:\Documents and Settings\Games\Desktop\C++ Tutorial\Combat\main.cpp void value not ignored as …

Member Avatar for Narue
0
321
Member Avatar for realahmed8

I need little help in adding Sin & Cos functions to my calculater , and also in Layout (need textfield to be on the top), so please help me if you can.. that's my code: package javaapplication3; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.*; //import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import …

Member Avatar for javaAddict
0
277
Member Avatar for ItecKid

Hello, I am trying to write the merge sort algorithm. My code is as follows: [code=c++] #include <iostream> #include <cstdlib> using namespace std; void m_sort(int list[], int temp[], int left, int right); void merge(int list[], int temp[], int left, int mid, int right); void mergeSort(int list[], int size) { int …

Member Avatar for ItecKid
0
134
Member Avatar for brianlesays

All right, so I have a final exam due that consists of four problems. I'm currently working on the first problem. I understand the algorithm of the problems, but I am very, VERY weak with syntax and the entire C language in general. In the first problem, I just indexed …

Member Avatar for verruckt24
0
124
Member Avatar for IMtheBESTatJAVA

I've been given a project in which I have to find the highest and lowest possible product using 3 2-digit numbers without repeating any numbers. For example, the algorithm for the highest would be: 7n * 8n * 9n where the n's would be 4, 5, or 6. The algorithm …

Member Avatar for verruckt24
0
298
Member Avatar for pocku

I'm working on a quick sort algorithm using recursion but it's throwing a stackOverflowError. Here is the code: [CODE] public static void quicksort(int [] A){ quickSortRec(A, 0, A.length-1); } public static void quickSortRec(int [] A, int p, int r){ if (p < r){ int q = Partition(A, p, r); quickSortRec(A, …

Member Avatar for neilcoffey
0
195
Member Avatar for mikewalsh89

Hi, Am a beginner in python. Wrote this program based on the doomsday algorithm to calculate what day of the week corresponds to an inputted date.... at the moment idle rejects the program citing'march4 is not defined'.(line 23) Am i not clearly defining it there?? Please help!! Program text: #Doomsday …

Member Avatar for sillyboy
0
186
Member Avatar for aldl88

i didnt write this programe. can you help me Make a flowchart of an algorithm for calculation of the number and the sum of all elements smaller than Y on the minor diagonal of a 2D array with 20 rows and 20 columns. The value of Y is input by …

Member Avatar for LizR
0
99
Member Avatar for sciwizeh

OK, this is probably the wrong place for this question, but here goes nothing... I want to know what math is involved in making a Color gradient (so i can program some myself). My goal for now is to make a program that can get two locations and matching colors, …

Member Avatar for Ezzaral
0
579
Member Avatar for shankhs

I am searching an efficient algorithm to find all the palindromes in a string(actually I have to find the largest palindrome in a string).. Here is my code [code] string palindrome(string str) { int n=sz(str); for(int l=n-1;l>=0;l--)//Palindrome can be of any size. { for(int i=0;i<n-l+1;i++) { int j=i+l-1; string str2=str.substr(i,j-i+1); …

Member Avatar for cikara21
0
156
Member Avatar for sjhentges

Ok here is my assignment, i know its alot to read, but i would really appreciate the help: Write a program that asks the user for a file name. The file contains the part number, cost and quantity for up to 50 parts in the current inventory at a store. …

Member Avatar for sjhentges
0
132
Member Avatar for johnalexandersr

Can someone help me with the follow: How would you implement mergesort without using recursion?

Member Avatar for Freaky_Chris
0
168
Member Avatar for raphkeu

Hellow, I have got to make a .s file that can do the following stuff: -image pixels are tored in memory (32bit/pixels: R-G-B alpha) -write an image correcting algorithm *copy a port of the image to another spot *increase the amount of red in the picture *Increase the brightness (simple …

Member Avatar for raphkeu
0
141
Member Avatar for Damagh25

I have some code for a routing algorithm in python programming language but i don't understand the code at all. I am only a beginner and i was wondering if anyone could explain it for me in plain text. Could you please go through and explain each part. Cheers. Here's …

Member Avatar for Damagh25
0
240
Member Avatar for wann100

can anyone help me do this i am utterly confused and have no clue what to do Page 1 of 2 Overview: Write a C++ program to select, for purchase, for a particular month, offers to supply coal to an electric generating station. This program should read a user-specified input …

Member Avatar for ddanbe
0
109
Member Avatar for ItecKid

So basically, my assignment was to write quick sort and merge sort using both vectors and arrays, and time how long it takes to sort the the arrays and vectors of various sizes. However, the code is producing inconsistent results. Sometimes it seg faults, other times it produces unfriendly messages …

Member Avatar for ArkM
0
642
Member Avatar for ItecKid

Hello, I am trying to write the quick sort algorithm to take in an array of 20 random integers and sort them. However, it is producing weird output for the sorted list. My code is as follows, can anyone give me a little help here? [code=C++] #include <iostream> #include <vector> …

Member Avatar for Freaky_Chris
0
109
Member Avatar for gothicmisery85

I am working on a program, and I can't figure out what I'm doing wrong. Any help would be appreciated. Here is what I have to do: [b] Write a procedure named St_concat that concatenates a source string to the end of a target string. Sufficient space must exist in …

Member Avatar for crunchy_frog
0
3K
Member Avatar for Dewey1040

I understand the algorithm SelectionSort, but once again my problem is the easy part( i think the college life is affecting my mind ). How in the world do you read in an unknown number of ints from a file? I thought i did it right but when i run …

Member Avatar for ArkM
0
97
Member Avatar for Martin88

Hey hi I have a problem with to C++ programs for my final project, the problem is that i tried to make the code but first the C++ program say general protection exception i read some of this but i still think that the structure of my program is not …

Member Avatar for Martin88
0
201
Member Avatar for shamila08

hello, dear all [code=cplusplus] #include <iostream> #include <stdio.h> using namespace std; int count = 1; void print( int *arr, int SIZE){ if (arr != 0) { for (int i = 0; i < SIZE; i++) { // i = position cout << arr[i]; } cout <<"\n"; } } void circular_left(int …

0
141
Member Avatar for elkoshli

Hi I have exam after 12 hours, please help me to writing those programs…… And thank you 1. Write a c++ program to output the histogram of a sequence of 10 positive integers. this program first asks the user to enter 10 integers. then write the histogram of this sequence …

Member Avatar for Salem
0
105
Member Avatar for yingfo

Hi I was wondering if anyone could help I'm receiving a segmentation fault whenever I go to run my main.cpp on my program. I've never encountered this before and was wondering if anyone knew how it can be fixed. The program consist of equiv.h, equiv.cpp, graph.h, graph.cpp, and main.cpp here …

Member Avatar for yingfo
1
260
Member Avatar for steve2up

Hi everyone, I am a U.student from China, I would like ask a question about my assignment. For the directed graph, I would like to perform topological sort for sorting up nodes, but I encountered some problem in queue which is able to be removed or added with certain elements. …

0
93
Member Avatar for alip15379

Hey everybody Hope you guys have a great weekend. I am trying to implement a Table ADT to show city name, country, and population. I already did most of the work, but for some reason i get a small error in the main method file.the code is below: //TestTable(main) class …

Member Avatar for quuba
0
190
Member Avatar for Gribouillis

The following program is able to download the python programs contained in a thread of the python forum. Just start the program, it will prompt you for the thread number and create a directory with the code extracted from the thread. I used it to download all the wx examples. …

0
112
Member Avatar for MosaicFuneral

Here's what I'm trying out: [icode]Substitute characters into values with no set left bits; check if the next position is a vowel(or whatever), turn it into a value with no right bits set, join the two characters into a single byte, delete the unused position now.[/icode] Here's the code using …

Member Avatar for MosaicFuneral
0
296
Member Avatar for AcidG3rm5

Hi all. I was writing my program. And halfway through, i tried to compile and run. but got a blank output. I tried doing a cout<<"hello"<<endl at the main() must still didn't get any display. could anyone please help me to see what went wrong? [code=cplusplus] #include <iostream> #include <fstream> …

Member Avatar for Ancient Dragon
-1
122
Member Avatar for Icebone1000

win2000 , visual studio 2005, console application (sorry my poor english) I dont know very well how start explain whats my problem.. Im making a sudoku game (not unic solution, just random =P) the problem is the loop where it suppose to verify the sudoku rules and make the corrections …

Member Avatar for Murtan
0
241
Member Avatar for it2051229

I want to ask if someone has already have an article or working algorithm where it can get all the combination possible in a given word. Example: "ABCD" possible combinations or arrangement without duplicates: "ABCD" "ABC" "ABD" "BCD" "AB" "AC" "AD" "BC" "CA" <--- is the same as "AC" "CBA" …

Member Avatar for ddanbe
0
77
Member Avatar for Nick Evan

This site may come in very handy when dealing with lazy newbies: [URL="http://letmegooglethatforyou.com/"]http://letmegooglethatforyou.com/[/URL] Example: [quote=noob] what is search-algorithm ?!!!111 lolzwtf fbi [/quote] Click [URL="http://letmegooglethatforyou.com/?q=search+algorithm"]this [/URL]link and see

Member Avatar for Obeledeveloper
5
358
Member Avatar for zatin

I have a Person Class, binarySearch needs to be performed on surnames. I need help with binarySearch algorithm. This is what I have so far: public class Person implements Comparable { private String firstName; private String lastName; public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for msundastud

ok, once again, I'm back...after this program I don't plan to write anymore...here's the task... Program # 1: Write a program that can decrypt the following string Ukjv!lt#xkz#DVT#sxmht1 Each character must be decrypted by applying the decryption algorithm to its ASCII value. The decryption algorithm is: • if array index …

Member Avatar for devnar
0
118

The End.