132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shasta90

[url]http://www.daniweb.com/software-development/python/threads/187060/1572491#post1572491[/url] based on a previous thread I would like to know how to replicate the appearance of a house five times on the gasp interface via the script below: #!/usr/bin/env python from gasp import * # import everything from the gasp library begin_graphics(title="Houses At Night", background=color.BLACK) # open the graphics …

Software Development python
Member Avatar for ~s.o.s~
0
1K
Member Avatar for apanimesh061

How can one demonstrate Multiprogramming and Idle loop in C ??? Please help !!! I can't think any way ..... :?: Thanks

Software Development c
Member Avatar for Narue
0
222
Member Avatar for aman rathi

The below code is showing error i checked lots of time didn't find any error please help me. [CODE] class emp{ int id,sal; String name; emp(int id,int sal,String name) { this.id=id; this.sal=sal; this.name=name; } void show() { System.out.println("Name: "+name); System.out.println("Salary: "+sal); System.out.println("ID: "+id); } } class manager extends emp{ int …

Software Development java oop
Member Avatar for aman rathi
0
195
Member Avatar for hqt

I use Code::Block 10.05 I'm starting with some lines of code. No error found when I compiled it. But although I ("run", "Compile this current File","Build") in menu Build, I still cannot debug my program because in menu Debug, ("start", "stop Debug", "next",etc) cannot active :( I have read on …

Software Development c++
Member Avatar for hqt
0
163
Member Avatar for bigdan182

hi, I have been writing a football tournament simulator and I am almost done, however i need to some how sort the teams after a round the put the teams that progress into the next round. The data of the teams is held in structures and have a boolean vale, …

Software Development c++
Member Avatar for rubberman
0
140
Member Avatar for tubby123

Guys, this is the code from KnR I dont understand this line nunits = (nbytes+sizeof(Header)-1)/sizeof(header) + 1; The entire code is as follows [CODE]static Header base; /* empty list to get started */ static Header *freep = NULL; /* start of free list */ /* malloc: general-purpose storage allocator */ …

Software Development c storage
Member Avatar for rubberman
0
132
Member Avatar for Simplicity.

Hi all, This code solves the Euler Equation of Gas Dynamics which is a system of partial differential equations. The problem is that it takes very long to run than it would normally required. Things become worse after including the functions "S_p(a_p,a,b)" and "S_m(a_p,a,b)" which are called within other functions …

Software Development python
Member Avatar for Simplicity.
0
155
Member Avatar for ians_acess

hi there im just new with java i just want to ask can 1 dialog box contain multiple lines i min like this one JOptionPane.showMessageDialog (null,"\n "+EN ) ; somehow i want to add just like JOptionPane.showMessageDialog (null,"\n "+EN , "\n another messages here then" +DR , "\n and another …

Software Development java
Member Avatar for NormR1
0
180
Member Avatar for uva1102

Good Day Everyone.. Table doc1 ID=1 Reccurence = "Monthly" DuePatten = "26" Table doc2 History_ID = Date_Due = table doc2, column Date_Due must read the data from ID, Recurrance and Duepattern for generate date_due. output table doc2 must be generate like per below : History_ID Date_Due 1 26/1/2011 1 26/2/2011 …

Software Development
Member Avatar for uva1102
0
132
Member Avatar for Webbsta

Well the save file dialog, for some reason removes all file extensions that are input to it. No matter what i do or how i set the filename value, it always removes the extension which is incredibly annoying when i need to extension to stay as it is otherwise the …

Software Development
Member Avatar for Weakegg
0
2K
Member Avatar for xtianenikkian

Is there any code to create or generate bar codes in vb6? Please help me, advance thank you for all that will respond :)

Software Development visual-basic
Member Avatar for xtianenikkian
0
83
Member Avatar for shanki himanshu

the question of the program i have posted... There are N numbers a[0],a[1]..a[N - 1]. Initally all are 0. You have to perform two types of operations : 1) Increase the numbers between indices A and B by 1. This is represented by the command "0 A B" 2) Answer …

Software Development c
Member Avatar for shanki himanshu
0
180
Member Avatar for JacobBruce

I am using the RemObjects PascalScript engine in one of my applications and I have a few questions. I was looking for a list of all the functions and constants available to PascalScript and the best resource I could find was this page: [url]http://www.be-precision.com/products/pdscript/webhelp/en/topics/PSSyntax.htm[/url] Most of the functions work as …

Software Development ide pascal
Member Avatar for beprecision
0
211
Member Avatar for hamiltino

Can someone help me and complete this simple polynomial program(can be demonstrated using linked lists); [CODE]public class Polynomial { /* Constructs a new polynomial of degree zero */ public Polynomial() { } /* Returns an integer representing the coefficient * of the x^power term */ int getCoefficients(int power) { } …

Software Development java
Member Avatar for JeffGrigg
0
209
Member Avatar for c#bird

Hi, I am writing a web app using C# and asp.net. The requirement is that: there is a button "browse" on the webform, when user click it, the folders on the server will be showed. after user select one folder, the fullpath of this folder will be returned. There is …

Software Development asp asp.net c c# c++ web-server
Member Avatar for rv2011
0
1K
Member Avatar for C+Marshall

Hi; I've been working on this for 2 days now and am hoping someone give me a tip. New to Java code so bear with me. I need to create 2 panels in a frame. Each frame must contain 2 images. Frame 1 must be a fixed width allowing the …

Software Development java
Member Avatar for manoglobal@gmai
0
574
Member Avatar for Genericusername

Hello, I am working on a program that generates 100 random integers and then sorts them into even and odd. When i go to compile the program, it tells me that it cannot find variables randonum, evennum, and oddnum. I'm new to arrays so i'm guessing i declared/ defined them …

Software Development java
Member Avatar for Zetlin
0
246
Member Avatar for bunnyboy

Yesterday I started playing with Microsoft CTP async library and I came across awaitable pattern ... I followed some tutoral, but I have a newer version of ctp that tutorial was refering to so all info about that was useless. After looking over the internet how the new pattern looks …

Software Development
Member Avatar for kvprajapati
0
211
Member Avatar for J-Dub

I used one action listener for an array of buttons that do different things. Exploring methods. I am fairly new to java. I just made a tic tac toe program. I am hoping for people to look it over and tell me what they think, ways to make it better, …

Software Development java java-swing
Member Avatar for peter_budo
0
437
Member Avatar for xtianenikkian

Good day guys, im just wondering if there is a notes, functions or code related to print, i just want to come up with a good hardcopy of the information every time the employer request it. my source is adodc1 or datagrid

Software Development visual-basic
Member Avatar for xtianenikkian
0
143
Member Avatar for Luvme

just wanna ask if how to print your from adodc and datagrid which is from access using vb6? tnx in advance

Software Development visual-basic
Member Avatar for xtianenikkian
0
78
Member Avatar for jotae

In my APP the principal form open a second form (MothPayment) where the user pay a moth of the student. Well, made the payment, the form close and return to the principal form. The problem is that textbox fields like student balance, paid month , etc only refresh if the …

Software Development visual-studio
Member Avatar for ajaypatidar
0
150
Member Avatar for zoraster01

i wonder why my code have an error.. this my code and i will highlight the error[CODE].. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim connection As New SqlClient.SqlConnection Dim command As New SqlClient.SqlCommand Dim adapter As New SqlClient.SqlDataAdapter Dim dataset As New DataSet connection.ConnectionString …

Software Development dataset open-source vb.net
Member Avatar for Mitja Bonca
0
142
Member Avatar for blivori

Hi, I created a Python script using pyPDF that automatically merges all the PDFs in a folder and puts them into an output folder and rename them automatically as per the folder's name. What I want to do now is for the script to search for sub-directories, process all the …

Software Development pdf programming-construct python
Member Avatar for blivori
0
224
Member Avatar for jheanal

what is the code in timer if the user enter a negative number a dialog box will appear saying that is invalid !! NEED THE ANSWER ASAP THANK YOU

Software Development visual-basic
Member Avatar for debasisdas
0
92
Member Avatar for adam25

I'm trying to execute the following code in netbeans & eclipse but without success. [URL="http://read.pudn.com/downloads150/sourcecode/comm/651136/NmeaConverter.cpp__.htm"]http://read.pudn.com/downloads150/sourcecode/comm/651136/NmeaConverter.cpp__.htm[/URL] Program has command-line parameter: -f D:\nmea.txt Eclipse says: [CODE]Description Resource Path Location Type `endl<<expression error> >' cannot appear in a constant-expression nmea.cpp /nmea/src line 358 C/C++ Problem `std::endl(std::basic_ostream<_CharT, _Traits>&)' cannot appear in a constant-expression nmea.cpp …

Software Development c++ ide java-netbeans
Member Avatar for adam25
0
353
Member Avatar for mitchney

i want to start my codng immdiately about linkng the database in vb...but i dnt knw how...anybody there hu would lke to help me hw i can lnk my database...please...tnx guyz.....

Software Development vb.net
Member Avatar for debasisdas
0
119
Member Avatar for jaepi

hi there, i just want to know what function to use in converting a char into an int like: [code] char temp; cout << "enter something"; cin >> temp; atoi(temp); [/code] is this the right way?

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for riotburn

I am writing a polynomial class and finally got done writing all the functions, set up the main but get an assertion failed _BLOCK_TYPE_IS_VALID(pHead->nBlockUse). I read it has something to do with the going over the size of the heap, but don't entirely grasp that. Any clues? [CODE] #include <iostream> …

Software Development c++
Member Avatar for riotburn
0
124
Member Avatar for webdragon89

I have to write a program to "encrypt and decrypted" some text. For example if I input: FACHHOCHSCHULE with a password of: TIGER it should encrypt to: YIILYHKNWTACRI which I got working but when I try to reverse the process I get numbers, letters and symbols. Please help. [CODE]#include <iostream> …

Software Development c++
Member Avatar for Grimm#13
0
696
Member Avatar for missil9

Hello. I have been kicking myself for a while now and I was wondering if anyone could please help me. My code is: [CODE]char fname[FNAME_LEN] = "blah" FILE * fp = fopen(fname, "r"); char line[BUF_LEN]; while( fscanf(fp, "%s", line) != EOF ) { double x = atof(strtok(line, "|") ); unsigned …

Software Development c file-stream
Member Avatar for missil9
0
304
Member Avatar for Slyvr

I keep getting the IndexOutOfRangeException for my XNA game and after printing the indexes it stops at 600. Is that the max limit for arrays in C#? I'm trying to get all of the pixels from an 800x600 image into an array so I can test when a R:20 G:20 …

Software Development
Member Avatar for Momerath
0
273
Member Avatar for pseudorandom21

I need to run some code written in Java from my personal website. How do I even begin?

Software Development java
Member Avatar for NormR1
0
125
Member Avatar for auwi987

guy's i encounter new problem again i write a login system that if users input is correct the mainform will show,enable and focus.., if not he/she only have 3 attempts to log in and it will close .., the problem is if input is correct login form it not focus …

Software Development
Member Avatar for auwi987
0
107
Member Avatar for Russ775

My issue with this code is that when it is executed it does loop correctly. It just runs once and my goal is to have it run 100 times. I am using Python version 3.1 and could really use some help... Considering I am the only geek with in a …

Software Development python
Member Avatar for JoshuaBurleson
0
117
Member Avatar for Russ775

[CODE]import random print("\t\tWant to know your future?") input() fortune = random.randint(1, 5) if fortune == 1: print("You are gonna die today") input() elif fortune == 2: print("You will find love") input() elif fortune == 3: print("You will make it big today!") input() elif fortune == 4: print("You friends will betray …

Software Development python
Member Avatar for JoshuaBurleson
0
186
Member Avatar for emmas4impact

[CODE]void Addcostumer(){ struct CustomerData *p; char another ='y'; char anothers ='n'; CustomerData *newcous; char str1[80]; char str2[100]; char str3[20]; //fseek(fc,0,SEEK_END); p=(struct CustomerData *)malloc(sizeof(struct CustomerData)); newcous= new CustomerData; printf("Costumer Name:"); fflush(stdin); gets_s(str1); strcpy_s(newcous->CName,str1); printf("Costumer Address:"); fflush(stdin); gets_s(str2); strcpy_s(newcous->Address,str2); printf("Costumer Puhelin:"); fflush(stdin); gets_s(str3); strcpy_s(newcous->Puhelin,str3); if ((fc = fopen("c:\\users\\Emmas4impact\\Documents\\customer.bin", "wb"))==NULL) { printf("Cannot open …

Software Development c
Member Avatar for emmas4impact
0
162
Member Avatar for Asif_NSU

This is (supposed to be) a soln for a [URL=http://acm.uva.es/p/v1/101.html]ACM problem[/URL] But the program produces a runtime error. Can anyone spot the bug? [CODE] #include<iostream> #include<string> #define MAX 25 using namespace std; void print_blocks(); int return_initial(int a);//return all the blocks //on top of block a to their initial pos int …

Software Development c++
Member Avatar for blackcloudbd
0
632
Member Avatar for IndianaRonaldo

[CODE]void SubGen(char* s) { //rearrange s ... for(int i=0;i<strlen(s);i++) { for(int j=i+1;j<strlen(s);j++) { if(s[i]==s[j]) { char temp=s[i+1]; s[i+1]=s[j]; s[j]=temp; } } } //s arranged.... Sub[0][0].push_back(s[0]); for(int i=1;i<strlen(s);i++) { if(s[i]==s[i-1]) { vector<string> temp; for(int j=i-1;j<Sub.size();j++) { for(int p=0;p<Sub[j].size();p++) { temp.push_back(Sub[j][p]); } } for(int j=0;j<temp.size();j++) { temp[j].push_back(s[i]); } Sub.push_back(temp); } else { …

Software Development c++
Member Avatar for IndianaRonaldo
0
217
Member Avatar for Srin

My panel's paintcomponent method draws a line based on the initial click and the current position as the mouse is dragged. Releasing the mouse leaves one line from the mouse press location to the mouse released location. The problem is. on the next click/drag, the old line disappears when the …

Software Development image java
Member Avatar for Srin
0
1K
Member Avatar for heavy.is.happy

Hi. I have an issue who i can't solve. The problem is that a = "13.33" and I want it to turn a = 13.33 and not 13.3333333333 and not 13.330000002. So, how do i make it so "13.33" will be an 13.33 float?

Software Development python
Member Avatar for Gribouillis
0
130
Member Avatar for IndianaRonaldo

[CODE] vector<vector <vector<char>>> Sub; Sub[0][0].push_back(s[0]);Sub[0][0].push_back('\0'); Sub[0][1].push_back('\0'); [/CODE] I have the above code and it says "vector subscript insaccessible" for the assignments.What could the reason? Thanks in advance, Prasanna

Software Development c++
Member Avatar for IndianaRonaldo
0
175
Member Avatar for ©lick

Hi. I have this connection code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Net.Sockets; namespace ConnApp { class Program { static void Main(string[] args) { Socket sck = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint ip = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 1234); try { sck.Connect(ip); Console.WriteLine("Connected!"); } catch { Console.WriteLine("Error!"); …

Software Development asp.net c c# c++
Member Avatar for Momerath
0
259
Member Avatar for anasmi

hi, i'm an IT student working on a project(point of sale) but i'm unable to display the price of the item, weight and name into a textbox from an access database and to insert multiple barcode items in order to get the subtotal. please i really need your help

Software Development vb.net
Member Avatar for saleem.mukhtiar
0
86
Member Avatar for floatingDivs

Hi guys, I just finished doing my homework assignment on spanning trees and I wanted some reassurance that I've done it correctly. I'm not looking for someone to state a correction, but rather let me know I've made a mistake (if I have). Here are my edges for [B]Prim's Algorithm[/B] …

Software Development algorithm c++
Member Avatar for cherry4life
0
199
Member Avatar for Jason Giggs

Hi I came across this question in C++ Primer by Stanley Lippman. [CODE] int main() { const char ca[] = {'h', 'e', 'l', 'l', 'o'}; const char *cp = ca; while( *cp ) { cout << *cp << endl; ++cp; } } [/CODE] According to me, this code should produce …

Software Development c++
Member Avatar for mike_2000_17
0
96
Member Avatar for coroll

Hi all, I am generating comboboxes in runtime in a for loop. Then, when click ok i want to get the selectedItems. So how would i do this. PLZ help me. this is how i generate comboboxes in th page load. [CODE] NewBookEntry nbe = (NewBookEntry)Application.OpenForms["NewBookEntry"]; int lable = 0; …

Software Development
Member Avatar for coroll
0
144
Member Avatar for watery87

hi guys, im currently working on playfair cipher. However i got a serious problem in implementing it on certain conditions You can find background information here [url]http://en.wikipedia.org/wiki/Playfair_cipher[/url]. The problem im facing is that when Playfair cipher decrypts by bigrams and encounters the same character e.g 'ee', my program adds a …

Software Development c++
0
105
Member Avatar for jovialbimmer

Hello all. I have to write a java program that allows a user to enter an octal digit and output the binary equivalent for as many numbers as the person wishes using a direct access method. The error is that even though it compiles, the answer (the binary number) continuously …

Software Development java
Member Avatar for JeffGrigg
0
145
Member Avatar for rotten69

Hey, I'm getting this error every time I run my program. I dunno what it means and how to fix it. [code] Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99) at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:113) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) [/code]

Software Development java
Member Avatar for NormR1
0
249

The End.