132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for LiBOC

Dear all, Background: Rabbit Microcontroller. Accessing the board via Telnet. TCP/IP Uses VT100 Emulation Telnet. I had been thinking how do I check whether a user had keyed in an UP ARROW. I tried to do a HEX key capture and they returned me 3 HEX numbers. I am using …

Software Development c
Member Avatar for jephthah
0
312
Member Avatar for Clockowl

Hey guys, I got this code, and I can't get it to compile, no clue what I'm doing wrong. [code=cpp]#include <iostream> #include <vector> #include <iterator> using namespace std; template <class T> void kill_dupes(vector<T> &x){ vector<T> y; for(vector<T>::iterator it = x.begin(); it != x.end(); it++){ if(find(x.begin(), x.end(), *it) == x.end()){ y.push_back(*it); …

Software Development c++
Member Avatar for siddhant3s
0
2K
Member Avatar for Dewey1040

There is a famous mathematical conjecture called the Goldbach conjecture, that every even integer greater than 2 has the property that it is the sum of two prime integers. Write a C program that will prove that this conjecture is true for even numbers between a START value and a …

Software Development c
Member Avatar for Aia
0
121
Member Avatar for guano

Dears, I am staring to learn python/wxpython in order to make an app aimed at structural geology analysis. As usual, I am starting with something simple, and after I get the way of it, make it more complex. The idea is (what I have running so far): a window with …

Software Development pdf python
Member Avatar for scru
0
529
Member Avatar for daviddoria

I need to get an unknown number of file names from the command line, ie ./python MyScript.py --Files 1.txt 2.txt 3.txt [code] parser.add_option("-n", "--NumFiles", type="int", help="Number of files") parser.add_option("--Files", nargs=options.NumFiles, help="a triple") (options, args) = parser.parse_args() [/code] Clearly this will not work because options.NumFiles is not available until after parse_args() …

Software Development python
Member Avatar for daviddoria
0
197
Member Avatar for daviddoria

I want to parse some simple arguments from the command line. This shows all of the arguments: [code] #!/usr/bin/python import sys #print all of the arguments for arg in sys.argv: print arg [/code] but I want to handle something like [code] --file a.txt [/code] or [code] --x 12 --y 13 …

Software Development python
Member Avatar for jlm699
0
111
Member Avatar for Grn Xtrm

Hello, I'm facing another problem with vectors, this time with the problem of converting infix to postfix. The compile process completes, but I recieve an error after I enter the infix expression. Here is the exact error I recieve: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 43 >= 2 at java.util.Vector.removeElementAt(Vector.java:511) at …

Software Development java
Member Avatar for Grn Xtrm
0
142
Member Avatar for serkan sendur

i have the following code : [CODE]static IScanningService scanningLayer = null; public static IScanningService BarcodeReader { get { if (scanningLayer == null) { string serviceName = GetServiceName(); try { if (deviceService == null) deviceService = Assembly.Load(serviceName); object o = deviceService.CreateInstance(serviceName + ".BarcodeReader"); scanningLayer = o as IScanningService; scanningLayer.AutoStartScan = Global.device.AutoStartScan; …

Software Development assembly
Member Avatar for serkan sendur
0
116
Member Avatar for cherryduck

Hi everyone, I'm making a program to store library books details, my constructor is such: [CODE]public Book(String author, String title, String publisher, int year)[/CODE] and I'm using an array to store and number the books and details, as such: [CODE]for(int i = 0; i <= 100; i++) { String book[i] …

Software Development java
Member Avatar for cherryduck
0
132
Member Avatar for rania_s

please i need help because i am beginner in c progtamming! i want in selection 1 to intrance grades from keyboard in array[7],from 0 to 10. in selection 2,that grades are display and the average of them. in selection 3 i want to sort them with bubblesort function,inside the code. …

Software Development c
Member Avatar for Ancient Dragon
0
112
Member Avatar for vazzdoin

Hi i want to read the colon separated values from a file as given below. Name : VIjay city : XYZ Address : ABC etc etc . . these are the entries in a file and i want to read and save the name and age ie,vijay, XYZ etc etc …

Software Development c++
Member Avatar for vazzdoin
0
86
Member Avatar for rwkingv

Hi, I am relatively new to C# Express and have created an app that builds & runs fine. But when I try to publish it, I get the following messages: 1)Cannot publish because a project failed to build. 2)SignTool reported an error 'Failed to sign bin\Release\TeacherCSharp.publish\\setup.exe. SignTool Error: Signtool requires …

Software Development c#
Member Avatar for rpsrikanth
0
342
Member Avatar for qaokpl

I'am trying to build a website and I want to make some things auto mated. I only know html nothing else. A freind of mine make a site similer to what I'am doing but used perl. I want to know more and I can't tlak to this guy anymore.

Software Development perl
Member Avatar for ghostdog74
0
173
Member Avatar for pandytheprince

Hi I first i new here hope this correct place to post. I currently making a 3dsmax load which converts a 3ds file to direct x file so it can be loaded. My problem is that i using a old .exe file called conv3ds.exe which when used in cmd would …

Software Development c++
Member Avatar for pandytheprince
0
268
Member Avatar for xcorpionxting

I need to write a function in C++ that does the following: -Reads an audio file as input (preferably in Mp3 format). -Calculates the average frequency (Hz) and the tempo (bpm) of that file. -Stores the average frequency and tempo for future use. Any idea on how to write such …

Software Development audio c++
Member Avatar for Nick Evan
0
154
Member Avatar for turbomen

Dear Sir, The following is a simple program in Delphi. Could you tell me the meaning of the colour in red. program Negatives; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var balance, posNeg:integer; begin randomize; writeln ('Generating your bank balance'); writeln ('Please wait .....'); sleep (2000); create a random number between 0 …

Software Development delphi pascal
Member Avatar for FlamingClaw
0
98
Member Avatar for turbomen

Dear Sir, The following is the very basic programme, but I often miss the comma and delimiter which is red in colour. Could you express the meaning of this? program AgeCalculator; {$APPTYPE CONSOLE} uses SysUtils; var age, months, days, hours: integer; begin writeln ('How old are you?'); readln (age); writeln …

Software Development pascal
Member Avatar for FlamingClaw
0
128
Member Avatar for frozon

hi am new to java and have a problem in displaying the x and y points on the graph to solve this ax3+bx2=x+d=0 here is the code import java.awt.*; import javax.swing.*; import java.awt.event.*; /** * PROGRAM: Cubic * DESCRIPTION: This program solves the cubic Equation for a given range of …

Software Development java java-swing
Member Avatar for frozon
0
121
Member Avatar for turbomen

Dear Sir, The following is a good example of Pascal. I understand the font with red in colour is the location of display into screen but could you express the meaning of sales1:7:2, sales2:9:2, sales3:9:2, sales4:9:2, sales5:9:2, sales6:9:2?? Cheers, uses crt ; var sales1, sales2, sales3, sales4, sales5, sales6, total_sales …

Software Development pascal
Member Avatar for FlamingClaw
0
121
Member Avatar for pyscho

can someone plz help prog that allows the user to accept 2 end points (using mouse) and draws a rectangle between 2 points (using AWT Frame class and mouse listeners) 2.accepting two strings as comand line argumnts and append both. 3.a prog for accepting string from user. i am a …

Software Development java
Member Avatar for pyscho
0
90
Member Avatar for curtissumpter

Hello, I have this piece of code. [code=java] private Vector getColumn(ResultSet rs) throws SQLException { Vector row = null; ResultSetMetaData rsmd = null; boolean moreResults = rs.next(); if (moreResults) { row = new Vector(); rsmd = rs.getMetaData(); do { switch(rsmd.getColumnType(1)) { case Types.VARCHAR: row.addElement(rs.getString(1)); System.out.println(rs.getString(1)); break; case Types.INTEGER: row.addElement(new Integer(rs.getInt(1))); …

Software Development java mysql
Member Avatar for masijade
0
128
Member Avatar for mhangman

Hi, Im trying to write an irc client with python. This is its login page(i hope it will be) [CODE] #!usr/bin/env python # -*- coding: utf8 -*- import gtk, sys, socket class PyApp(gtk.Window): def con(self): iserver = self.entry.get_text() inick = self.entry2.get_text() room = self.entry3.get_text() password = self.entry4.get_text() socket.server = iserver …

Software Development client-server python
Member Avatar for mhangman
0
102
Member Avatar for tomkeeee

[code=c] // lokalasss.cpp : Defines the entry point for the application. // #include "stdafx.h" /*int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. return 0; } */ //////////////////////// [/code] // ddd.cpp : Defines the entry point for the console application. // [code=c] #include …

Software Development c++ ios os-x
Member Avatar for tomkeeee
0
166
Member Avatar for group256

Hello everyone, I'm pretty new here. I'm facing a problem, the compiler says "Segmentation fault". Please take a look at the code and tell me where I'm going wrong. I tried hard to figure it out, but I couldn't. Thanks a lot. [code] int **PointerArray; *PointerArray = new int [LENGTH]; …

Software Development c++
Member Avatar for group256
0
166
Member Avatar for nawa

I worte a code for Palindrom and i am receiving error message could someone tell me where is the mistake is? thank you. Dim i As Integer Dim word As String = wordTextBox.Text Dim testWord As String Dim reverseWord As String Dim testChar As String Dim maxIndex As Integer maxIndex …

Software Development vb.net
Member Avatar for Teme64
0
102
Member Avatar for mitchandsuzy

hi everyone, I have searched for and answer to this and cannot find any solution. So please forgive me if it is a straight forward answer! I have a module that is imported. It has a number of subroutines inside it that need to be run, one for each year. …

Software Development python
Member Avatar for mitchandsuzy
0
89
Member Avatar for Uday2009

I am trying to create a stock management system. I have created a table with the following fields ProductID, Date,Product name, opening stock, Production, desptches, closing stock. Now my problem is how do I make the closing stock of the previous day or record be automatically transfered as the opening …

Software Development visual-basic
Member Avatar for Uday2009
0
209
Member Avatar for nexocentric

I'm using the following link to learn how to pass VB string arrays to a C/C++ dll for editing. [url]http://support.microsoft.com/kb/118643/EN-US/[/url] The problem I'm having is, where is the vbapi.h? I've searched my hard drive for it and found nothing. I've also searched the net for where it could be possibly …

Software Development c++ hard-drive
Member Avatar for nexocentric
0
195
Member Avatar for Buckets78

Let me start out by saying I've been playing with Python for a few weeks now, was recommended by a friend who uses Perl, and it's been quite enjoyable to play with. I've no other programming experience except HTML/CSS. This site has been a wealth of information and an excellent …

Software Development html-css perl python
Member Avatar for Buckets78
0
89
Member Avatar for Fouly

Hi, I tried the following snippet of code [code] BEGIN_MESSAGE_MAP(CSpeechDlg, CDialog) //{{AFX_MSG_MAP(CSpeechDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_BUTTON_VOICE_TRAINING, OnButtonVoiceTraining) ON_BN_CLICKED(IDC_BUTTON_MICRO_SETUP, OnButtonMicroSetup) ON_BN_CLICKED(IDC_BUTTON_SPEAK, OnButtonSpeak) ON_BN_CLICKED(IDC_BUTTON_ABOUT, OnButtonAbout) //}}AFX_MSG_MAP ON_MESSAGE(WM_RECOEVENT,OnRecoEvent) END_MESSAGE_MAP() [/code] but i got an error at this line: [code] ON_MESSAGE(WM_RECOEVENT,OnRecoEvent) [/code] the error is : [code] Error 1 error C2440: 'static_cast' : cannot …

Software Development c++
Member Avatar for Fouly
0
359
Member Avatar for hi.meral

well, i am developing a desktop application in c#.net here i want to trash the unique information of the perticular computer like a harddisc serial no, or procesor or motherboard serial no. by which i can allow the software for that perticular pc only. How can achive ??

Software Development c#
Member Avatar for MosaicFuneral
0
162
Member Avatar for madeindadex305

First class mail has no insurance, and costs $1 plus 17 cents for each ounce up to a maximum of 13 ounces. The first trick here is that your weight is stored in pounds and the description of the cost formula is in ounces. You do remember how to convert …

Software Development java
Member Avatar for darkagn
0
126
Member Avatar for max.yevs

I'm trying to make a perfect numbers script but having almost no success... Perfect numbers are those whose factors add up to twice the number itself... factors don't have to be prime... So like the first four are 6, 28, 496, 8128... 28: 1,2,4,7,14,28 1 + 2 + 4 + …

Software Development python
Member Avatar for max.yevs
0
207
Member Avatar for helixkod

I am trying to create random rectangles and ovals. This is what i ahve so far: [CODE]import java.awt.Color; import java.awt.Graphics; public class MyRectangle { private int x1; private int y1; private int x2; private int y2; private Color myColor; //constructor with input values public MyRectangle( int x1, int y1, int …

Software Development java java-swing
Member Avatar for helixkod
0
129
Member Avatar for ihatehippies

The question is in the title. How do you create a list r = range(5) and just reference the data without referencing the object itself. ie. o = r .. I just want to reference range(5) without referencing r itself. if i did o.pop(0) it likewise does r.pop(0) ...ideas?

Software Development python
Member Avatar for ihatehippies
0
80
Member Avatar for jmil2

I am working on a problem that requires that i create a 3x3 matrix in python using the list function. these are the functions that im required to use to create my matrix: def mlist(size): list = [] for i in range(size): list = list + [None] return list def …

Software Development python
Member Avatar for adam1122
0
8K
Member Avatar for JAGgededgeOB172

Hi all, My program is supposed to read data from an input file and position the read data into an AVL tree - in alphabetical order. My output at the end is supposed to show each node in this format... i.e. (Current, Current->LeftChild (could be NULL), Current->RightChild (could be NULL), …

Software Development c++
Member Avatar for nucleon
0
176
Member Avatar for alicem

Hi, I'm a beginner, and just want to display an image using Python. I have this code... [code]from PIL import Image Image.open("pic.jpg").show()[/code] which according to what I've read, should work. However, it just opens Windows Photo Gallery and says 'There are no photos or videos selected'. I have ensured that …

Software Development image python
Member Avatar for alicem
0
73
Member Avatar for Bill Purkins

Using VB 2008, I am stumped. I have a fillby and getdataby table adapter query that does a SELECT COUNT from FILENAME where fieldname = textbox and I want to use the number of rows returned, but can't figure out how to reference it. This seems so simple, but I …

Software Development vb.net
Member Avatar for dgmdaily
0
127
Member Avatar for Stefano Mtangoo

Just a curious Question. What do you prefer, QT or wxWidgets? How do compare the two in terms of: 1. Nativity 2. Easiness to learn 3. Documentation 4. Weight (The size in MB) 5. Licencing 6. Any other factor(AOF) Thanks all!

Software Development c++ qt
Member Avatar for NicAx64
0
440
Member Avatar for Philmagrill

I am creating a program in c that finds out the weather and changes the desktop background accordingly. So far i have managed to connect to the internet and DL the bbc rss feed to the file, which i can then open up. I have almost managed to get it …

Software Development c xml
Member Avatar for jephthah
0
109
Member Avatar for Exussum

I'm writing a command-line tic-tac-toe game and i've encountered a problem in my helpMenu() function, whenever i recursively call the function with an argument, the cin.get() pause ceases to work. Any help appreciated, thanks. The following is my test.cpp file, whenever i write some new function i always put it …

Software Development c++
Member Avatar for ArkM
0
154
Member Avatar for ellimist14

Ok I'm going to try to be as specific as possible. Here's my input file (at least to some effect): [code] #'s searched 1 3 3100 56801 .52 87925.32 2 Mitchell 1 boudreax 2 1 4 5480 56825 .81 68939.09 0 1 5 8520 56829 .89 10892.40 3 guillott 3 …

Software Development c++ file-stream file-system
Member Avatar for ellimist14
0
98
Member Avatar for Duki

Hey everyone, I'm trying to work with Sets. I have a function [I]Union[/I] that takes a class type [I]Set[/I] as it's parameter. The function returns the union of class A and B. Here is my code: [code=c++]Set Set::Union(Set setB) { Set result (maxItems); for (int i = 0 ; i …

Software Development c++
Member Avatar for Duki
0
300
Member Avatar for sammyk

Hello everyone, I really need some help with this project I am working on. So I need to go through a text file to search for a particular string (say something like 'play') and then if that word exists in a line I need to find a string after that …

Software Development c++
Member Avatar for sammyk
0
102
Member Avatar for alicem
Member Avatar for Sky Diploma

Hello all, I am solving some of the exercises in a new book of C++ I am having trouble in declaring [quote=THE C++ BOOK]A Reference to a array of 10 Integers[/quote] Its on the 19TH and 30th line. I have the total code over here. [code=c++] //Declarations for all the …

Software Development c++
Member Avatar for MrSpigot
0
260
Member Avatar for planetPlosion

I'm getting seemingly unfounded errors with this seemingly easy program.. the variables "guess" and "i" are user input [code] for guess in range (i): float(guess + float(x / guess)) / 2 print guess [/code] I'm getting: ZeroDivisionError: integer division or modulo by zero

Software Development python
Member Avatar for jlm699
0
156
Member Avatar for Crago3

[code=cplusplus] // Josh Crago_Chapter 7 Programming pg 458, # 7 #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { char again; do { // Define the varibles char letter = 0; const int SIZE = 81; char line[SIZE]; const int maxLowercase = 122; const int minLowercase = …

Software Development c++
Member Avatar for Narue
0
177
Member Avatar for LindseyV

<code> Hi there. I am trying to use soap in my access database and am following [url]http://www.aspfree.com/c/a/VB.NET/Calling-a-Web-Service-using-VB6-with-SOAP-30/2/[/url] to help me learn it. I followed the tutorial exactly and when I run my access forum, I get object required on Option Compare Database Private Sub Command1_Click() Dim client As Object Set …

Software Development coldfusion vb.net visual-basic
0
82

The End.