132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ashishinani1756

Print all the pairs of prime numbers which is equal to the sum of the given no. entered by user.

Software Development c++
Member Avatar for donaldw
0
94
Member Avatar for kettavan

Hi guys, I need some help regarding JComboBox. I want to link the JComboBox with JTextField and this is the code that i did. It contains error and I need some guidelines for it.Thx [code=Java]private void typeof_patronJComboBoxitemStateChanged(ItemEvent event) { // clear JTextFields clearComponents(); // determine whether checkbox selected if (event.getStateChange()== …

Software Development java
Member Avatar for kettavan
0
88
Member Avatar for starlight09

Hi everyone, My goal is to generate lottery numbers that have 6 unique numbers in the range of 1-49 ex. if the user inputs 2 as the number of tickets they want, the program should print out 1 2 3 4 5 6 10 9 8 7 12 11 ---2 …

Software Development java
Member Avatar for starlight09
0
621
Member Avatar for javanub123

hi, i have a lab monday which requires me to generate random sized squares random poinst. im not to familiar with the random class and the syntax and all that but im guessin i need to use a for loop. if someone can just point me in the right direction …

Software Development java java-swing
Member Avatar for javanub123
0
1K
Member Avatar for cabosun

I am suppose to make a MakeFile for the 2 source files named p4a.c and p4b.c Am i doing this makefile correctly? Any suggestions would be so helpful my MakeFile so far [CODE].SUFFIXES: .c .o CC - gcc CFLAGS = -g .c.o: $(CC) $(CFLAGS) -c $, sample: p4a.c p4b.c gcc …

Software Development c open-source
Member Avatar for gerard4143
0
115
Member Avatar for nevets04
Member Avatar for Damon88
0
98
Member Avatar for javanub123

im trying to make my program draw lines from the top right corner of the JFrame which is 400 x 400, to the bottom of it making what looks like a curve but really is just lines. i think i know the basic idea of how to do this which …

Software Development java java-swing
Member Avatar for javanub123
0
1K
Member Avatar for peternrose

My QBASIC programs do not run under Windows XP. Specifically, LPRINT does nothing. I have spent a lot of time & effort over the past 15 years programming in QBASIC with lots of useful and profitable programs. I really do not want to start over with Visual Basic unless there …

Software Development qbasic visual-basic windows-xp
Member Avatar for nokki
0
1K
Member Avatar for jaymeaux77

Hi there, Im writing a program that takes a function and makes a plot of it. the program consists of 2 functions and each creates its own GraphWin. However i want to have a mouse click at the end close both windows. So i returned the window from the first …

Software Development python
Member Avatar for jaymeaux77
0
99
Member Avatar for paul2594

I recently updated my system to XP-2 with a pentium III. I have a number of qbasic programs I developed to use in my hobbies and lo and behold, I can't print to my usb port. The programs run okay. I should think this is a problem that has been …

Software Development qbasic
Member Avatar for nokki
0
2K
Member Avatar for hapyharra

hello I need a programm In C how convert Hexadecimal to decimal plz

Software Development c
Member Avatar for gerard4143
0
163
Member Avatar for lllllIllIlllI

Hi, Im using wxPython for my latest project and i was wondering, how do i make the window go to the best size, so it includes all of the objects on screen? I used to be able to remember... but i forgot :P

Software Development python
Member Avatar for lllllIllIlllI
0
87
Member Avatar for combustion

Hello, I'm new to c++ and I am trying to convert a bruteforce program from Python to c++. Here is what I have so far: [CODE=c++] #include <iostream> #include <string> using namespace std; char chars[]={'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; string t; cout << "Enter a string: " << endl; cin >> t; void checkPassword(string …

Software Development c++
Member Avatar for Ancient Dragon
0
260
Member Avatar for Ishaniwp

Hi! I'm having a problem with my coding. I have initialized a 2d array (String), but when I try to print a value from it, it gives me null. this is how I initialized my array. [code]String phone[][] = { {"A", "B","C"}, {"D", "E", "F"}, {"G","H", "I"}, {"J", "K", "L"}, …

Software Development java
Member Avatar for Ishaniwp
0
98
Member Avatar for whouton

Hi guys, I'm trying to make a function that allows the user to enter in a file name and access that file; if the file name is wrong or the file is not there, I want to allow the user to enter in another file name. For some reason the …

Software Development c++ file-stream file-system
0
78
Member Avatar for kjiu

Hj, I have a problem how to do the print. example: I need to print a file. Kjiu

Software Development java
Member Avatar for kjiu
0
78
Member Avatar for _dragonwolf_

This code works fine so far... except for my "isPair()" function. It gives me the following error: Exception in thread "main" java.lang.NumberFormatException: For input string: Any help solving this issue would be great. I am trying to get the program to read poker hands and print out what it is. …

Software Development java
Member Avatar for thines01
0
139
Member Avatar for lllllIllIlllI

Hi guys, Im a making a program where i need to be able to specify a folder and have my program import every module from that folder into my program... I was wondering how i would go about it. I can't use something like eval. But yeah, help would be …

Software Development python
Member Avatar for pythopian
0
14K
Member Avatar for itslucky

Dear Friends, When i enter a new record in SQL Database from my C# application, the record stores in the database at random locations, but i want to make sure that every record must be enter at the end of the Table. Actually i have to get the Last Balance …

Software Development
Member Avatar for jpattison
0
210
Member Avatar for Ying_Yang

Hi, I like the modularity of java but I wonder what low level custom functions it has, since I' am considering to create an OS, and we all know in high level its imposible to control the hardware eficiently. :-/ so I wonder if there is a way to use …

Software Development java operating-system
Member Avatar for Ying_Yang
0
214
Member Avatar for candoc

If I am fread()'ing through a file and want to append it when i find a particular item, can i just do an fwrite() when i find it or do i have to first fseek() to that location and then do an fwrite()?

Software Development c
Member Avatar for Tom Gunn
0
117
Member Avatar for Fujy

I`ve been programming in Java, and started learning C++ a few days ago. I was playing around with codes and got this : [CODE] # include <iostream> using namespace std; int main(){ char str[100]; char *pnt[100]; for(int x = 0; x <= 100; x++){ pnt[x] = str[x]; } read(); } …

Software Development c++
Member Avatar for thines01
0
365
Member Avatar for leegeorg07

Hi I have this code currently: [code] dict = open("dict.txt", "r").readlines() print dict LETTERS={'a':1, 'b':2, 'c':3, 'd':4, 'e':5, 'f':6, 'g':7, 'h':8, 'i':9, 'j':10, 'k':11, 'l':12, 'm':13, 'n':14, 'o':15, 'p':16, 'q':17, 'r':18, 's':19, 't':20, 'u':21, 'v':22, 'w':23, 'x':24, 'y':25, 'z':26} word_value=0 lettersv=[] letterss=[] def main(): word=raw_input('what is the word?') word=word.lower() for …

Software Development perl python
Member Avatar for leegeorg07
0
116
Member Avatar for whizkidash

Hi Team, Need your urgent help for the same Well i have a file which consist of million records. Question is : Prepare a script which will cat that particular file..and then,the user will be asked to choose which line in the file he needs to modify the word and …

Software Development shell-scripting
Member Avatar for sknake
0
194
Member Avatar for sanchitgarg

suppose i have 10 different functions. i generate a random no. between 1 to 10. depending on its value i want to call the fucntion. eg. no. 3 call func, no. 8 calls func 8... etc. how do i do it using a loop without using the if else statement …

Software Development python
Member Avatar for sanchitgarg
0
244
Member Avatar for Rishi_Hamza

I am trying to import mails from Outlook to my Database during execution of code it is throwing the [COLOR="Red"]"Excepiton ComException unhandeled by User Code"[/COLOR]. it was working fine in the beggening but suddenly start throwing this exception. Here is my code [CODE] for (int i = 0; i <= …

Software Development microsoft-office
Member Avatar for mikiurban
0
136
Member Avatar for mandangalo

I am trying to code for an assignment at school. When I call my addElement() method and input the data to pass that data to my constructor which is used to store the data in certain elements in the array it seems to work ok. However, when I try to …

Software Development user-interface
Member Avatar for ddanbe
0
222
Member Avatar for TheManual

I am trying to create a RPN calculator, the addition and subtraction functions work but it only accepts numbers under 10. How can I fix this so any integers are allowed? Thanks. [code] import sys accepted = '0123456789dr+-*/%^=' numbers = '0123456789' stack = [] while len(stack) <= 20: while True: …

Software Development python
Member Avatar for TheManual
0
92
Member Avatar for Ragoune

Hi, As I'm new to C++, but not to programming, I tried to start simple by reading off value from the registry. I'm talking about standard values such as the processor's name. I made a little function which checked how many processors the user has, that works fine. But I …

Software Development c++
Member Avatar for Ragoune
0
3K
Member Avatar for gunbuster363

Here is my code. If I use forloop to write, it got error: Traceback (most recent call last): File "m.py", line 20, in <module> f.write(tag[i].string) TypeError: argument 1 must be string or read-only character buffer, not None HOWEVER, if I don't use for loop, instead write as : f.write(tag[1].string) it …

Software Development python
Member Avatar for gunbuster363
0
151
Member Avatar for kernel>panic

Hi, I have been trying to figure this out: How do you remove more than one thing like this remove("C:/Users/"+name+"/Documents/help"); How I want it to work is the users specify's there user name and then it opens the C drive>Users>Then it needs to add the input user name. Thanks.

Software Development c++
Member Avatar for thines01
0
122
Member Avatar for Mona1990

Hi I was wondering if someone could help me to figure out how to write a code for : Write a function print_table which consumes two parameters, a list of list of strings, and an integer for the length of the list. The function should print out the strings from …

Software Development python
Member Avatar for Mona1990
0
300
Member Avatar for paruse

What will be the value of "++n" in the above code? Pls help..

Software Development c++
Member Avatar for thines01
0
208
Member Avatar for Dorayaki

Hi, I want to ask about listbox things. I made a Listbox, 3 textbox, and a Database The Database Table is Member The member field has 4 which is MemberID, Name, Address, Phone. I have 2 records and it were display to the listbox which are Adry and Brandy (I …

Software Development vb.net
Member Avatar for TomW
0
183
Member Avatar for Carrots

Hi, I have wrote a program which stores values in a .csv file. He is the how the data is stored in the .csv file: [quote] "Steve","21 Main Street, Nottingham","SW1 1AB","0115 9123456","These are some details. and, so.","112233","1359" "David Baner","123 Shaw street, Nottingham","NG92HJ","020 123456","ifbiugbuige","112233","1200" [/quote] Each line forms a single object. …

Software Development c++ file-stream file-system
Member Avatar for Ancient Dragon
0
165
Member Avatar for Alex_

Hey guys. I am trying to print different messages in dependency of what char you press. In my case i use, F1,F2,F3, escape. The problem is that the first message is printed again after a char input is read, which it shouldn't! This is my code, please tell me where …

Software Development assembly
Member Avatar for Alex_
0
117
Member Avatar for feinbaby

The problem question is, add a close method to the Auction class. This should iterate over the collection of lots and print out details of all the lots. You can use either a for each loop or a while loop. Any lot that has had at least one bid for …

Software Development ide java
Member Avatar for feinbaby
0
375
Member Avatar for mahela007

What would it take to make graphics show on the monitor without using stuff like tkinter and Qt? (tkinter and Qt are called toolkits right?)

Software Development python qt tkinter
Member Avatar for mahela007
0
261
Member Avatar for gunbuster363

I want to create a file and open it and write on it with f= open('out.txt', 'a') then it got error: File "m.py", line 10, in <module> f=open('./out.txt', 'a') IOError: [Errno 13] Permission denied: './out.txt' What happened?? I am using opensuse and was using a user account to edit and …

Software Development python
Member Avatar for gunbuster363
0
124
Member Avatar for leegeorg07

Hi I have been trying to use the python subprocess module but I find the documentation for 2.6.4 vague, does anyone else know of good tutorials for it? thanks in advance

Software Development python
Member Avatar for leegeorg07
0
95
Member Avatar for XLL

Hi all,I got a issue that how can I run several functions at same time? say [CODE] a=1 def function1(a) a+1 return a def function2(b) b+2 return b def plotGraph(a,b) return graph [/code] how can I just run plotGraph function here?..I am totally newb..hope anyone can help..thanks

Software Development python
Member Avatar for pythopian
0
115
Member Avatar for jnthn205

Im writing this in netbeans. Here is the code: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package accounttoolssilverberg; /** * * @author Administrator */ public class accountToolsSilverberg { double a[]; int i; public accountToolsSilverberg() { a = new …

Software Development java
Member Avatar for jnthn205
0
88
Member Avatar for greenerworld007

Hi, I hav heard that it isn't that simple to write a program in linux using c. Lots of commands n stuff.Please simplify what actually I've got to do to run turbo c++ in my linux laptop as I am a beginner.

Software Development c++
Member Avatar for necrolin
0
184
Member Avatar for MattyRobot

would there be anything wrong with making an includes.h which has all of the .h files my project needs to link to. or is it better to link to them when needed?

Software Development c++
Member Avatar for MattyRobot
0
138
Member Avatar for jex89

Hi, I don’t know if anyone would be able to help me with the following problem, I am hoping :D .. I have looked on the internet but no look. I have pickled a document into the pickle object, how can I now search the pickled object to remove a …

Software Development python
Member Avatar for pythopian
0
3K
Member Avatar for deftones

Hey, I faced one tiny problem, but I can't figure it out. What I need is basically "label1 = format(now, "hh:mm:ss")", but I want start counting time from zero: "00:00:00".. Any help?

Software Development visual-basic
Member Avatar for akhileshbc
0
90
Member Avatar for coollife

byte array size is 977kb when i try to store into ms access database its getting stored without error making the ms access database size 140kb(i know it uses different format to store so lesser kb) But when i try retrieving the same code from ms access database and when …

Software Development
Member Avatar for DdoubleD
0
490
Member Avatar for calccrypto

I wrote my own sha implementations but i cant get them to read files correctly. i know to use [CODE]open(file,'rb').read()[/CODE] as the input into the algorithm, but [CODE]import hashlib hashlib.sha1(open(file,'rb').read()).hexdigest()[/CODE] and my code [CODE]sha_1(open(file,'rb').read())[/CODE] return two different hashes. any idea why? i know that a normal string will have the …

Software Development algorithm python
Member Avatar for mn_kthompson
0
148
Member Avatar for jakesee

Hi matlab experts, I didn't think daniweb has a matlab forum so I went over to another math forum to ask for matlab help. but i think it's either I am too stupid for the mathematicians or they are too smart to realize that it is NOT obvious what i …

Software Development
Member Avatar for Rashakil Fol
0
282
Member Avatar for jaison2

The function should ask the user for the price of the delivery and if the price is less than £10 then it should print a statement saying "the total price including the delivery charge is" + £1.50 or it should just output the normal price if it is more than …

Software Development python
Member Avatar for snippsat
0
224

The End.