132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sobias

Hi Guys, There's something bugging me in the past 2 days. In Doubly Linked Lists, when will a Node get comepletely deallocated? is it when both **Next** and **Previous** references points to **NULL**? forget about the class and the method **remove()** and such. Let me make an example so you …

Software Development java linked-list
Member Avatar for sobias
1
231
Member Avatar for BevoX

This is my solution for generating prime numbers. With this code hopefully you can generate prime numbers with incredible speed. The generated numbers will be stored in a text file titled as "Primes.txt". I have a dual core machine, but this program does not support dual core architecture, so it …

Software Development c++ ubuntu
Member Avatar for Microno
1
678
Member Avatar for javaprog200

Hello, The program below selects two shapes at random from a choice of four shapes (line, rectangle, oval and rounded rectangle) and draws them onto an applet. Once six such shapes have been drawn, the screen is cleared and the above process continues indefinitely. The issue I am having is …

Software Development java java-swing
Member Avatar for javaprog200
1
145
Member Avatar for soujanya.bhat.184

I am not able to understand the concept of virtual functions. When a member function of base class is redefined in derived class,the redefined function can be used to get desired output. Then why there is a need to use virtual functions? For instance, the following two codes produce the …

Software Development c++
Member Avatar for Agni
1
199
Member Avatar for sannidhikumar99

please tell me what is the condition to use here.... if(CONDITION) printf("HELLO"); else printf("WORLD"); ok frnds now i want the output as HELLO WORLD

Software Development c
Member Avatar for shashikumar s g
1
638
Member Avatar for lenash

how to access a web service from a mobile POS Device application in c and to store the accessed data in the device to use it (like printing bills for a collection) when it is required.can anyone please give any guidance for the above requirement iam totally new with POS …

Software Development sqlite
Member Avatar for stefan.s
1
171
Member Avatar for AnnA.B

Could you please help me how to create a four in a row game in C? Thanks!

Software Development c
Member Avatar for joao.jose.520
1
1K
Member Avatar for compulove

Hi! I am trying to teach myself C# and basically I have been reading books and online materials to help me but I think I need to really be more hands on with it to really have it sink in. Any ideas on websites or software that I could get …

Software Development c#
Member Avatar for compulove
1
106
Member Avatar for judithSampathwa

hi there, i have a code to open an excel file and get the information from the excel file, but how can i get the used rows in the excel file appreciate a lot if someone could give a tutorial or some guidance thankx

Software Development c#
Member Avatar for mukund1988
1
3K
Member Avatar for Helianthus

I have been struggling with this for 4 days - Please help. I have attached a copy of my code with the hope that someone here can give me some insight as to what I am missing. (This is a homework assignment, so please keep that in mind. I am …

Software Development visual-basic
Member Avatar for AndreRet
1
345
Member Avatar for Jx_Man

This code to save, Edit and delete data in VB.Net using SQLServer as backend. this code is continuance from my previous post "Show Data in DataGrid with VB.Net 2003 and SQLServer 2000". so i didn't write code how to connect SQLServer 2000 with VB.Net 2003 cause this already in there. …

Software Development sql vb.net
Member Avatar for anuj6928
1
21K
Member Avatar for syeda amna

I am trying to run a program from python command line. I installed python on D: drive. PLZZ help me in fixing this problem.

Software Development python
Member Avatar for syeda amna
1
585
Member Avatar for mini person

[COLOR="Green"] hi every body i'm a new user in this site , and this term I am doing graduation project .. So , I wanna ask some questions in programming .. first one : how to connect between 2 computers via wireless ?? second : If the connectivity between the …

Software Development c#
Member Avatar for WVPhysicist
1
5K
Member Avatar for glenwill101

While at work i had nothing to do so i wrote this simple python script that uses the dbm module to store user information its not perfect but im sure someone will find it helpful.

Software Development python
1
237
Member Avatar for goyofoyo

In Xcode how does one create a header file? and what should it include? or does xcode create the file and use the information from the .c file to create the .h file

Software Development c
Member Avatar for rubberman
1
189
Member Avatar for Redhaze46

[B]Hello all..[/B] is it possible to create my own simple programming language in c++? complete with the compiler,editor and the libraries.. just a basic model where i can write simple instructions,save it with my own extension and run atleast a few simple algorithms..

Software Development c++
Member Avatar for mrnutty
1
230
Member Avatar for creck

Hi guys, I am a novice in C programming, and would like to ask you for help as I've started studying a computer science at university just few weeks ago. All I need to do is write a math function "pow(double x, double y)" without using any of functions in …

Software Development c
Member Avatar for creck
1
330
Member Avatar for munchlaxxx

The program says it's stopped working after I input the first number... #include <iostream> using namespace std; int average(); int main(){ char answer; cout << "Average calculator." << endl; cout << endl; cout << " Enter a stream of positive numers (0 or above)." << endl; cout << "Enter a …

Software Development c++
Member Avatar for np complete
1
197
Member Avatar for Oblivi8or

Hi. I'm fairly new to VB.NET programming, and i'm currently developing an application for the sake of experience. What i know about Visual Basic programming might be considered dangerous, but none the less, i'm trying. I'm having difficulty getting past the idea of how to update a record in a …

Member Avatar for Novagrail
1
2K
Member Avatar for np complete

This is a factorial program which uses array to calculate large factorials. The problem is sometimes if I enter 1000, it gives the output but stops working there after. I tried it with 2000, 3000, it works fine. I cant understand its erratic behaviour? Is there any problem with my …

Software Development c++
Member Avatar for np complete
1
125
Member Avatar for salakgocap

main() { FILE *file = fopen ("COMMAND.txt", "r"); FILE *file1 = fopen ("LOG.log", "a"); if (file != NULL) { char line [255]; /* Max line Size*/ while (fgets (line, sizeof line, file ) != NULL) /* Reading a line */ { char first[10]; if (sscanf(line, "%9s", first) ==1) { fprintf(file1, …

Software Development c
Member Avatar for WaltP
1
105
Member Avatar for abders

The GUIFlowLayout is giving me some trouble, the GUIFrame works fine. I have copied this from the Java programming book which I am using (Introduction to JAVA, eight edition, by Y. Daniel Liang). I get red error lines under 'setLayout', all of the 'add' words, and all the 'setTitle, setSize' …

Software Development java java-swing
Member Avatar for abders
1
291
Member Avatar for mohamed moamen

I'm do program that when i press by mouse in any cell in table that print the cell position in a text field but i have a problem that's do nothing need help plz note ( I'm use jfram form and drage in it jtable and jtextfield ) [CODE] public …

Software Development java
Member Avatar for mKorbel
1
150
Member Avatar for WaltP
Member Avatar for WaltP
1
240
Member Avatar for Gribouillis

This snippet allows one to implement an equivalent of a `__getattr__()` function in a python module. The module can then define its own way to lazily import abitrary symbols. For example the module can contain infinitely many names or load values from other modules on demand. There are many implementations …

Software Development python
Member Avatar for Gribouillis
1
531
Member Avatar for mIND.dEcEpToR

How can I programatically and accurately detect the touch/slide made by a user's touch on an android phone? I want this to be used as suppose I have two android devices synced with each other. Both of them have anything opened suppose pdf file, music file video file. Then if …

Software Development android android-development java pdf
1
102
Member Avatar for suganesha

hii i am a beginner in c++ and i have got an assignment to do. below is my code and i am unable to execute it so can anyone help me out !! please !!! I am confused on how to replace the room no. in change_room() function and case …

Software Development c++ ios
Member Avatar for np complete
1
7K
Member Avatar for Mike Askew

The following suggestions will help the process of answering threads in the most efficient manner. 1. Do not hijack other member's threads, you will not get replies, instead start your own question. 2. What have you tried? We are not here to mock mistakes and showing effort made will make …

Software Development xml
1
112
Member Avatar for pritaeas

Recently bought "Regular Expressions Cookbook 2nd ed." and wanted to share my findings. The book is divided into two parts. The first part (3 chapters) describes tools, skills and programming. The tools chapter shows you what's out there (including his own software). The skills chapter is a tutorial. It describes …

Software Development perl regex ruby
Member Avatar for pritaeas
1
251
Member Avatar for sonu611

Hi all, I was looking for a way to execute windows batch file from java code, and I was able to do this with the following code. [CODE] Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("cmd /C " + "path" +exec.bat"); [/CODE] The batch file refers to some other files …

Software Development java
Member Avatar for shahbaz07dbit
1
1K
Member Avatar for dban07

Hello friends, I'm a Computer Security student. I need some opinions for my Final Year Project idea. Im planning to create an application on VB.NET which protects a network from unknown users like hackers by filtering their MAC addresses/Hostname/IP. The application will work similar to the software inside the modem/router …

Software Development cybersecurity gui mac-software vb.net
Member Avatar for G_Waddell
1
265
Member Avatar for tformed

Hi guys, I've got the program running, but not as how the instructor requested. The professor wants us to ask the user for a text file and classify the data accordingly. Example: E = Enter L = Leave So if I have a text file with the following info E …

Software Development java
Member Avatar for jalpesh_007
1
335
Member Avatar for D33wakar

This is a simple hangman game that I wrote using my beginner python skills. Though this game is playable, there must be lots of things I must've been doing wrong or the methods I'm using here may be not so pythonic. So I want some suggestions on how to improve …

Software Development gaming python
Member Avatar for TrustyTony
1
713
Member Avatar for lmsmi1

I saw a thread here and didn't want to gravedig. I am a member of Hackforums.net, but no one there will help me. The code I saw involved multiple IFs inside a FOR loop. Now my question is, is there a working Caesar cipher I can refer back to when …

Software Development c++
Member Avatar for np complete
1
185
Member Avatar for I_m_rude

What Can I do so as to stop compiler not to do padding in the structures ? is there any pragma or something like that which i can use ? thanks in advance. now, "ANY" response will be appreciated. :-D

Software Development c
Member Avatar for I_m_rude
1
89
Member Avatar for np complete

There are N horses in the stable. The skill of the horse i is represented by an integer S[i]. The Chef needs to pick 2 horses for the race such that the difference in their skills is minimum. This way, he would be able to host a very interesting race. …

Software Development c++
Member Avatar for np complete
1
1K
Member Avatar for I_m_rude

hi.... Let F be the matrix 1 1 1 0 Then F^n (2x2 matrix multiplication) equals F(n+1) F(n) F(n) F(n-1) because: (F(n+1) F(n) ) (1 1) = ( F(n+1)+F(n) F(n+1)) (F(n) F(n-1)) (1 0) = ( F(n)+F(n-1) F(n) ) Can anybody tell me or give me the hint that how …

Software Development c matrix-multiplication
Member Avatar for deceptikon
1
230
Member Avatar for jalpesh_007

Dear all, I have one question arise in my mind while i am making my project. I have one column "AGE" is there.So many values are stored in this column ranging from 0-100. I also have find frequency of each age like age=5 comes how many times in my column …

Software Development java
Member Avatar for Taywin
1
123
Member Avatar for raj26061990

Eg.407 4*4*4=64 0*0*0=0 7*7*7=343 now 64+0+343=407. Any number which satisfies the above condition is called as Armstrong

Software Development java
Member Avatar for vinnitro
1
512
Member Avatar for Twist43

Hi I am trying to get a tkinter UI to allow me to do two things. * When I right click in a Treeview widget and my mouse pointer is over an item I would like the item to be selected as if the user clicked on it * When …

Software Development python tkinter
Member Avatar for Twist43
1
4K
Member Avatar for bugstalker

Being an experience programmer (fortran and assembly), I decided to modernize my resume and tackle c. In the process, I learned that like other programming languages, there were many 'versions' of c. Several course books I read use the conio.h header file. I was looking for a substitute for conio.h …

Software Development assembly c machine-learning
Member Avatar for Ancient Dragon
1
1K
Member Avatar for misi

I do have a function in C to give me a unsigned short random number from 0 to 65535. How can I make it to give me a greater number without much calculating? (r * 65536 + r) I've made a function in C to do that for me: static …

Software Development c++
Member Avatar for misi
1
241
Member Avatar for vckicks

Use regular expressions, regex, to create an efficient textbox that only takes in digits as input.

Software Development regex
Member Avatar for Chatthanz
1
847
Member Avatar for prakash89.gitam

Hi I have a task to do. I will just brief it in a sentence, I have a file of 20000 lines. Now task is to recognize number of similar lines. ex1 : "The quick brown fox jumps on a lazy dog" ex2 : "The quick brown dog jumps on …

Software Development java regex seo
Member Avatar for Taywin
1
181
Member Avatar for TrustyTony

There was discussion thread http://www.daniweb.com/software-development/python/threads/424953/polynomial-division for class based implementation for polynomials, and I developed a version utilizing the magic methods to enable operation with normal arithmetic operation. I only inherited sequence structure from list type. Interoperability with scalar types is not implemented to avoid too complicated type checks of the …

Software Development daniweb-bug mathematics python
Member Avatar for TrustyTony
1
1K
Member Avatar for azilana

Hi! Anybody know how to interface a transmitter of RC helicopter with the parallel port? The transmitter has joysticks. I have to control it with my GUI in visual basic. I'm not good at it. Please help. Thanks!

Software Development gui visual-basic
Member Avatar for AndreRet
1
95
Member Avatar for tricket_7

I want the btnLogin_Click event to verify the username/password from the ms access database, if it matches it will take them to a certain page, if not it will give a message that user/password is incorrect try again. I really don't know where to start, can you please help first …

Software Development c c# c++ dataset microsoft-access open-source
Member Avatar for notconfirmed
1
249
Member Avatar for slim.helu.92

hi.. am quite new to sound applications in java. I want a audio control panel as output. i.e. if i click play button audio should play, if i click stop audio should stop and if i click pause audio should pause/hold until the play or resume button is clicked. i …

Software Development api audio java
Member Avatar for slim.helu.92
1
191
Member Avatar for sandorlev

Hey guys! I've started writing a 2d platformer game some days ago, and I'm really enthusiastic about it, but I already failed to live up to my own expectations: I just cannot possibly think of a way I could make my character jump. I used the MVC desing is why, …

Software Development gaming python
Member Avatar for 3e0jUn
1
342
Member Avatar for bembem20

can someone tell me how to get the values of the dynamic texbox created..on my first code, i munaully put textboxes..but resulted to non efficient code according to my prof..so i found a code that dynamically create texboxes, but my problem now is how to get the values of them. …

Software Development vb.net
Member Avatar for Reverend Jim
1
563

The End.