132,726 Archived Topics
Remove Filter ![]() | |
Does anyone know how gmp works? It's supposedly installed but I don't know how to use the functions. I try following this site http://es-sun2.fernuni-hagen.de/cgi-bin/info2html?(gmp)Top but it doesn't compile when I try using the functions. What I'm trying to do is factor a large number. Is there an mpz function for … Software Development c++ | |
I can publish in c# but I can't made it like any programme set up like photoshop Software Development | |
I the program I wish to run is a search for a number in 4 threads. Its working out fine and here is the code. [CODE] import java.lang.Math; import java.lang.Thread; public class NumberFinder { public static void main(String args[]) { int target = (int) (Math.random()*1000); System.out.println("The number is " + … Software Development java | |
Hi, I dont know much about programming, however I have a c++ program(i didnt write it) that I need to use it to do some experiments. When I compile the program I get this errror. [code] dynn.cpp: In function ‘void make_near()’: dynn.cpp:374: error: name lookup of ‘j’ changed for new … Software Development c++ | |
Hi, I want to learn spring,strut,hibernate... where i get simple and good tutorial for beginners. which framework /tools/IDE to download. or books .. what other basic language needed to learn like to learn c++ background of c please give me all details?? Thank you Software Development ide java spring-framework | |
Hi Does anyone know how to place sound in a vb.net project? Thanks Software Development vb.net | |
Hello, I recently bought "An Introduction to programming with C++ (4th edition )" by Diane Zak, and i really liked the way C++ was introduced to me with concept lessons and all. When I have finished this book, and hence made my mark with basic C++, i think i shall … | |
Hey, I'm not a programmer at all, but I'm hoping someone could help me solve a problem. I've looked all over Google, Ruby forums, and C/C++ forums but havn't found my answer. I'm trying to generate all possible permutations for 5 digits (1,2,3,4,5), up to and including 6 digits long, … | |
Hi, I am currently writing a project that will allow the playing of a game of "british squares" in MIPS. Unfortunately it is giving me quite a bit of trouble. I was wondering if there is a way to set the $ra register to the current location (actually a bit … Software Development assembly | |
i'm trying to make this program which simulates a printing queue, a very basic level program that implements priority queues. i'm stuck in the last function, i.e. the simulate function, there's that while(temp!=NULL){...} loop in simulate function which works perfect the first time but turns into an infinite loop the … | |
Hi, I have a question with ofstream, is there anyway to ask the user for a file name, then create the file, and write to it? Like: [CODE] string file; cout << "Enter filename:"; getline(cin, file); ofstream ofile; ofile.open(file); ofile << (stuff....); ofile.close; [/CODE] ...except that doesn't work properly.:S Thanks … Software Development c++ | |
I need to perform a sha-1 hash on a byte array. The byte array needs to be hashed with all combinations of a minimum of 4 bytes to a maximum of all 9 bytes of the following bytes: 00 01 02 03 04 05 06 07 08 So the following … Software Development | |
Hello, Im currently writing code for a program that translates a line of text from English into German then back again. Its a big loop that needs to be executed the same number of times as words in the text. I'm almost there but there doesn't seem to be anything … Software Development python | |
i have some code to kill a process [code=cplusplus] TerminateProcess((HANDLE)sinfo->process->Handle, 0); [/code] what happens is so the process freezes and starts eating up the processor... so i i try to terminate it, but it only goes white and that box pops up that says "bla bla bla" stopped working... is … Software Development c++ | |
the code seems to be fine dont know why its not working. when i execute the same sql directly in database it works fine. the error is get is oledbexception was unhandled syntax error in from clause. please help me thanks is advance. Private Sub Button2_Click(ByVal sender As System.Object, ByVal … Software Development dataset open-source vb.net | |
I created a list of instances of a class, I don't know how to delete for exemple item at index 1 oPerson[1] ... Here is my code ViewerList[] oPerson = new ViewerList[2]; oPerson[0] = new ViewerList(); oPerson[0].DVRBrandID = "0"; oPerson[0].DVRModelID = "0"; oPerson[0].DVRViewerPath = ""; oPerson[1] = new ViewerList(); oPerson[1].DVRBrandID … Software Development | |
I've gotten about 90% of this program done, but I can't seem to figure out how to do one last operation in it that is needed. What I'm having a hard time figuring out, is how to make a total for each person in the file? I'm sure it's deceptively … | |
Hi all, I have to make a graphics project about drawing a circle like: 1/Draw the circle on the screen with yellow pen color and dark blue background. (Note: yellow color: 0xFFFF00, dark blue color: 0x191970). 2/ Rotate the circle counterclockwise around the center I with the speed 10 degree … Software Development c++ | |
I am creating a program to count the vowels and have run into a problem concerning my loop. }#include <iostream> #include <cmath> #include <iomanip> using namespace std; bool isVowel(int num); int main() { bool tof = false; //initializes tof bool to false int vowels = 0; char x; cout << … Software Development c++ | |
I am having a difficult time with this one line of code for my homework that is due Sun.: Modify the Inventory5 Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item … Software Development gui java java-swing | |
[code]int c, s; sscanf ( inBuf, " %d %d", &c, &s ); [/code] I wanna check if c and s are actually int. suppose if you enter a letter rather than a number, how do i check? drjay Software Development c++ | |
I am new to Win32 API and am having trouble setting up the menu. Here is what I have at the moment (my new way of doing the main.cpp code is from another member) but I cannot understand where to put in the function call for the menu.. main.cpp [code] … Software Development api c gui windows-api | |
ok so i wanted to make a number randomiser like so: [CODE]#include <iostream> #include <windows.h> using namespace std; int main() { srand((unsigned)time(0)); int random_integer; for(int index=0; index<20; index++){ random_integer = (rand()%60)+1; MessageBox(NULL, "Random Number: ", "Bingo",MB_OK | MB_ICONINFORMATION); Sleep(2000); } return 0; } I want to put the randon_integer result … Software Development c++ | |
The programming assignment is to implement a class Purse. A purse contains a collection of coins. Each coin object must contain its name. You should not put a limit on the number of coins that a purse can hold. This program should provide the user with the ability to display … Software Development java | |
I have two files and I would like to call addition function from functions.cpp in main.cpp. But I get error: [COLOR="Red"]In function `int main()': error: `addition' has both `extern' and initializer error: initializer expression list treated as compound expression warning: left-hand operand of comma has no effect error: `addition' cannot … Software Development c++ | |
I am trying to connect to a database but I have no clue how to do it or if it's even possible. The server address is: sql306.byethost5.com How would I connect to this server if the username is usn and password is pwd? Software Development visual-basic | |
Hey everyone, I'm writing a program with a Tkinter GUI for my job and I was wondering whether there is a way to create an icon on my desktop to start it so I don't have to start Idle and run the program from that (computer un-savvy people will need … | |
Im writing this program that draws a bar graph showing an investment growth. and this error keeps coming up and i cant figure it out. this is the syntax that python keeps telling me. Traceback (most recent call last): File "C:\Python26\lala.py", line 68, in <module> main() File "C:\Python26\lala.py", line 47, … Software Development python | |
Dear all, I have read a lot topics about reading binary files but I didn't find something about my problem. How possible is it to read a binary file that you don't know the file format? I am sure that there are at least chars and float numbers. Thanks a … Software Development c | |
Hi, i want to transfer every text that is entered into a textbox1, into another textbox, textbox2(which is multi line textbox). But i want textbox2 to arrange every input it recieves from textbox one in alphabetical order. This is the code i have below [code=syntax] Imports Microsoft.VisualBasic.ControlChars Imports System.IO Public … Software Development vb.net | |
I am embedding Python 3.0.1 on Windows, using MSVC 2008 sp1. I do not pass FILE* structs to Python, so I think compiler version differences is not a problem. The following code has a problem, in that the "txt" string that comes out at the end only contains the character … Software Development python | |
Hi , Have downloaded a feed from a news site and trying to show only the first paragraph for each story. At present, the output to email looks like this: "http://www.nzherald.co.nz/nz/news/article.cfm?c_id=1&objectid=10568455&ref=rss" Man arrested after pointing fake gun at police (A 59-year-old man has been arrested after pointing an imitation gun … Software Development python | |
Hey, I'm writing a function that searches for an id in an array of a structure, for some reason it returns -1 everytime, so I was just hoping another set of eyes could help me clarify this. [code=cplusplus] int searchAr(student studentar [], int size, int searchid) { int i; for(i … Software Development c++ | |
Hi, for a project I have to read in a text file and using a "tree sort" i have to sort and count all of the words. I have the first part working but im not sure how to create this tree sort... all i know is that is similar … Software Development visual-studio | |
If i have an array like that int x[100]={1,0,3}; so only i have 3 elements and the rest of the array is zero, how can i count the number of elements in a larger one .. Software Development c++ | |
I am new to C++ and am trying to do this [CODE]void rolodex::createCard(){ char* userData = "\0"; cout << "\n\nEnter first Name - "; cin >> userData; currentCard.setFirstName(userData); cout << currentCard.getFirstName(); count++; } [/CODE] when I try to execute it gives me an unhandled exception, access violation error What am … Software Development c++ | |
I'm new to C++, and I have a function, [inlinecode]char* parse( char* buf, char* find_this )[/inlinecode] which finds an instance of [inlinecode]find_this[/inlinecode] inside of [inlinecode]buf[/inlinecode]. Once it finds that, it looks ahead in the [inlinecode]buf[/inlinecode] text, (which is actually JSON formatted) finds the value in the text, and it returns … | |
I'm trying to figure the topic out. To begin, lets say I have different sets of points in a file with the following format: 2 //1st number represents number of points within set 3, 4 //following lines are points 5, 6 3 3, 4 5, 6 6, 2 ..etc I … Software Development java | |
Hi everybody! I would really appreciate any help on this. I have googled for an hour without a result. Few different hints but no one understandable enough. I want to use Latvian or UTF-8(Unicode) characters in Dev-C++ to input and output text from console. Can anybody give me a hint … Software Development c++ | |
Hi, I'm trying to write a code for Caesar Cipher, I don't seem to be able to get it right, I'm having no compiling errors, but there're some real logical errors, the encryption function is working fine, but I'm having troubles with the decryption. I'd love it if someone helps … Software Development c++ encryption | |
Hello, I need a little help for word multiplication, according to my notes, to multiply a word, we should put the multiplicand in AX, the multiplier in a register or memory variable and the result should appears in AX(low) and DX(high). The problem is how to get the product ? … Software Development assembly | |
Hello! I'm trying to swap some characters in this form, in Linux+NASM: abc -> cab -> bca -> abc I tried the following method [code] section .data string: db 'abc',10 strlen: equ $-string section .text global _start _start: mov ebx,1 add ebx,string mov string, [ebx] [/code] But it gives me … Software Development assembly | |
[URL="http://rapidshare.com/files/222099783/PAS.zip.html"]http://rapidshare.com/files/222099783/PAS.zip.html[/URL] Can somebody help me check y the system stated overflow when i process... Software Development visual-basic | |
So I am trying to create a mirror image that is horizontal. I am having trouble getting the actual image to mirror because I am not sure how to go about doing this. I am using PIL 1.1.6 and Python 2.5.4, if that matters. So far I have: [code=python] def … Software Development python | |
In the following code, how RAND_MAX works and how the poisson distribution value generated??? what will be the value of RAND_MAX in following code?? long poisson(double lambda) { double u = double(rand()) / RAND_MAX; long k = 0; double currentprob; while (u >= (currentprob = pow(lambda,k) * exp(-lambda) / factorial(k))) … Software Development c++ | |
Can anyone please tell me how to update an existing exe's file version? Ex. Target.exe exists. It may or may not have a file version. The source code is NOT available. I need be able to change the file version. Thanks!!!! Software Development vb.net | |
hello friends........ i need a program which counts the total number of galaxy stars of an image.........i think if the RGB value is less than 50.....then is wont be a star otherwise it will be detected as a star......all the clusters of the stars joined together should be considered as … Software Development python | |
Hi, I'm writing an client application (not web , just program which sits on the local computer) and also a web server. The application should send a request to the server with parameters (for example: fname="david", lname="cop" , etc.) . the server should read the parameters he was received from … Software Development client-server first-post web-server xml | |
Hey guys, I have a class with a friend function and a member function with the same name. Calling the friend function from the member function gives me an error: it looks for <classname>::<function> while the friend function is of course simply <function>. In this case, MinGW GCC says: [code] … Software Development c++ |
The End.