43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for klactose

Hi, I am trying to write a class that uses vectors that contain another class. When I compile my code using g++ I get the following error that I don't understand: [B]In file included from cars.cpp:5: car.h:24: error: syntax error before `;' token car.h:25: error: syntax error before `;' token[/B] …

Software Development c++
Member Avatar for Ancient Dragon
0
87
Member Avatar for docaholic

does anybody know how to make bubble sort work in progressively smaller sizes and determine if a list is sorted on it's first try? i've got the basic bubble sort algorithm down. i just can't figure out the rest of it (my basic bubble sort code below) [code] def bubbleSort(list1): …

Software Development algorithm python
Member Avatar for docaholic
0
141
Member Avatar for farooqaaa

Hello all, I want to make an application just like Notepad. Write text, save them, open them and thats it. Is there any tutorial for it? Thanks

Software Development
Member Avatar for farooqaaa
0
151
Member Avatar for tactfulsaint

import javax.servlet.*; import javax.servlet.http.*; these servlet package does not exist, any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws …

Software Development java
Member Avatar for ChaseVoid
0
149
Member Avatar for MikeyFTW

just wanting to know how to implement any background like a picture or something into python programs, i think i can only use .bmp but yeah thanks

Software Development python
Member Avatar for ZZucker
0
119
Member Avatar for kavithabhaskar

Hi I have 12 comboboxes for data entry. Everytime I type in some input in the form, it gets stored in the Access Database. Every time my form loads, it picks up all distinct values from the database and fills the combo box. But there are several repeated values because …

Software Development vb.net
Member Avatar for kavithabhaskar
0
88
Member Avatar for veledrom

Hi, How can add 4 rows and 6 columns into MsFlexGrid1 with Command_click event in VB6? Thanks

Software Development visual-basic
Member Avatar for veledrom
0
474
Member Avatar for OmniX

I am trying to get quite a large number 0.00012354684 to X required decimal places. Using <iomanip> and setprecision() but I cant seem to get it to work. Could someone please give me a small example. Thankyou, Regards X

Software Development c++
Member Avatar for Nick Evan
0
116
Member Avatar for OmniX

I have 8.5 million combinations which are then put through 30 if statements. Then final output. Now I havent tried this yet BUT I dont think php will let me make a 8.5 million length array nor will C++. So what else can I do? Are there any other lanuages …

Software Development c c# c++
Member Avatar for Nick Evan
0
154
Member Avatar for bloody_ninja

[code=java]import java.awt.Color; import java.awt.BorderLayout; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.net.*; class SocketClient extends JFrame implements ActionListener { JLabel text, clicked; JButton button; JPanel panel; JTextField textField; Socket socket = null; PrintWriter out = null; BufferedReader in = null; SocketClient(){ //Begin Constructor text = new JLabel("Text to send over …

Software Development client-server java java-swing
Member Avatar for masijade
0
299
Member Avatar for Bill Purkins

Hi, using VB 2008, I have a datagridview bound to a datasource and want to position to a row based on the value keyed by the user in a textbox. I can sort of accomplish this with one line of code on the textbox changed event i.e.: Me.BindingSource.Position = Me.BindingSource.Find("ColumnName", …

Software Development vb.net
Member Avatar for Bill Purkins
0
579
Member Avatar for JConnor135

for this code I need to set string d to char c, can anyone tell me how to do it? [ICODE]public static void main(String[] args) { int n; int m; String d; char c; Scanner sc = new Scanner(System.in); System.out.println("Input Integer: "); //get the value n=sc.nextInt(); int answer = sum_upto(n); …

Software Development java
Member Avatar for Software guy
0
172
Member Avatar for splakhin

Hello to everybody! I'm new in Python ... and have some problem with reading Excel... no matter that I've set format in Excel Text (for all my available data) - it get float value from it... Ok: here is the code: <code> import xlrd book=xlrd.open_workbook("C:/Py/aaa.xls") sh=book.sheet_by_index(0) print sh.cell_value(RowN,CellN) # it …

Software Development python
Member Avatar for splakhin
0
251
Member Avatar for gangsta gama

Thank you Vernon, the money does decrease, but when I buy a pistol for $200 and go to stats it says I have $0 and 50 pistol ammo witch is correct. When I save it though It basicaly erases everything. I opened the file. It said this: 0 0 0 …

Software Development c c# c++
Member Avatar for gangsta gama
0
175
Member Avatar for gispe

hi!! i just started programming some stuff in c++. i made a simple program that compares a number given by the user to 0 n say if its cero, positive or negative. [code=cplusplus] // num_positivo_negativo.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <math.h> #include …

Software Development c c# c++
Member Avatar for ArkM
0
609
Member Avatar for OmniX

I have just started using C++ for the first time and I love it!!! First problem I have encoutered proably a simple one but [code] for (int a=0; a<10; a++) { for (int b=0; b<10; b++) { for (int c=0; c<10; c++) { if (b == 5) { break; beak; …

Software Development c++
Member Avatar for Narue
0
173
Member Avatar for kv79

Hi all, I have a sample.bat file . I want to execute that file 10 times . I dunno command that executes bat files .

Software Development c
Member Avatar for Narue
0
120
Member Avatar for Ccrobinson001

I'm trying to read a text file into a do while loop. For some reason I can't get it to countinue until ants = 0 . there are two different simulations, once ants go to o the counter needs to reset and do another simulation. Can someone help me? the …

Software Development c++
Member Avatar for VernonDozier
0
134
Member Avatar for sddproject

Hi everyone! I want to have a coin toss on my program: i have two images (a heads and tails) and i want the user to click on a button which will generate one of these pictures randomly. There's all this code on how to create a random number generators, …

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

Hi, When i click on a datagrid, the selected row's id is added into a text or combo or listbox. User will see and navigate through the added items but, can't change. What is the best way to do this? I need to disable changeable property of text or combo …

Software Development visual-basic
Member Avatar for veledrom
0
108
Member Avatar for veledrom

Hi, I fill the Dbgrid with information that come from database via adodc connection. Is there any chance to add checkbox across the each records listed in Dbgrid? I will check one or several particular records and update them with a record stored in a textbox. For example; [code] ....UPDATE …

Software Development visual-basic
Member Avatar for veledrom
0
106
Member Avatar for db_ozbecool

How to get the NAME of the passed parameter ? Eg. in the example below how to get printed , inside my_func() , value = "test_var" [code] def my_func(aaa): [INDENT]print aaa # <---- this will print the VALUE of passed parameter 'aaa' [/INDENT] [INDENT]# ..... but how to print the …

Software Development python
Member Avatar for ZZucker
0
313
Member Avatar for ___SnipeR___

[B]hi all, i try to move it to the up and resize it but i can't, can an one help me, by give my the code for this frm [/B]

Software Development visual-basic
Member Avatar for ___SnipeR___
0
93
Member Avatar for karang

Hi I was trying the code written in the following URL http://support.microsoft.com/kb/117565 to get the information about the page size But when I try to run the program I am getting the following errors: `CMyView' has not been declared `CSize' was not declared in this scope `CMyView' has not been …

Software Development c++
Member Avatar for mitrmkar
0
98
Member Avatar for mrjoli021

i am new to c#. I want to write a windows app that will display a txt file in a new window.

Software Development
Member Avatar for camilojvarona
0
91
Member Avatar for Motvel

I have a list of choise. All i want to do, is when i click on a element - to show the string of that element. Suppose i click on "Pizza" element, then i should to get at console (with System.out.println()) the word -Pizza. Any ideas or example will be …

Software Development gui java
Member Avatar for Vilice
0
181
Member Avatar for naya22

I am writing the following program that calculates the average of a group of test scores where the lowest score in the group is dropped. It has the following functions: [LIST=1] [*]void getScore()-should ask the user for a test score, store it in a reference parameter variable, and validate it. …

Software Development c++
Member Avatar for Manutebecker
0
3K
Member Avatar for iamnoangel26

What version of MS access is compatible to VB 6.0??? And any other application beside of access you can suggest. Thanks a lot...

Software Development visual-basic
Member Avatar for Jx_Man
0
80
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 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 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 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 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 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 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 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 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 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 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
Member Avatar for Time Indicator

Hello, I have four textboxes in my calculator. Textbox 1, Textbox 2, Textbox 3 (acts for the Operand) and Textbox 4 (the result). I have a button called Result and when clicked, I want the result to show in the 'Textbox 4'. How would I go about that. Also, when …

Software Development vb.net
Member Avatar for suley04
0
132
Member Avatar for sdimantova

I am making a program to list all files in a listview (currently it lists the file name, file path, last access date, and size) in a specified directory, and I want the user to be able to select files using checkboxes, click a delete button, and see those files …

Software Development listview vb.net
Member Avatar for KillerOfDN
1
716
Member Avatar for tazquebec

[code=PHP] Name: <?php print $_POST['nameField']; ?> <br/> Age: <?php print $_POST['ageField']; ?> <br/> Comment: <?php print $_POST['commentField']; ?> <br/> [/code] [B]How do I do the same thing in C#?[/B] Thanks :icon_question:

Software Development asp c# first-post
Member Avatar for tazquebec
0
82
Member Avatar for guy40az

Can someone tell me how to add a static library file to a project in visual studio 2007.

Software Development c++ visual-studio
Member Avatar for CoolGamer48
0
153

The End.