132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shaynicb25

I am working on the following Java application Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate’s name, the votes received by that candidate, and the …

Software Development java
Member Avatar for javaAddict
0
114
Member Avatar for JConnor135

I have two methods that when prompted by the user will print out n amount of String on m rows, for ex: * 3 3 would print out: *** *** *** here is the code I have: [ICODE]public static void writeLine(String c, int n) { if(n==0) System.out.println(); else System.out.print(c); writeLine(c, …

Software Development java
Member Avatar for JConnor135
0
196
Member Avatar for henpecked1

I'm trying to create a contributor class with one enumerated type. I took the member functions from the header and put them in a cpp, but I get an error for the enumerated type when I try to compile. Is it because I haven't written a code body for that …

Software Development c++
Member Avatar for henpecked1
0
108
Member Avatar for thatoneguyx

I have 2 problems -- 1. When I try having IDLE list the modules of python it gives me this error: [code]Traceback (most recent call last): File "<pyshell#7>", line 1, in <module> help() File "D:\Programs\Python\lib\site.py", line 346, in __call__ return pydoc.help(*args, **kwds) File "D:\Programs\Python\lib\pydoc.py", line 1648, in __call__ self.interact() File …

Software Development opengl python
Member Avatar for Scuppery
0
123
Member Avatar for karhong

Hi, I'm wondering, whether is there any other methods to save the shape into a file? Meaning that I've already drag few shape and I wanted to save all the shapes, their position, their colour. What I'm thinking now is, getting all the shape's coordinate, colours, size and save it …

Software Development file-system
Member Avatar for karhong
0
107
Member Avatar for LevelSix

Is there a way that after you store something, such a Rectangle, to an object variable, say, Object x, that you can then look at object x, and determine it is indeed a rectangle, allowing you to use Graphic methods such as draw on said object?

Software Development java
Member Avatar for LevelSix
0
131
Member Avatar for scarypajamas

I have a class called Thing that defines vector<string> stuff. I have no problem declaring anything I want inside "class Thing" itself or functions from it, like "void Thing::bob" works fine. My problem is when I inherit this class. For some reason I get my program terminated. pseudocode: [CODE]Class Thing …

Software Development c++
Member Avatar for Narue
0
142
Member Avatar for RaDeuX

So for my assignment, I'm supposed to fill ten strings from a file using an array of pointers. Now I know I'm doing this wrong since my compiler is telling me that there are errors on the levels of indirection. Pointers are so confusing... >_> [code] char* pStrings[10]; char** pWalker; …

Software Development c
Member Avatar for Ancient Dragon
0
1K
Member Avatar for flipjoebanana

Hello, I am having problem with strings within structs and was wondering if someone could help. I have a struct, i.e. [code] #include <stdio.h> #include <strings.h> struct feeling { char *emotion; char *emotion_options[20]; int num; }; [/code] which i then pass to a function via reference, i.e. [code] int main() …

Software Development c
Member Avatar for dwks
0
249
Member Avatar for cVz

Hey guys i have an application where i assign values to the type of sale it would be -- here's my code -- [code] procedure TPaymentForm.OkButtonClick(Sender: TObject); begin //ID 1 - Cash Sale IF (CashRadioButton.Checked) Then BEGIN //Opening Data Source and Stuff, Setting The Columns and Stuff Data.Statement_Entries_Table.Append; Data.Statement_Entries_Table.FieldByName('customer_id').AsInteger; Data.Statement_Entries_Table.FieldByName('date_time').AsDateTime …

Software Development pascal
Member Avatar for jsosnowski
0
132
Member Avatar for swills

I started Python, imported Tkinter assigned Tk() to root, imported snack and initialized it. i then made a sound object, read a sound from the hard drive and then played it. i couldn't hear any sound though. any idea what the problem may be?

Software Development hard-drive python tkinter
Member Avatar for vegaseat
0
75
Member Avatar for safir8100

Hi, I have a program: [code] def AdjacencyMatrix(dim, pairs): matrix1 = (zeros((dim,dim))) for (first,second) in pairs: matrix1[first,second]=1 matrix1[second,first]=1 print '\nAdjacency Matrix\n' print matrix1 [/code] But I get an error: TypeError: 'int' object is not iterable Can anyone help? Thank you!

Software Development python
Member Avatar for vegaseat
0
80
Member Avatar for java_girl

Hi. The objective os to open a file and print 55 lines of content at a time. Since I am still learning 'C', my code (thus far) may appear slightly neophytic ;) [CODE=C] #include <stdio.h> #include <stdlib.h> #define SIZE 1000 void pause( void ); int main( void ) { FILE* …

Software Development c objective-c
Member Avatar for dwks
0
123
Member Avatar for nnhamane

Is there any inbuilt function in C language by which one can directly access image contents?

Software Development c image
Member Avatar for dwks
0
260
Member Avatar for whome

I am very new with XML, no experience. I am trying to import an XML file into Excel. The XML file will import into Excel fine, but when I go to export the Excel file back out to an XMl file I get error messages. The error messages are: "List …

Software Development xml
Member Avatar for whome
0
111
Member Avatar for fmwyso

Hey, I decided I should probably read a book to learn about C++ considering there are so many and etc :P. My parents said they would buy it for me, but I just wanna make sure it is gunna actually be a book that will teach me alot and hopefully …

Software Development c c# c++
Member Avatar for Dave Sinkula
0
146
Member Avatar for Seamus McCarthy

[code=cplusplus] #include <iostream> using namespace std; const int capacity = 20; string tax_payers[capacity] = {"jane", "tom", "jerry", "joe", "annie", "mary", "kate", "steve", "sarah", "paul", "petra", "peter","elaine", "noreen", "sean", "niamh", "donal", "john", "marie", "colin"}; double income[capacity] = {21000.0, 16500.0, 120000.0, 16000.0, 38000.0, 62500.0, 14500.0, 28500.0, 13500.0, 27500.0, 15000.0, 44000.0, 18000.0, 21000.0, …

Software Development c++
Member Avatar for Seamus McCarthy
0
154
Member Avatar for jack1234

I am using Visual C++ 2005 (native C++) For the following code, the different of main function 1 and main function 2 is main function 1 using }catch(MyException &e){ but main function 2 using }catch(MyException e){ Which is more correct? if both are correct, which is better? [CODE]//========This is MyException.h===== …

Software Development c++
Member Avatar for vijayan121
0
235
Member Avatar for Gusts

So I got such exercise: You have array of 1000 elements they all are random numbers from 1 to 1000 and there is only one duplicate number. You can access each array member only once, can you find duplicate value? And you can't create another array. You can create some …

Software Development c++
Member Avatar for Alex Edwards
0
307
Member Avatar for rishabh2011

Hi I am using Dev Cpp for dos programming. I want to know how we can add classic style user interface to programs. The interface like in which we control the menus etc. through arrow keys not mouse. The interface like when we press F2 button at the start of …

Software Development c++ user-interface
Member Avatar for Frederick2
0
178
Member Avatar for littlestone

Question is : Write a function [code=c++] int f(char* str, long pattern) [/code] to find out how many pattern does the str contain? str is a char array consist of '1' and '0'; for example: str = "11010101110101011110100011001" ,pattern = 110; My solution is change pattern and str to std::string, …

Software Development c++
Member Avatar for vijayan121
0
327
Member Avatar for harry pottervs

I have written a program in which there is a board and the balls should travel from one place to another.i need to provide a delay when i draw the ball in new position and erase it from previous position.I used delay() funtion on turbo c++.but on gcc compiler on …

Software Development c++
Member Avatar for harry pottervs
0
199
Member Avatar for fddrummer06

I'm working on a problem in the File Processing chapter of my C book, and I've run into a few problems. I'm sure they are probably minor but I've been playing for a while and can't figure out why they are happening. First: When printing a text file containing the …

Software Development c file-system
Member Avatar for fddrummer06
0
125
Member Avatar for Tony Barber

Hi Everybody I am stuck can somebody help me please. I am testing a very small portable barcode scanner. After scanning I need to upload the scanned data. I am in VB6 I am using the mscomm1 control I tell the scanner to send the data. I have a [B]OnCom[/B] …

Software Development flash visual-basic
Member Avatar for Teropod
0
304
Member Avatar for zubermohammad

hi friend i have a problem in coding a program it states that you have to take input of suppose ten players and their team with their batting average there may be all tn different team or any but less than ten and i have to sort them by their …

Software Development c
Member Avatar for Salem
0
83
Member Avatar for thilakthilak

m an comp engineering student doin my second yr and i m in serious need of any ideas/views regarding a miniproject i hve promised to do to the headmaster :-/ ........so wat so ever thoughts/practical proj....or (any project website links ) ideas u ppl hve can u jst share it …

Software Development c++ engineering
Member Avatar for thilakthilak
0
89
Member Avatar for balla4eva33

I've been interested in working with mouse input in Visual Studio using C++. I'm curious what steps need to be taken to do this. I'm assuming some sort of Windows header file needs to be included, but I have never seen any code for such things. Basically I want to …

Software Development c++ visual-studio
Member Avatar for Prabakar
0
249
Member Avatar for ObliviousXYZ

Hi guys!I'm in great need and embarassment.I'm new to the C++ program and to be frank I'm having a hard time understanding it. Now our topic is about linked list and my professor gave us this machine problems: 1. Write a program that implements a linked list using an array.Your …

Software Development c++ linked-list
Member Avatar for Narue
0
136
Member Avatar for Q8iEnG

Hello guys :) I hope all are alright ;) I'm using HashTable to make a program that reads a string from a file.. when I run it, it gives me the message of error (Don't Send) << I guess all of you know this message.. this is my code [CODE] …

Software Development c++
Member Avatar for Q8iEnG
0
185
Member Avatar for uompearl

I want to increase the number of characters the user enters as the text (refer line 1410 of cpp file). I want it to be infinite, if possible. Tks.

Software Development c++
Member Avatar for Narue
0
92
Member Avatar for pardeep3dec

Hello friends, I need procedure for continous accessing oracle database using visual basic. Follwing i am giving coding use by me but some time it give disconnection error Please help for continous connectivity. [code] dim db as new ADODB.connection dim rs as new ADODB.recordset db.open "Provider=MSDAORA.1;User id=ourpro;Password=ourpro1;Persist Security info=False" [/code] …

Software Development oracle visual-basic
Member Avatar for QVeen72
0
136
Member Avatar for edouard89

Hello everyone, I am having a problem with a function I am working on. It has to do the following: [quote]Outputs the null-terminated string pointed to by s starting at row row and column column, in a field of length characters. As with dtioCursor(), the row value 0 refers to …

Software Development c c# c++
Member Avatar for edouard89
0
113
Member Avatar for dinilkarun

Hi, I am unable to set the size of the DirPickerCtrl. The 'Browse' button is getting placed behind the textbox. Please help me out with this if anybody has worked on it. Regards, Dinil

Software Development python
Member Avatar for jlm699
0
146
Member Avatar for harcaype

In relation to my previous post. I was able to delete the rows in the datagridview (thanks to ema005), but now I am having problems with the updating of it in the database. It's deleting in my datagridview alright. But not in my database. My codes are already going on …

Software Development dataset open-source
Member Avatar for camilojvarona
0
98
Member Avatar for Mazille

I get an error when trying to make this program. [code=python] from pointLine import * def calcSlope(x1,y1, x2,y2): slope = (x2-x1)/(y2-y1) return slope def calcPointOnLine(y, m, x, b): if y == (m*x)+ b: return True else: return False print "Point is on a Line? Program" line1 = [(1,7), (7,19)] x1 …

Software Development python
Member Avatar for Mazille
0
139
Member Avatar for still_learning

Hi there, My son has been recently hospitalized after getting into an accident. Now I am trying to help him with some of his projects. Right now I am stuck on this recursion problem. We need to figure out how to form a diamond shape out of `*'s` using a …

Software Development c++
Member Avatar for Pikachumanson
0
468
Member Avatar for 13L4D3

I have installed visual c++ 2008 few days ago. I want to create a file open it, display contents, modify them and search them but i dont know specific codes. I have used turbo c++ earlier. Please specify the codes if possible. Thanx............;)

Software Development c++
Member Avatar for 13L4D3
0
133
Member Avatar for Shadoninja

Now that I have working program starter, are there any simple methods of filling in the info to it? I just have the base of it set up and I am not sure how to set up the self-typer. If there are any tutorials made for handling things like this …

Software Development c++
Member Avatar for Shadoninja
0
91
Member Avatar for nikhil.laghave

Hello All, I am trying from a Fortran program, to call a subroutine that I wrote in C...I named the C code file as filename.c and the subroutine is: void filename() Now in a fortran program, I am calling this subroutine as: Call filename() I am getting the following error: …

Software Development c
Member Avatar for ArkM
0
239
Member Avatar for peddiraju86

how can i get examples for interfaces and methods of a Table class

Software Development java
Member Avatar for loken
0
69
Member Avatar for tijoseymathew

Hi, I would like to identify the patterns in a picture which is in picture box, the patterns will be of simple shape like a square, traingle etc.. I think if I can access the pixel data of the picture then a basic for next loop will suffice, the memory …

Software Development visual-basic
Member Avatar for tijoseymathew
0
204
Member Avatar for linkrulesx10

I need an if statement that will run if the value is not a number. I am unsure how to do this in python I have tried looking around and I can't seem to find what I need. If Input is not <a number> Also if you can help me …

Software Development python
Member Avatar for linkrulesx10
0
5K
Member Avatar for karhong

Hi, I have some question to ask because I don't understand why is it happening like that. I have 2 polygon created and displayed. I've make mouseDown, mouseUp, mouseMove event. (For some movement for the polygon) Now i wanted to implement keyUp(pressing delete button from keyboard, then delete the polygon) …

Software Development
Member Avatar for karhong
0
102
Member Avatar for TheBuzzer

Hi, I am trying to make stroke and shape make a path like two sin curves. so a path from x,y to x2,y2 first is like ------------------------- will become /\/\/\/\/\/\/\/\ \/\/\/\/\/\/\/\/ if you understand what i mean. I am very confused am I suppose to be changing the shape or …

Software Development java
Member Avatar for sciwizeh
0
169
Member Avatar for Shadoninja

I am trying to create a simple program that starts up steam from my computer. I have a shortcut on my desktop of steam and when you double click it, it runs the process "steam.exe" When my program executes the line of code "system("start steam.exe")" I get an error saying …

Software Development c++
Member Avatar for Dave Sinkula
0
126
Member Avatar for trowa0830

hi i need some help in this program.. using only 1 for loop.. [code] #include<stdio.h> void main() { int n; clrscr(); for (n=1; n<=10; n--) { printf("\n %d",n); } getch(); } *the output of this program is" 1 2 3 4 5 6 7 8 9 10 but i need …

Software Development c
Member Avatar for Aia
0
289
Member Avatar for mbleiche

Hi, I'm a new C++ programming student and we just learned about classes and objects. I completed the assignment but had a question about doing something extra with my code. The instructions given for the problem were: To use the formula for a straight line (i.e. Ax + By + …

Software Development c++
Member Avatar for ArkM
0
1K
Member Avatar for gedinfo

Hello, I have inherited an application written in VB6 that does not handle the number of print copies properly. Changing the number of copies to a number other than one(1) results in only (1) print. I am new at VB6, and would appreciate any tips on how to address this …

Software Development visual-basic
Member Avatar for Teropod
0
767
Member Avatar for veledrom

Hi, I have encripted password column in my table. I use VB6 code below to check password but it doesn't work. I think i have to call a function to decrypt it. Where and which function do i use in my sql code below with text1.text. Thanks [code] .......WHERE psw=' …

Software Development visual-basic
Member Avatar for Jx_Man
0
141
Member Avatar for Jennifer84

I wonder how it is possilbe to access the first listitem in the listView. I know that each item has an index like the listBox Control and that you could access them with the member ->SelectedIndices but when writing the code below, the compiler says: [I]'==' : no conversion from …

Software Development c++ listview
Member Avatar for Jennifer84
0
202

The End.