43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cassyjack

Can someone take a look at this. Create a method called findElement, which takes an integer value and a two-dimensional integer array as inputs and returns true if the value is in the array. If the value is not in the array, the method should return false. This is what …

Software Development java
Member Avatar for Infarction
0
154
Member Avatar for iaaan

Hey everyone, this is my first post. I have viewed these forums alot in the past for C++ help and it has helped me out alot, however I have reached a problem myself. I have been doing C++ since last September and until then i was a complete newbie at …

Software Development c++ first-post
Member Avatar for iaaan
0
146
Member Avatar for stan yost

Could someone please suggest a way I can get the following sub to work? I'm trying to check to see if a field in a datagrid has been changed. I get runtime error 424 Object Required. Thanks [Private Sub DbGrid1_BeforeUpdate(Cancel As Integer) If DBGrid1.Columns(1).Value.DataChanged = True Then ' Check for …

Software Development visual-basic
Member Avatar for stan yost
0
105
Member Avatar for cassyjack

Can someone please take a look at this for me. I have to create a program that models a simple card game. I have to shuffle the card and deal 1 card at a time and display the card that I have dealt. Not sure how to do this. The …

Software Development java
Member Avatar for peter_budo
0
308
Member Avatar for bluecat

I'm making a shape editor. When I choose the circle button if I press the mouse button it appears a circle in the form, if I choose the square button it appears a square in the form. But I have to do an MDI Application with this. When I want …

Software Development c c# c++
Member Avatar for bluecat
0
148
Member Avatar for tehloki

Hey, I have here a piece of code that works in parts but does not work together. If I test all three parts at once, I get a segmentation fault immediately before the program is supposed to test for a (null) value in the string array. However, if I comment …

Software Development c
Member Avatar for Ancient Dragon
0
976
Member Avatar for bumsfeld

Decided to start my own thread rather than hijack thread "Sorting" I followed ghostdog74 advice and used module re to extract numeric strings: [php]import re data_raw = """[20] [ 35+ ] age = 40 (84) 100kg $245 """ # use regex module re to extract numeric string data_list = re.findall(r"\d+",data_raw) …

Software Development python regex
Member Avatar for bumsfeld
0
1K
Member Avatar for SHWOO

I am working on a struct. The two requirements are for the user to be able to input an entry and then view it. I have two questions, when entering the data shouldn't I be able to enter spaces when entering the address i.e. 654 smith st and store that …

Software Development c++
Member Avatar for disc
0
110
Member Avatar for stan yost

How can I run some code when I click on an arrow of a data control?

Software Development visual-basic
Member Avatar for stan yost
0
81
Member Avatar for flageolet

The code below works for the first question (first half of the code), the program then proceeds to the second questin, but it never stops to await the answer. I can't seem to figure out what I'm doing wrong? Thx [code] #include <stdio.h> using namespace std; char answer; int main(int …

Software Development c
Member Avatar for flageolet
0
221
Member Avatar for donaldunca

I have a question: I create a file named "number.inp". This file has a row of numbers: 5 4 4 3 3 3 2 note: 5 is the first number, haven't any space or char in front of 5 [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> main() {clrscr(); int ch,v[10],count=0,i=0,j=1,n=0,a[10]; FILE *f; f=fopen("number.inp","r"); …

Software Development c file-system
Member Avatar for donaldunca
0
100
Member Avatar for sneekula

I keep reading threads here, some use the Tkinter GUI toolkit and others use the wxPython GUI toolkit. Why would one use one or the other?

Software Development gui python tkinter
Member Avatar for sneekula
0
1K
Member Avatar for edek

Would you be so kind and tell me what does ^ symbol mean in definition of object, example: [code]class ^Object[/code] Thanks in adv

Software Development c++
Member Avatar for Ravalon
0
952
Member Avatar for jd_1604

O.K. Ive compiled my program for debugging. I really don't know where to start looking. My program consists of two blocks of source code (Robotmoves.cpp and Character.cpp) and one header file (Character.h) Once I have compiled and attempted to run the program the error tells me my Robotmoves.EXE had triggered …

Software Development c++
Member Avatar for Salem
0
97
Member Avatar for Matt Tacular

In python if I divide 6/3 I get 2, that's fine. But I divide 6/4 and get 1... Why aren't I getting a decimal? I would like to know because I want to make something that can detect wether or not a number is whole. (I need help with that …

Software Development python
Member Avatar for Matt Tacular
0
108
Member Avatar for theflier13

Hey, I am in the process of writing a program that stores a integer entry into an array where each element in that array directly corresponds to a date on the calendar for that month. I think I have my code working, or at least almost working. My problem comes …

Software Development c++ google
Member Avatar for Ravalon
0
234
Member Avatar for Jishnu

I have seen that writing anything after the completion of any pre-processor compiler directive does not affect either compilation or running of the program. i.e. #include<conio.h> 123as!#@ #define M 100 *&^asdf is perfectly valid. How can such athing happen ?

Software Development c
Member Avatar for Ancient Dragon
0
137
Member Avatar for flageolet

Why won't the 'luck' function get executed? Pasting the code of my tutorial in my compiler creates the exact same error as the little test code below: 'luck' undeclared. First use this function. I use dev c++ Thx ;) [code] int main() { printf("hellow (printed in main)\n"); luck(); return 0; …

Software Development c++
Member Avatar for flageolet
0
122
Member Avatar for flageolet
0
73
Member Avatar for jaden403

I am trying to write a recursive function that will produce a fractal snowflake, but am not getting the correct results. For some reason it gets caught in an infinte loop, but I cannot figure out why. Any help is appreciated. [code] [COLOR=#941edf]private[/COLOR] [COLOR=#941edf]void[/COLOR] recursiveDraw([COLOR=#941edf]double[/COLOR] x1, [COLOR=#941edf]double[/COLOR] y1, [COLOR=#941edf]double[/COLOR] x2, …

Software Development java
Member Avatar for jaden403
0
101
Member Avatar for wandie

I have a program that displays its results in this manner. I added the results in an array this is what I got. [code] [20] [35] [40] [84] [100] [245] [260] [300] [440] [521] [650] [/code] How can I put it in this way ['20','35','40'] i used append but it …

Software Development python
Member Avatar for ghostdog74
0
161
Member Avatar for hoosier23

I have a spreadsheet that has many rows and columns of data. Also, 20 fields need to be evaluated with around 15 variables. If I were to create a program that filters this data and finds the lowest cost option, how would I go about doing that? I have heard …

Software Development vb.net
Member Avatar for iamthwee
0
103
Member Avatar for MarkWalker84

Hi everyone! Im stuck... I'm currently writing a GUI program to control a piece of machinery. I am using wxPython along with a few other bits and bobs including USPP for serial access. My problem is that i need some way of 'pinging' the machine. ie I want to be …

Software Development gui python
Member Avatar for bumsfeld
0
81
Member Avatar for Jaseva

I am doing a project for my VB.NET class and I am a complete beginner, so please go easy on me :) I have a windows form that will collect information from a user. When they click a button, I want to display all their information in a completely new …

Software Development display vb.net
Member Avatar for Dukane
0
110
Member Avatar for amishosh

Hi! Here's my code: [code] for(i=0;i<N;i++) { for(j=0;j<M;j++) printf("%4.2f ",mat[i][j]); printf("\n"); } [/code] I want it to look like this: 68.85 52.25 32.00 -100.00 -632.25 -26.56 Instead I get: 68.85 52.25 32.00 -100.00 -632.25 -2.56 For life of me I can't remember how to get th alignment right. Anyone? Thanks

Software Development c
Member Avatar for Ravalon
0
86
Member Avatar for ryy705

Hi, I want to learn how to build web services with java. I am starting out by installing all the neccessary software. I am following directions from a book. However, tomcat is installed twice in the book's example. The first set of direction is labeled Servlet container and tomcat is …

Software Development java web-server
Member Avatar for jwenting
0
126
Member Avatar for bhavna_816

There is a querysting for example abc = "<a href=test_table.exe?PFolder=" & oPFolder.Name & "&SFolder=" & sfolder.Name & "&oMails=" & fItem & ">" s.WriteLine(abc) this oPFolder.Name and sfolder.Name contains some words with spaces. suppose oPFolder.Name is Personal Folders and sfolder.Name is Deleted Items. s is the streamwriter for htm page. When …

Software Development vb.net
0
47
Member Avatar for cassyjack

I have to rotate numbers an array. Example:`{5, 6, 7, 8} ==> {6, 7, 8, 5}{5, 6, 7, 8, 9, 10} ==> {6, 7, 8, 9, 10, 5}` This is what I have. It works for the most part to rotate the numbersbut I can't seem to rotate the first …

Software Development java
Member Avatar for cassyjack
0
147
Member Avatar for amishosh

Hi! First I'll say that I've searched this forum and read many threads and followed a few recommended links. I still need some clearifacation: I use Borlnad C++ V3.1 which runs in DOS. Can I draw an image in let say "Paint" and then display it with the above compiler …

Software Development c++
Member Avatar for ~s.o.s~
0
172
Member Avatar for bhavna_816

There is a filestream and a streamwriter in Sub Main() Dim fs As New FileStream("c:\OL_Table.htm", FileMode.Create, FileAccess.Write) Dim s As New StreamWriter(fs) //code goes here s.Close() fs = New FileStream("c:\OL_Table.htm", FileMode.Open, FileAccess.Read) Dim d As New StreamReader(fs) d.BaseStream.Seek(0, SeekOrigin.Begin) and there is a class having functions Public Class MailItemClass Function1: …

Software Development vb.net
0
60
Member Avatar for amishosh

I want to create the effect of a moving square. I would have to clear the previous position of the square and then draw a new one, right? And if that's tru how do I clear just that portion of the screen leaving the rest of my screen in tact? …

Software Development c
Member Avatar for John A
0
90
Member Avatar for raydogg57

I have a homework assignment that deals with creating a command line menu, and then selecting items from that menu that do something. the items need to be selected by using either a lowercase or uppercase letter that represents that specific menu item. for example, if i want to print …

Software Development c++
Member Avatar for John A
0
2K
Member Avatar for sneekula

The department's computer has Python 2.4 and on my home computer (really my dad's computer) I installed Python 2.5. Is it possible to have Python 2.4 and Python 2.5 on the same computer?

Software Development python
Member Avatar for vegaseat
0
114
Member Avatar for sneekula

Since there is so much discussion on one of the threads on zipping/unzipping files and all the associated incompatibilities, is there a way to do this with Python and cut out the middleman?

Software Development file-system python
Member Avatar for vegaseat
0
136
Member Avatar for JoBe

Hello ladies and gents, Gotta few questions if you don't mind: 1) Exc_6_4) Wrote a table of values for the bitwise logical operators and was wondering if any of you could check them out whether they are correct this way. 2) I have to write five examples of undefined behaviour …

Software Development c++
Member Avatar for Ravalon
0
193
Member Avatar for jrcagle

This is part of a short script I wrote to find out whether students had submitted any corrections to work in December or January. [code=Python] import os, os.path months = ['Dec', 'Jan'] # actually a raw_input() files = get_all_files(root_dir) # actually a call to os.path.walk() dates = [] for i …

Software Development python
Member Avatar for jrcagle
0
140
Member Avatar for professionalnet

Heya i was thinking about trying my hand at programming (once again) so I picked up my trusty ol' VB6...and it hit me.. I have no clue as to where to start, as i've just forgotten about everything i've learned. A great start would be muchly appreciated. I was trying …

Software Development visual-basic
Member Avatar for professionalnet
0
315
Member Avatar for flageolet

I've set the promt window size to full screen. But now I can't return it to 'window', because it hasn't got a blue header anymore where i can acess the properties. Does anybody know how to set the console window back to 'window' when I press F9 (compile and run) …

Software Development c++
0
96
Member Avatar for Matt Tacular

I know wxpython is supposed to be better than tkinter, but I can't find any easy to understand tutorials on how to begin using wxpython. But anyway. How can I get tkinter to load up a jpg?

Software Development python tkinter
Member Avatar for jrcagle
0
164
Member Avatar for sharma_vivek82

[code]#Auther : vivek sharma #date : 06-11-2006 #Description : This script is used to get the list of week in given year, user have to input the year , def WeekFinderFromYear(year): """ will return all the week from selected year """ import datetime WEEK = {'MONDAY':0,'TUESDAY':1,'WEDNESDAY':2,'THURSDAY':3,'FRIDAY':4,'SATURDAY':5,'SUNDAY':6} MONTH = {'JANUARY':1,'FEBRUARY':2,'MARCH':3,'APRIL':4,'MAY':5,'JUNE':6,'JULY':7,'AUGUST':8,'SEPTEMBER':9,'OCTOBER':10,'NOVEMBER':11,'DECEMBER':12} year=int(year) …

Software Development python
Member Avatar for mawe
0
2K
Member Avatar for dams

Hello, I am new to Python and find it really nice. But I can not launch an executable file using only its name. I have to give its whole path. I expected that the PATH environment variable is known by Python and that it could retrieve the full path itself... …

Software Development python
Member Avatar for dams
0
127
Member Avatar for wheelz

School project, just wondering if there is anymore documentation that I woould need? [code=cplusplus] //********************************************************/ // Tim Petrich, T.Scot Alexander // Program: Project 1 Mystery.cpp // Date: 17 January 2007 // Purpose: Binary Convert // Description: Converts text into binary using the division method // through ASCII code. // The …

Software Development c++ microsoft-access visual-studio
Member Avatar for Ravalon
0
131
Member Avatar for bhavna_816

[COLOR=darkblue]Sub Main() Dim value As String value = "PFolder=oPFolder&SFolder=sfolder&oMsg=i" Dim myFolder As String() = Nothing Dim msgs(5) As Char msgs(0) = "=" msgs(1) = "&" msgs(2) = "=" msgs(3) = "&" msgs(4) = "=" myFolder = value.Split(msgs, 6) Dim f As String For Each f In myFolder Console.WriteLine(f) Next f …

Software Development vb.net
Member Avatar for Dukane
0
83
Member Avatar for mattyd

I am in the end part of a Python Gui game build; it is going quite well but I am finding that I underestimated one area of the logic, incorrectly coding it: The game is blackjack. One area that, although it seemed simple on the surface (and in fact it …

Software Development first-post gui python
Member Avatar for woooee
0
108
Member Avatar for mattyd

Hello: I am new to Java and I am working on a tutorial to familiarize myself with this language. The tutorial is a walk-through in building a basic text editor. So far the build is going fine, but I have come to a point where I am unsure how to …

Software Development gui java visual-basic
Member Avatar for mattyd
0
265
Member Avatar for Matt Tacular

Is there any way to get the python interpreter installed on a thumb drive? So that I can edit some programs while at my work, where I'm never on the same computer twice, so installing on each machine isn't as pratical as the thumb drive. Just anything that would let …

Software Development python
Member Avatar for vegaseat
0
132
Member Avatar for howlingmadhowie

hi everybody :) i've just bought a sun box on ebay, installed gnu/linux on it and am now trying to write a short assembler program. this seems to be very different from assembler on my tried and trusted pentium III. anyway, i found a few guides on the net and …

Software Development assembly data-structure first-post
Member Avatar for howlingmadhowie
0
149
Member Avatar for Oxiegen

Hi. I'm having some difficulty here. Perhaps someone here has some ideas. I would like to implement some kind of P2P functionality in an existing application that is designed to work within a local network. The concept of this functionality is that the application stores the username of the current …

Software Development client-server vb.net
0
86
Member Avatar for bhavna_816

I wrote a code in [URL="http://vb.net/"][COLOR=#0000ff]VB.NET[/COLOR][/URL] which accesses the outlook folders.Following is the code.According to this code it displays outlook folders and there is hyperlink on each subject.I want when we click on the subject the message body should be [URL="http://dispalyed.in/"][COLOR=#0000ff]dispalyed.in[/COLOR][/URL] href how can we do this? I know we …

0
90
Member Avatar for fesago90

I'm doing a homework for my programming class, the following code is a part of my code which I cut out and formatted to be a 'runnable' program. Now, if you run it you'll notice it creates a data.txt file, writing the amount of student IDs in the record as …

Software Development c++ file-system ios
Member Avatar for jwenting
0
140

The End.