132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for norcominc

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++
Member Avatar for tux4life
0
214
Member Avatar for Egypt Pharaoh

I can publish in c# but I can't made it like any programme set up like photoshop

Software Development
Member Avatar for luvuyomaq
0
118
Member Avatar for grumpty

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
Member Avatar for quuba
0
383
Member Avatar for BoneXXX

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++
Member Avatar for BoneXXX
0
354
Member Avatar for Aamit

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
Member Avatar for peter_budo
0
131
Member Avatar for Cardboard Box

Hi Does anyone know how to place sound in a vb.net project? Thanks

Software Development vb.net
Member Avatar for nileshsarode06
0
99
Member Avatar for pspwxp fan

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 …

Software Development c++ gui
Member Avatar for jbennet
0
110
Member Avatar for claytonl

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, …

Software Development c++ ruby
Member Avatar for nexocentric
0
162
Member Avatar for Warrior4017

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
Member Avatar for Amirlano
0
296
Member Avatar for threat

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 …

Software Development c++ queue
Member Avatar for nexocentric
0
162
Member Avatar for Dannyo329

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++
Member Avatar for Dannyo329
0
155
Member Avatar for ashkash

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
0
75
Member Avatar for Dart82

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
Member Avatar for Dart82
0
96
Member Avatar for nschessnerd

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++
Member Avatar for nschessnerd
0
140
Member Avatar for abrars

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
Member Avatar for abrars
0
152
Member Avatar for floydus

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
Member Avatar for JerryShaw
0
110
Member Avatar for orcsoul

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 …

Software Development c++ ios
Member Avatar for orcsoul
0
122
Member Avatar for luutu_amir

1 write aprogram toread student's name examination number ,score for six subjects plus their average score using type one of c++ please i need this 30 minutes 2 using c++ write aprogram compute the number of students in a room (classes)

Software Development c++
Member Avatar for skatamatic
0
138
Member Avatar for thebluestar

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++
Member Avatar for skatamatic
0
155
Member Avatar for astonomer

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++
Member Avatar for skatamatic
0
129
Member Avatar for hopzta

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
Member Avatar for BestJewSinceJC
0
95
Member Avatar for drjay1627

[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++
Member Avatar for drjay1627
0
75
Member Avatar for BruenorBH

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
Member Avatar for nucleon
0
166
Member Avatar for slim2hott

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++
Member Avatar for slim2hott
0
158
Member Avatar for compscinerd69

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
Member Avatar for BestJewSinceJC
0
1K
Member Avatar for Stefano Mtangoo

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++
Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for olabaz

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
Member Avatar for olabaz
0
114
Member Avatar for gbrokaw

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 …

Software Development gui python tkinter
Member Avatar for gbrokaw
0
137
Member Avatar for apollo1492

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
Member Avatar for apollo1492
0
141
Member Avatar for gmark

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
Member Avatar for gmark
0
2K
Member Avatar for richboy

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
Member Avatar for crazyhorse09
0
127
Member Avatar for jwatte

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
Member Avatar for jwatte
0
361
Member Avatar for blair.mayston

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
Member Avatar for targ
0
187
Member Avatar for lancevo3

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++
Member Avatar for lancevo3
0
175
Member Avatar for Delija

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
Member Avatar for ddanbe
0
490
Member Avatar for super.mina

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++
Member Avatar for tux4life
0
8K
Member Avatar for Ani2084

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++
Member Avatar for siddhant3s
0
69
Member Avatar for crh0872

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 …

Software Development c++ json
Member Avatar for crh0872
0
151
Member Avatar for slimmit

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
Member Avatar for slimmit
0
90
Member Avatar for Shmera

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++
Member Avatar for Ancient Dragon
0
389
Member Avatar for Gewalop

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
Member Avatar for siddhant3s
0
155
Member Avatar for neutralfox

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
Member Avatar for neutralfox
0
87
Member Avatar for Alex_

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
Member Avatar for Alex_
0
2K
Member Avatar for denniskhor

[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
Member Avatar for denniskhor
0
133
Member Avatar for hunterm

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
Member Avatar for hunterm
0
640
Member Avatar for nirav bhatt

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++
Member Avatar for ArkM
0
91
Member Avatar for QuickBooksDev

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
Member Avatar for QuickBooksDev
0
275
Member Avatar for Siaa

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
Member Avatar for Nick Evan
0
117
Member Avatar for eladco

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
Member Avatar for Kekke
0
101
Member Avatar for Clockowl

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++
Member Avatar for Clockowl
0
178

The End.