132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nandu Das

WAP to read 'n' numbers and print the biggest and smallest number. Pls help me with this. The program should be done with without using arrays.......

Software Development c++
Member Avatar for NathanOliver
0
197
Member Avatar for fekioh

Hello, I need to store data in large lists (~e7 elements) and I often get a memory error in code that looks like: [code=python] f = open('data.txt','r') for line in f: list1.append(line.split(',')[1]) list2.append(line.split(',')[2]) # etc. [/code] I get the error when reading-in the data, but I don't really need all …

Software Development data-structure python
Member Avatar for ultimatebuster
0
2K
Member Avatar for gahhon

how can i use the switch statement to find a value in a range? example like, [CODE]#include <stdio.h> void main() { int monthly_sales; double monthly_income; printf("Enter your monthly sales amount > "); scanf("%d", &monthly_sales); switch(monthly_sales) { case 50000: // i want make this in a range, greater than or equal. …

Software Development c
Member Avatar for Adak
0
178
Member Avatar for denguru4

Hi, i was trying to use the fstream library to create a programme that serves someworth like a data base i.e it stores some information that will be used in the shortest possible time but the problem is that it does not work for me does any one have an …

Software Development c++
Member Avatar for denguru4
0
71
Member Avatar for acrocephalus

Hello! I am trying to creat an "About box" with wxpython. I have defined this function [CODE]def OnAboutBox(self, event): info = wx.AboutDialogInfo() info.SetIcon(wx.Icon('icons/exit.png', wx.BITMAP_TYPE_PNG)) info.SetName('Watermark Image Processing') info.SetVersion('1.0b') info.SetDescription(info) info.SetCopyright('(C) 2010 Daniel Valverde') info.SetWebSite('http://www.acrocephalus.net') licenseFile = open('license.txt') info.SetLicence(license) info.AddDeveloper('Daniel Valverde') info.AddDocWriter('Daniel Valverde') info.AddArtist('Daniel Valverde') info.AddTranslator('Daniel Valverde') wx.AboutBox(info)[/CODE] I know that …

Software Development python
Member Avatar for acrocephalus
0
433
Member Avatar for Jollyyy100

Hi, can anyone help me with the code for a print button in vb.net. I tried researching on the code but could not find it, can anyone help me out. PLease and Thanks...

Software Development gui vb.net visual-basic
0
104
Member Avatar for miturian

So, I am sure everybody has been here, but just to describe it properly, a short story: I am writing a (to me) somewhat complicated program. By changing the input parameters I suddenly start getting a run-time error. After several hours of placing more or less meaningful printing-commands around the …

Software Development c++
Member Avatar for miturian
0
151
Member Avatar for yup790

I have noticed that there isn't a thread where you are given puzzles. So i going to change that! Your puzzle is to make an exacutable c++ program that outputs "hello world" 20 times (try to be exciting). Rules: it has to be c++ it has to work I look …

Software Development c++ gaming
Member Avatar for mrnutty
0
221
Member Avatar for nssltd

Hi sorry about this kind of nooby question but i have started learning java and i am making a Chat Application, i am making it using the killer game programming in java book. But i have ran into a problem. The Code asks me to import [CODE]import javax.servlet.*; import javax.servlet.http.*;[/CODE] …

Software Development client-server ide java java-netbeans
Member Avatar for Ezzaral
0
132
Member Avatar for Ultratermi

Hey. Ive searched for a while now and Im finding every time the same. -> e.g. [url]http://www.daniweb.com/forums/thread223715.html[/url] Okay - sounds good. Its transparent, but not click through-able. Why? In the thread I wrote above it is. I found many other sites which tell me the same. It should be click …

Software Development visual-studio
Member Avatar for Ultratermi
0
77
Member Avatar for newton_LA

C program to construct a divided difference table for f(x) = cos x based on five points which are 0,1,2,3,4. Use the coefficient ak (k, cos k). Round up to 7 decimal places. Derive p1(x), p2(x), p3(x), p4(x). Please I need any help I can get on this program. Whatever …

Software Development c c# c++
Member Avatar for tito4life
0
1K
Member Avatar for musicalsailor

I'm running on a Linux machine and can't get FTP uploads working. Here's my script: HOST='ftp.name.com' USER='username' PASSWD='mypwd' FILE='f1020811' DIR='/data_dir/send' echo ************************************************************** echo * Attempting FTP * echo ************************************************************** ftp -n -u -d ftp.name.com <<END_SCRIPT quote USER $USER quote PASS $PASSWD put f1020811 END_SCRIPT I noticed using $HOST was rejected. …

Software Development shell-scripting
Member Avatar for musicalsailor
0
98
Member Avatar for Danny_501

Hi all, I need to get a random number from the following: [CODE]#define RAND(min,max) ((min)+(int)((double)(max-min+1)*rand()/(RAND_MAX+1.0)))[/CODE] but when I print it out it just prints the value of min. [CODE]printf("%d", RAND(10000000,99999999));[/CODE] please help! thanks in advance.

Software Development c
Member Avatar for Danny_501
0
144
Member Avatar for Tarkenfire

Okay, so in all honesty, I began learning Python about 2 days ago, so this is a rather noobish question(well, I've programmed in other languages, so it's not THAT noobish), but I'm making an IRC bot and can't figure out how to make it so that a line of code …

Software Development multithreading open-source python
Member Avatar for Tarkenfire
0
216
Member Avatar for mrkaran

i have a code to check lexeme is keyword or not: [CODE]void Is_Keyword_Or_Not() { char *keywords[]={"INCLUDE","VOID","MAIN","i","var","cin","cout","if", "then","else","and","or","not","loop","exit","when", "while","until"}; int j=0; flag=0; for (j=0;j<18;j++) //search for keyword & # of keywords = 18. { if (strcmpi(lexeme,keywords[j])==0) { temp.assign(lexeme,INCLUDE); flag=1; break; } } } [/CODE] i have defined macros like: INCLUDE 1 …

Software Development c++
Member Avatar for mrkaran
0
88
Member Avatar for cyman73

Hello all, How can the sound card be Enabled/Disabled with Vb Code? Is this possible through API call? or maybe registry edit? My app. needs to disable sound card while running then enable afterward. This app will be running on a dedicated system. Using "black box" object. The object's method …

Software Development api visual-basic
Member Avatar for samju
0
268
Member Avatar for Mylsamy

Hi all, I want to display the Number values instead of String. For example, if the User gives the Input as fifty, i displayed the Output as 50. Is any existing method in Java to call for displaying Numbers? Or how can i solve this problem? Thanks in advance and …

Software Development java
Member Avatar for javaAddict
0
136
Member Avatar for Aanchal89

[code]import java.sql.*; import javax.sql.*; import javax.swing.*; import java.applet.*; import java.awt.event.*; import java.awt.*; public class Display extends JFrame implements ActionListener { JLabel l1; JTextField t1,t2; JButton b1,b2; public Display(String s) { super(s); l1 = new JLabel("user name"); b1 = new JButton("submit"); b2 = new JButton("reset"); t1 = new JTextField(20); t2 = …

Software Development java java-swing
Member Avatar for JamesCherrill
0
105
Member Avatar for JamesCherrill

I have a problem involving Generics. Here's a simplified version: Suppose I have a generic method to add a new element to a (possibly empty) ArrayList, like this: [CODE]<T> void addNewTo(ArrayList<T> list)[/CODE] What I need to do is to determine the correct class for the ArrayList elements so as to …

Software Development java
Member Avatar for JamesCherrill
0
192
Member Avatar for NT.

Hi, I have a question regarding compilation. I am having 2 classes and one class basically uses another class. Let's say for instance we have 2 classes A and B. Now class B have something like this: Class B { public void x() { A a= new A(); a.getSomething(); } …

Software Development java
Member Avatar for JamesCherrill
0
90
Member Avatar for scheatham

I'm having trouble with adding multiple records to a table in access. The fields are number (data type) and I can't change them due to the relationships needed for a query used to calulate amounts. Here is the cade I have currently maybe someone could help me out with this …

Software Development visual-basic
Member Avatar for scheatham
0
121
Member Avatar for MARKAND911

I want to rollback an installation Programmatically using C#.

Software Development
Member Avatar for MARKAND911
0
108
Member Avatar for snivas519

I have written the inbuilt gets() and puts() function.... Can anyone help me to make it much more simpler...

Software Development c
Member Avatar for snivas519
0
260
Member Avatar for Andy_Parr

Hi, I have a database linked to my VB.NET project using the data source wizard. I've created a log in form using a table in access that has the details required to log in. The code is: [CODE]Imports System.Data Public Class Form1 Dim conn As OleDb.OleDbConnection Dim strSQL As String …

Member Avatar for NoOneSpecial
0
458
Member Avatar for clement99

Hi guys, i'm trying to extract the data "Lady Gaga Fame Monster" from the html below using substr and find, but i wasn't able to retrieve the data. [code=html]<div class="album-name"><strong>Album</strong> > Lady Gaga Fame Monster</div>[/code] I'm tried to extract the whole string first, but i can only extract till <strong>Album</strong> …

Software Development c c# c++ html-css
Member Avatar for clement99
0
725
Member Avatar for GAME

Hello, I have the code in the snippet that takes a long time to display and image. Whats the best way, I can optimize the response speed? [code] private void _GetImage(string text) { try { string html; using (WebClient wc = new WebClient()) { //Set the game's title ID page …

Software Development
Member Avatar for GAME
0
340
Member Avatar for tots08

Hey guys, Just needing your help on this code. [code=c] #include <stdio.h> int main() { FILE *fin,*fout; char c; fin=fopen("input.img","rb"); fout=fopen("output.img","wb"); while ((c=fgetc(fin))!= EOF) { fputc(c, fout); } return 0; fclose(fin); fclose(fout); } [/code] I'm trying to unscramble a scrambled image and this just outputs nothing. Would you guys be …

Software Development c
Member Avatar for tots08
0
264
Member Avatar for gcnwador

I have two forms and I want one form to display in its Gridview, a data obtain from the combobox of the other form. How do I do that? I hope I make sense

Software Development
Member Avatar for alonso_siang
0
404
Member Avatar for cak

Hi...This is Chetana!!! My mini-project topic for T.E.I.T is 'Inventory Control System'. I need help for forms to be made for it in vb6.:confused::?: Please help me exactly what forms to be included in my project.:S Please help...

Software Development visual-basic
Member Avatar for abu taher
0
87
Member Avatar for jemz

hello can you help me please,my problem is that i don't know how to format numbers when the user input this 1500 it should display 1,500.00 and having total paid 3,080.00 please help me hoping for your positive responds...thank you in advance...

Software Development c
Member Avatar for jemz
0
117
Member Avatar for xcyrus_tan_rx

Guys will you pls help me make a calendar turbo c program? the program prompts the user to enter a month in integer form from 1-12 only (1-12 refers to month) and also prompts the user to enter year from 1980 - 2010 only if you enter an invalid integer …

Software Development c
Member Avatar for cutejhomz
0
106
Member Avatar for daredevil786

printf("\"My salary was increased by 15%%!\"\n"); why this prints "My salary was increased by 15%!" i think it should print %% instead of %

Software Development c
Member Avatar for MareoRaft
0
123
Member Avatar for jiraiya

Hi everyone, I'm having trouble inserting icons into a textpane and I'm not sure why. I'd like to set up a textpane and then be able to insert and display images in that textpane during runtime. As a test I've written the code below for a simple GUI with a …

Software Development gui java java-swing
Member Avatar for tong1
0
212
Member Avatar for amishraa

[B]Create a project that contains a Pet class. Each object will contain pet name, animal type, breed and color. The form should contain text boxes to enter the information for the pets. A button or menu item should display the pet information on a separate form. Hint: Use a ReadOnly …

Software Development asp.net vb.net
Member Avatar for amishraa
0
297
Member Avatar for emmas4impact

Hello guys, I am working on a project that deals with a store. but here is my problem i am having problem inserting multiple record into the database instead my code is summing it up. Can anyone give me an idea on how to insert multiple record into a database. …

Software Development java
Member Avatar for emmas4impact
0
3K
Member Avatar for indr

hi i am trying to use setw with a string.. here is my code.. [CODE]string a="hello"; cout<<setw(10)<<a;[/CODE] i inserted string header and iomanip header files... now my output should be with a few number of blank spaces and then it should print hello.. but its not working for me... could …

Software Development c++
Member Avatar for indr
0
444
Member Avatar for mariner92689

Hey everyone, I am developing code to accept TCP communcations from one computer to another. Basically from this forum, all I need is the ability to send a data string to the other computer. here is the code I have to do so. they both are the same application, but …

Software Development c# socket-programming tcp-udp
0
126
Member Avatar for sangoku

Hy i Know it is not on English but could somone take a look on my code and tell me what I am doing wrong.... [CODE] #include <iostream> #include <fstream> //ukljucujemo cstring biblioteku koja omogucava napredne operacije sa stringovima #include <cstring> using namespace std; #define VELICINA 40 //fixsno definisemo vlisicinu …

Software Development c++ file-stream ios
Member Avatar for sangoku
0
393
Member Avatar for frogboy77

Hey there. Just beginning to learn c++ on my own(not easy). Please fogive my lack of knowledge. I have a list of large numbers(50 digits) that i copied. I want to split them into an integer array of size [100][50]. I dont want to have to go through and put …

Software Development c++
Member Avatar for frogboy77
0
128
Member Avatar for PythonNewbie2

Hey guys, I'm parsing some XML using minidom and whenever a comment has a "--" within it, I get an ExpatError. For example, a file may be like this: [CODE] <Label> Hello!</Label> <!-- The above label says Hello. -- It is clear, no? Let's try spicing it up a bit. …

Software Development python xml
Member Avatar for snippsat
0
2K
Member Avatar for mrs.r

Hey can someone please tell me what kind of variables i should use when making a class mark program ? thanks :)

Software Development pascal
Member Avatar for mrs.r
0
147
Member Avatar for tat2dlady

I have a file, which I have read, and need to print a parse tree for it. What I am doing is a syntax checker only for open and close parentheses (). If the item read is a open parentheses, I put it on a stack. If it is a …

Software Development perl
Member Avatar for mitchems
0
271
Member Avatar for Viasur

Hello all. First I have to let you know that Im a total newbie trying to understand Python using the book 'A byte of Python'. I'm following everything on that book and is been kind of fun until OOP (object orient programing). Im getting an error in most of the …

Software Development oop python
Member Avatar for Viasur
0
1K
Member Avatar for MARKAND911

I have written a code in row_validating event which works fine. now I want to clear this rows containing error in cells of datagridview. I tried this code. [CODE] private void grdvEnergy_RowValidating(object sender, DataGridViewCellCancelEventArgs e) { e.Cancel = true; datagridview1.Rows[e.RowIndex].ErrorText = "Error message"; } private void btnclear_Click(object sender, EventArgs e) …

Software Development c#
Member Avatar for nick.crane
0
2K
Member Avatar for jwebb

Hello, I'm trying to create a program to calculate the factorial of variable int input. I am using xcode, and it's giving me an error saying "factorial was not declared in this scope" on the line within the else statement. I have found other programs on the internet, but I …

Software Development c++ ide
Member Avatar for jwebb
0
676
Member Avatar for selfrules

anybudy can explain how do i connect my weight machine to pc...to calculate the weight of the object in pc.....

Software Development java
Member Avatar for NormR1
0
119
Member Avatar for sfuo

Hey guys I have come up with a solution for the problem I have but I would like to know how I could do this the way I initially had it set up but without the leak of course. vec3f.h [CODE]class vec3f { public: GLfloat _x, _y, _z; vec3f(){}; vec3f( …

Software Development c++ opengl
Member Avatar for mike_2000_17
0
158
Member Avatar for dinkpwns

Hello everyone, I currently have an application that reads in an entire excel file then iterates through the records from the file and queries our database for a match. If a match is found the record is ignored if a match is not found the record gets added to the …

Member Avatar for dinkpwns
0
168
Member Avatar for prince26121991

[CODE]Memory of a variable or object automatically terminated of finish at the end of program than why we use destructor?[/CODE]

Software Development c++
Member Avatar for Lusiphur
0
3K
Member Avatar for SeanC

I'm creating a word processor similar to Microsoft Word (but much simpler). I'm having a problem with a dialog box. When a user presses the 'new document' button, it prompts the user to enter the file name, and when the user does so, he presses ok, and the file name …

Software Development java
Member Avatar for SeanC
0
153

The End.