132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wisorac

Hello! I have a project to where I am making a pizza order for customers. My forms consist of a form for the pizza quantity and size (the cost is displayed in a lblDisplay.Text). I also have another form which calculates the cost of beverages. I am now on the …

Software Development vb.net
Member Avatar for kvprajapati
0
2K
Member Avatar for kvass

Hey everyone~! I am pretty new to threading but I'm trying to figure it out by playing around with its possibilities. I wrote a program where 2 threads are supposed to "race" to count to 10 and then the first one there says "I win!" and the second says "I …

Software Development java
Member Avatar for kvprajapati
0
117
Member Avatar for ZER09

i have a problem in my code when i go to the method add i successfully go there but i cant go back to the main method someone who can help about this. sorry for my bad english. here is the code: [CODE] package project; import java.util.*; import java.lang.String; /** …

Software Development java
Member Avatar for ZER09
0
127
Member Avatar for jamesl22

I'm new here so please bare with me if this is the wrong forum (sorry if it is). I put it here because I believe you can contruct a kernel in c right? I've downloaded the linux kernel and thats full of c source files. Anyway, i've been using windows …

Software Development c linux-kernel
Member Avatar for manutm
0
145
Member Avatar for Hawkpath

Hey, my friend and I made this website: [url]http://www.letslearncpp.forumstech.com/[/url]. This website is complete with text and video tutorials made by my friend and I. Please visit this website and join it if you want to. Thank you.

Software Development c c++ video
Member Avatar for Hawkpath
0
197
Member Avatar for learningpython

Hi I have several directories .. ex uselib is one directory with a file usoc.py and def pars has to be called in the file runner.py. I tried to see the existing ways and implement and obviously confused. So please someone let me know the logic behind calling and having …

Software Development python
Member Avatar for learningpython
0
117
Member Avatar for MrYrm

Hi, i have a program that runs a loop during that loop if the user types lets say "status" i want a status report if the user didn't give any input no status report should be displayed i played around with getline getchar etc but those wait for user input …

Software Development c++
Member Avatar for MrYrm
0
173
Member Avatar for techno_weenie

I need to parse a file line by line and check if the line is in a valid BNF format and print it out if it is. Below is my BNF grammar: <line> ::= <program names><spaces><uids><spaces><dest IPs><spaces><ports> <spaces> ::= <blank character> | <blank character><spaces> <blank character> ::= ' ' | …

Software Development c
Member Avatar for IsharaComix
0
133
Member Avatar for mikeandike

Hi, I would like to terminate a do until ....loop when future value is greater than 1000 without using a Exit or Continue statement. Any suggestions? Thanks [CODE] Do Until inti > intMonths decFutureValue = (decFutureValue + decMonthlyInvestment) * (1 + decMonthlyInterestRate) If decFutureValue > 1000 Then End if inti …

Software Development vb.net
Member Avatar for mikeandike
0
115
Member Avatar for rico.tee

Good day. I need help on a program that I'm working on. It's supposed to take the strings in input.txt and put the odd numbered lines to odd.txt and the even ones to even.txt. here's the code I have made so far... [CODE] #include<stdio.h> #include<stdlib.h> #define p printf #define s …

Software Development c
Member Avatar for abhimanipal
0
154
Member Avatar for Clawsy

Hi, I have an urgent ugly problem. I have a php file on a server that reads the name of the files of a directory from the server and POST them to my java application. When I try to read it, i get [CODE]Server returned HTTP response code: 400 for …

Software Development client-server http-protocol java
Member Avatar for PatrickSharp
0
913
Member Avatar for MrJNV

I'm having issues doing this assignment. I'm not really sure what's wrong, so hopefully someone can help HERE'S THE CODE[CODE] #include<iostream> using namespace std; class Vehicle { private: int Age; protected: float Price; public: Vehicle(); ~Vehicle(); void setAge(int i) { Age = i; }; void setPrice(float i) { Price = …

Software Development c++
Member Avatar for dusktreader
0
108
Member Avatar for akaspro

New to perl and asking for help. I need to execute the following: 1. Extract text between double quotes from text file located in subdirectory of INI directory 2. Search in directory TestData for the file with name that matches the text extracted in 1. 3. Copy the file from …

Software Development perl
Member Avatar for akaspro
0
95
Member Avatar for srinath3

hello c++ pros, iam a c++ beginner please help me with this code..iam unable to get the proper out put.In the above class i have tried to imitate String class and overloaded few operators. I got strucked up as show() method above was unable to print "t3" string properly.Please help …

Software Development c++
Member Avatar for jonsca
0
119
Member Avatar for iammfa

:-/ Now, I'm trying practice on c++ basics, since few minutes I tried practice "for loop" especially, in console screen, I wrote this trivial program to calculate sin angles between angle (0 to 90) with for loop, but when i build it, it gave me one result like my attach …

Software Development c++
Member Avatar for jonsca
0
120
Member Avatar for tikoti

Hi all, I have tried to make a little example of a random number generator for c++. However, as I am quite new in this language I do not know its peculiarities. Here is the code [CODE] //g++ -o ran ran.cpp #include <iostream> using namespace std; int main () { …

Software Development c++
Member Avatar for jephthah
0
474
Member Avatar for techno_weenie

Hello, I'm trying to split a string into 4 separate strings using a delimiter "\n" The initial string is: "/usr/bin/ssh \n * \n 147.188.195.15, 147.188.193.15, 147.188.193.16 \n 22" I would like it to be split up into four different char's so that char *programnames = "/usr/bin/ssh \n" char *uids = …

Software Development c
Member Avatar for jephthah
0
144
Member Avatar for gunbuster363

Just as the title. I want to store some strings inside the program, and later I may store them(the string) in a text file. And I do not want duplicating strings. As I learned from school, I should use a hash table for it, but I may build a bad …

Software Development python
Member Avatar for lrh9
0
107
Member Avatar for abhimanipal

[code=c] int main(int argc, char* argv[]) { int a=3,b=2,c; a=a==b==0; printf("%d\n",a); return 1; } [/code] I cannot understand why this code gives 1 as the answer. According to me , this should be the order of evaluation b==0, which gives false & the expression becomes a=a==0 this should again give …

Software Development c
Member Avatar for IsharaComix
0
115
Member Avatar for kekekerush

Hey all, I have to program a method that is called makelist, and I'm not sure how to program it. If I already have a list in my external file, how would I grab the list from there? I was thinking of infile.get(char) and keep going until it reaches the …

Software Development c++ linked-list
0
62
Member Avatar for petzoldt01

I am newish with python (ActivePython v2.6), and I am trying to automate AutoCAD 2010 (Acad) using module win32com (using acad's COM/ActiveX interfaces). Most of the interface is pretty straight forward, but I am getting hung up on functions that need to use VARIANTS to pass numerical arrays. Im not …

Software Development python
Member Avatar for petzoldt01
0
472
Member Avatar for cubicbox

hi experts I am now writing a procedure for my main program in order to let people search for their required entries (eg. user inputs name and the program returns the name together with the tel no. etc.) The procedure is now in its simplest state as users can only …

Software Development data-structure pascal seo
Member Avatar for FlamingClaw
0
160
Member Avatar for RSP86

Hi, I have a project for Uni, It is to create a system which will allow fingerprint recognition which will allow a user to access a created database and download information to a screen. I have implemented what i want it to look like, now im working on 3 main …

Software Development gui java webcam
Member Avatar for peter_budo
0
174
Member Avatar for HiImBen

[code]using System; class Program { static void Main() { double total_Shipping = 0, total_Weight, standard_Item = 3.00, express_Item = 4.00, over_Night_Item = 5.50, standard_Weight = 1.45, express_Weight = 2.50, over_Night_Weight = 3.00, rate = 0, surcharge_Standard = 2.50, surcharge_Express = 5.00, surcharge_OverNight = 8.00; int shipping_Speed, total_Items = 0; char …

Software Development
Member Avatar for kplcjl
0
136
Member Avatar for gnarlyskim

trying to do input checking for an alpha character inputted where a numeric one is needed. I've implemented this function firstChoice() to allow a certain response is '2' or '3' was picked and then another certain response for anything other than '0 '1' '2' or '3'. I must add another …

Software Development c++
Member Avatar for gnarlyskim
0
442
Member Avatar for taggz19

i don't know how to make 1.6666667 to 1.6 only.. . please someone help me. . please! please! please!

Software Development c++
Member Avatar for peter_budo
0
402
Member Avatar for EvaDo

Hi Guys, This seems easy, it just doesnt seem to work. I want to: loop through each file in a directory. each file contains a number of lines like this ">XXXXX" I want to extract each line that contains this,move it to a new file labelled almost identical to the …

Software Development python
Member Avatar for IsharaComix
0
76
Member Avatar for conord

Firstly - I'm a complete noob when it comes to Python. I'm currently trying to launch an external program called Dazzle from Python with a the path to an xml file as a parameter. I've tried a few different options and can get Dazzle to launch - but the xml …

Software Development python xml
Member Avatar for woooee
0
143
Member Avatar for PixelHead777

I'm trying to find a way to take a list of one-letter strings, for example, ['e', 'n', 'o', 't', 'r'] and find every order possible of these letters. I'll be able to, on my own, target the three words I would want for this, 'noter', 'toner', and 'tenor' (unless the …

Software Development python
Member Avatar for PixelHead777
0
89
Member Avatar for lrh9

I'm having a problem with 'os.path.getmtime'. I've been doing some research into generating '.pyc' files and I am able to retrieve the source modification time (in seconds) as recorded in the '.pyc' file. It is merely the second set of four bytes unpacked as a long integer. [code=Python] import random, …

Software Development open-source python
Member Avatar for lrh9
0
2K
Member Avatar for josh06

I am 12, mad about computers and skateboarding, im an emo, i know it doesnt sound right that i like programming. anyway, i have started learning c++, only just! I would like to know first of all if it is possible that you can build your own operating system with …

Software Development c c# c++ gui operating-system
Member Avatar for josh06
0
118
Member Avatar for beforetheyknew

Hi guys, why wont this work. I'm still learning and have no experience with graphics of any kind. Just trying to put the image onto the background. The link directory is right i think. [CODE] import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import javax.swing.*; //inc javax.swing.ImageIcon public class TheArea …

Software Development image java java-swing
Member Avatar for beforetheyknew
0
98
Member Avatar for bpmccall

I am new to the whole concept of "data binding". What I am trying to do seems very simple, but I don't know where to start. I have a database with an ODBC System DSN and I can connect to it with an ADODB.Connection object. I can also create an …

Software Development visual-basic
Member Avatar for tumadre0
0
1K
Member Avatar for 28daniela28

Hi, I'm working on a C++ mini-project ( I'm having an unoriented graph for wich I have an admissible flow and I have to determine the minimal flow for it). Everithing works fine, it compiles and runs well (the code is below) but I'm using files to read input and …

Software Development c c# c++
Member Avatar for 28daniela28
0
191
Member Avatar for gunbuster363

When I am processing the data, I put them inside some beautiful data structure for convenience, but then again I am done with my work, and I want to save the result in hard drive, I need to store them in a txt file, and for later usage, I need …

Software Development data-structure hard-drive python
Member Avatar for sahiti
0
105
Member Avatar for karismasa

Hi, I would like to write a parser in C#. Lets say I have expression like NOT(NOT(a AND b) OR (c AND d)). I want this to be in Sum of Products for->(a AND b AND NOT c) OR (a AND b AND NOT d). To do that normally in …

Software Development
Member Avatar for ddanbe
0
189
Member Avatar for Shefali

hello all i m new to this topic, though I have some experience of using VB to control excel. I have an access database which has some records. The columns(fields) are first name, lastname, year of birth, city, county, district, state, tel ph number and email id. Now I want …

Software Development display email visual-basic
Member Avatar for Quick-T
0
133
Member Avatar for banders7

A program that handles either piped input (command/prog | your_prog) or file redirected (your_prog < file_name) input. Determine whether such input exists before issuing a stdin read so that the program does not go into a "waiting for input" state. Written in/for the XP environment.

Software Development c
Member Avatar for jivemaster
0
641
Member Avatar for Robbert

Hi - I have tried and tried with this, googled and what knot, but to no avail. I just need the frame to clear. The code below shows the overlay problem which I tried clearing with all types of panel.Clear() / self.panel.Clear() combos etc. [CODE] import wx class MyFrame(wx.Frame): def …

Software Development python
Member Avatar for vegaseat
0
175
Member Avatar for doctorjo5

I need to search for the hours of the day that each email was sent, then I need to create a dictionary from those. Then I need to print the dictionary at the end with the count of how many times an email was sent at each hour. Here is …

Software Development python
Member Avatar for doctorjo5
0
208
Member Avatar for dr.e

Hello.... Can someone tell me why this code doesn't workand how it should be done? DataGridView1.Item(0, 0) = ds2.Tables("tabCeniki").Rows(i).Item(0) this is the error mmgBox ........ Unable to cast object of type 'System.Int32' to type 'System.Windows.Forms.DataGridViewCell'. thx dr.E

Software Development vb.net
Member Avatar for dr.e
0
99
Member Avatar for mrinal.s2008

Hi, While writing program for making a member function of one class a friend of another, VC++ is shooting two errors. The entire code is split across five files, 2 headers for two classes, 2 .cpp for the class members' definitions and 1 containing main() function. The headers are as …

Software Development c++ visual-studio
Member Avatar for Fbody
0
195
Member Avatar for 786979

hi thanks for any help in advance. i'm trying to add a record to a MS Access database(2003) but i recieve this error: Syntax error in update statement i don't know what's wrong with my code but i suspect that the problem lies in this bit of code. [CODE] If …

Software Development vb.net
Member Avatar for kvprajapati
0
100
Member Avatar for mahela007

How do I copy folders using python? Shutil.copy doesn't work. it raises a permission denied error in windows

Software Development python
Member Avatar for svn799
0
114
Member Avatar for tactfulsaint

PLEASE WHAT'S WRONG WITH THIS CODES, I KEEP GETTING ERROR AT THIS STAGE [CODE]String result = ci.insertDetails(cid, name, dateOfBirth, String.valueOf(cms.getSelectedItem()), address, city, state , zcode, cnum, nod); String day = String.valueOf(d.getSelectedItem()); String month = String.valueOf(m.getSelectedItem()); String year = String.valueOf(y.getSelectedItem()); String ms = String.valueOf(cms.getSelectedItem()); String dob = year + "-" + …

Software Development cms java java-swing
Member Avatar for javaAddict
0
189
Member Avatar for stumbler

Hello, In the tread [url]http://www.daniweb.com/forums/thread122708.html[/url] there is shown how to do this check in .net 3.0 framework. Is there a possibility to do the same in .net 2.0? Thanks for your reply

Software Development asp.net printer vb.net
Member Avatar for stumbler
0
81
Member Avatar for eaon21

please help me.. this will be pass in less than 5 hours... i dont know what is the problem, it seems correct ... but why the error??? it says use of unassigned local variable totcc,mdue, numpayadd [code] using System; using System.Collections.Generic; using System.Text; namespace ACTIVITY_1_WEEK_5 { class Program { static …

Software Development
Member Avatar for Geekitygeek
0
235
Member Avatar for yila

two static arrays size 10 need to be copied to an empty target array size 20. like this: you copy from the first array the nums till arr1[i] = 0 then you switch to the second array and copy to the nums till arr2[i] = 0. then you switch back, …

Software Development c
Member Avatar for yila
0
162
Member Avatar for barathy

Can u pls post some of the links helpful to create front end design using visual basic and few code examples for a single base station with many number of receivers

Software Development visual-basic
Member Avatar for abu taher
0
328
Member Avatar for carylle

i am creating billing system and i need to display daily and monthly billing reports. can you help me in displaying the billing reports using select statement? thanks.

Software Development display
Member Avatar for carylle
0
96

The End.