132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xSDMx

Here's the code I put together to create concentric circles using Python: [CODE]def concentric(myTurtle,number,spacing): for radius in range(number): x = myTurtle.xcor() y = myTurtle.ycor() myTurtle.up() myTurtle.goto(x,spacing) myTurtle.down() drawCircle(myTurtle,radius*y+spacing) myTurtle.up() myTurtle.goto(x,spacing) myTurtle.down()[/CODE] It, however, has a critical flaw. I need the code to be able to goto any given set of …

Software Development python
Member Avatar for xSDMx
0
753
Member Avatar for rasizzle

Hey all, Here is some code for reading Excel spreadsheets (2003 and before) with PyExcelerator. My main problem is that if I leave a cell blank, it gives me an error. I want to be able to have blank cells on my spreadsheet without any problems. Does anyone have any …

Software Development python
Member Avatar for Gribouillis
0
507
Member Avatar for ttboy04

Hello, What I want to do is reset the pig's position to 0 and it's colour to pink. I don't how if I amended the the constructor correctly so the final line sends a resetCount() message to the newly created Animal object. The above code is not working because nothing …

Software Development java
Member Avatar for ttboy04
0
270
Member Avatar for Tellalca

I got some linker error, couldnt find the mistake. What is wrong? [CODE]#include "myStack.h" //Imports the Stack header file containing the declaration of the member functions myStack::myStack() /*The stack is initialized as empty */ { count=0; } //end of Stack::Stack constructor Error_code myStack::push(const Stack_entry &item) /*If the stack is full …

Software Development c++ data-structure visual-studio
Member Avatar for Tellalca
0
173
Member Avatar for K0ns3rv

Hello fellow daniwebians. Consider the following constructor: [CODE=C++] Vector3f::Vector3f(float* f) { x = *f; f++; y = *f; f++; z = *f; } [/CODE] Now let's create an object of the Vector3f class [CODE=C++] //Create an object of Vector3f Float f[] = {13,3,7}; Vector3f myVector(f); [/CODE] All is well right …

Software Development c++
Member Avatar for K0ns3rv
0
122
Member Avatar for Lukezzz

Hi, I have a special question about banners that usually is possible to put on a webpage with HTML code. The HTML code holds some addresses to this specific banner in form a http:// addresses. As C++ can call addresses like this my quesiton is this: Is there any possibility …

Software Development c++
Member Avatar for Lukezzz
0
134
Member Avatar for mibushk

Hello, I would need your help, I have a Perl code that makes a folder structure, it reads a txt and creates the folders Now I have an issue I have to go through this folder structure and insert a file delete_me txt is yhe lowest level, and I have …

Software Development perl seo
Member Avatar for d5e5
0
414
Member Avatar for warne

Hi, CPP : How do i call a function in another program? the main function is in one program and i want this main function to call a function in another program. Can anyone please give me the sample code for this? Thanks in advance

Software Development c++
Member Avatar for corby
0
125
Member Avatar for rena0514

i am trying to create a tic tac toe GUI but i am having trouble...here is my code: [CODE]import javax.swing.JFrame; public class TtTDemo { public static void main(String[] args) { JFrame frame = new JFrame ("TicTacToe"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new Main()); frame.pack(); frame.setVisible(true); } } [/CODE] [CODE]import java.io.BufferedReader; import java.io.IOException; …

Software Development gui java java-swing user-interface
Member Avatar for peter_budo
0
391
Member Avatar for attackthis

So far I have this as my main [CODE]#include <string> #include <iostream> # include <fstream> #include "money.h" using namespace std; int main () { ifstream infile; ifstream outfile; infile.open ("transaction.dat"); int precision = 6; int width = 20; if (infile.fail ()) { cout << "Opening input failed" << endl; } …

Software Development c++
Member Avatar for attackthis
0
166
Member Avatar for dualdigger

Hi; I have a Q/A based game which randomly selects questions that are stored in access file table. I have define a vector and a stdstream that takes no of questions as input. The no of records are 300 and I want the program to select only 30 questions but …

Software Development c++ file-stream
Member Avatar for dualdigger
0
147
Member Avatar for notmasteryet

trying to make a tictactoe (in class) c++ program but i cant seem to get the board printed when i enter the 2nd set of numbers. if you see nay other mistakes please let me know ..... thanks in advance first time here :) [// [CODE]#include<iostream> using namespace std; const …

Software Development c++
Member Avatar for MaraShyla
0
88
Member Avatar for anjal_pawar

Write a program to print * / * / * / * / * / * / * / using two child thread. One thread responsible for printing * and another for /

Software Development java multithreading
Member Avatar for MaraShyla
0
176
Member Avatar for ppotter3

I am currently writing a program called Encoding and Decoding strings with the Enigma Class. This was a class assignment, but it already has been turned in, and I would like help (I am not looking for the work to be done for me) so I may learn from my …

Software Development algorithm c c# c++
Member Avatar for ppotter3
0
2K
Member Avatar for emaduddeen

Hi Everyone, I would like to know how to make a DataView global to a particular form. The DataView is currently created and returned from a function within a public class residing in another .vb module. All help will be appreciated. Thanks. Truly, Emad Here's what the code in the …

Software Development dataset vb.net visual-studio
Member Avatar for emaduddeen
0
220
Member Avatar for thuyson

i want to edit records on datagrid,then update into access database! Please help me!

Software Development
Member Avatar for kvprajapati
0
81
Member Avatar for emeryDan

I am looking for a C# grid component (not for database). I found GridView on the net but it seems buggy since it only supports four columns and crashes when I use more than four columns.

Software Development c#
Member Avatar for kvprajapati
0
70
Member Avatar for Othello911

:'(Help Please! I am new to C#. I am using VS Studios to develop Silverlight 4.0 business app. I have a page with a mediaelement on it and buttons to control the video. I have the video added to the project, I have set the Build Action to "Resource" but …

Software Development video
Member Avatar for Othello911
0
83
Member Avatar for scorpio222

hi. i am creating a new csv file pro grammatically in C# where i am going to take values from a csv file that is already present with me. consisder this csv file, firstname,lastname,middle,company,email xxxxxx,xxxxxxx,xxxxx,xxxxxxx,xxxxx yyyyyy,yyyyyy,yyyyyy,yyyyyy,yyyyyy zzzzzz,zzzzzz,zzzzzz,zzzzzz,zzzzzz I need to read certain values from each row of this file and …

Software Development
Member Avatar for scorpio222
0
201
Member Avatar for bigbags911

[CODE]public class TicTacToe3 { public static void main(String[] args){ } int input = 0, turn = 0, mov = 0; String sq1; int[][] table = new int[3][3]; int play; public void table() { for (int row=0; row < 3; row++) for (int col=0; col < 3; col++) table[row][col] = ((row …

Software Development java
Member Avatar for parry_kulk
0
101
Member Avatar for Rageagainst20

Hello, I am using Compact Framework for an Intermec CN3 I am watching a textbox's length and then automatically triggering an event when scanning a barcode (Using Code 128 barcodes) [CODE] private void txtBox_TextChanged(object sender, EventArgs e) { if (txtBox.Text.Length == 16) { DoMethod(); } else { ///Does nothing } …

Software Development
Member Avatar for ddanbe
0
246
Member Avatar for senormateo2011

[B][I]Write a program that allows the user to display 1, 2, or 4 images in a grid of panels. At program startup, the user is prompted ofr the number of images. If the input number is not 1, 2, or 4, the program quits with an error message. Otherwise, the …

Software Development java java-swing
Member Avatar for biedi
0
294
Member Avatar for bahr_alhalak

[COLOR="red"]Hi every one, I need ur help on this part of my project i cant know to solve it and i done what i can....[/COLOR] the problems are: 1- the time must be update with time of computer but i cant do it just I take the current time??? 2- …

Software Development java
Member Avatar for bahr_alhalak
0
112
Member Avatar for Gangarani

I am building a designer envinonment using IDesignerhost. I need to draw shapes in the designer. I have added, the shapes(lineshape, rectangle shape) from microsoft.visualbasic.powerpacks to the toolbox. If I click the shapes in the toolbox, it is not getting added tothe designer. Other controls are getting added. Can anyone …

Software Development
Member Avatar for Gangarani
0
73
Member Avatar for charqus

Hello guys. I made a Windows Form , with some buttons. Each button contains a windows form. If i press a button , the new windows form appear above the Principal Windows Form. But , if I don't close it , and i press another button , the new windows …

Software Development
Member Avatar for kvprajapati
0
76
Member Avatar for nicolasmarie

Hi, I urgently need the following information and techniques on how to: 1. disable input in a field text box and automatically increment the same namely a numeric primary key field (viz. StudentID) by 1 at the issuing of a blank/new record. The Database method is DATA BINDING and ACCESS. …

Software Development
Member Avatar for nicolasmarie
0
167
Member Avatar for Ricky65

Hi I'm attempting to copy a file to a buffer using the ReadFile Win API. It works fine for text files but for other file types, for example .exe, it only copies the first few bytes. I can't identify the problem. I would greatly appreciate it if somebody can help. …

Software Development api c++
Member Avatar for Ricky65
0
115
Member Avatar for Lolalola

Hi, why i can coding only 128 bytes text? Work: string plainText = "1234567890123456"; Don't work: string plainText = "12345678901234561"; Don't work: string plainText = "123456789012345"; [CODE="C#"] string plainText = "1234567890123456"; byte[] plainTextBytes = Encoding.UTF8.GetBytes(plainText); byte[] keyBytes = System.Text.Encoding.UTF8.GetBytes("1234567890123456"); byte[] initVectorBytes = System.Text.Encoding.UTF8.GetBytes("1234567890123456"); RijndaelManaged symmetricKey = new RijndaelManaged(); symmetricKey.Mode = …

Software Development
Member Avatar for kvprajapati
0
174
Member Avatar for neosonic

Hi All, I have 2 picturebox in vb6. Both of them has the same dimension and the slightly different picture. they are house plans, one for the ground floor and another one for the upper floor. I want to overlay them. But how can I do it? If I am …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
455
Member Avatar for Bonolo

Hey i just need a little help here,may tables are in a relationship so i want to update both tables so am using datarelation to do that but a get an exception(Column argument cannot be null).please help[code]OleDbDataAdapter adapter = new OleDbDataAdapter(OledbSql,conn); //adapter.SelectCommand = new OleDbCommand(OledbSql, conn); OleDbCommandBuilder oleBuilder = new …

Software Development
Member Avatar for kvprajapati
0
105
Member Avatar for Nirupams

Dear all, How do I set particular color in a specific cell in JTable using Netbeans ? I have searched using google but not found any significant answer. Thanks and regards, Nirupam.

Software Development java
Member Avatar for moutanna
0
143
Member Avatar for Usmaan

G'Day Everyone. I was wondering whether someone can help me with my Java project. I have two interfaces, say: Interface1 and Interface2. On both interfaces, there is one JButton. When the Jbutton is clicked, the current window closes and the other one opens up and vice versa for the other …

Software Development java
Member Avatar for Usmaan
0
90
Member Avatar for Exaktor

Hi, I have 4 searchbox and with them i can search in a Datagridview. But the problem is that they are not connected to each other. So what I want is that they are connected to each other. If i search in 'firstname' then the firstname displays but when I …

Software Development c c# c++
Member Avatar for phoenix911
0
270
Member Avatar for adity

I have a table that outputs certain rows.But they are from different groups and the different groups are stored in different vectors.At present i am adding all the rows using the following code : [CODE] m_vector.addAll(match1); m_vector.addAll(match2); .. m_vector.addAll(matchn); [/CODE] Here match 1 to match n are the different sections.I …

Software Development java java-swing
Member Avatar for javaAddict
0
183
Member Avatar for shubhamshah

Hey guys, Once again i need help and this time i have no idea how to do it. I would love it if someone could help me out here =) . Basically what i want to do is open a txt file using openfiledialog which i have set out and …

Software Development regex vb.net
Member Avatar for shubhamshah
0
87
Member Avatar for peppermints

The commented part is where I believe the issue is at. [CODE]from livewires import games, color import random games.init(screen_width = 640, screen_height = 480, fps = 50) class Paddle(games.Sprite): image = games.load_image("paddle.bmp") def __init__(self): super(Paddle, self).__init__(image = Paddle.image, x = 10, y = games.mouse.y, bottom = games.screen.height) def update(self): self.y …

Software Development python
Member Avatar for TrustyTony
0
615
Member Avatar for satimis

Hi folks, C++ and Java are platform independent. It is for sure. Java is a resource hog. The learning curve of C++ is quite steep at start. What I'm going to use C++ is to build a platform independent software with sound and graphic integrated as well interactive. Would C++ …

Software Development c++
Member Avatar for Stefano Mtangoo
0
133
Member Avatar for pirateninja1111

how would i keep adding a random integer to the end of an arraylist? the amount of random numbers to be added is not set

Software Development java
Member Avatar for jwenting
0
89
Member Avatar for vanalex

Hello everybody. I want to make a piece of code that its main job will be to swap rows in a 2d char array. I wrote the following piece of code: [CODE]#include <iostream> using namespace std; void swap(char *s1, char *s2); int main() { char arr[3][10]; cout << "give me …

Software Development c++
Member Avatar for WaltP
0
346
Member Avatar for saggykulji

import java.util.Scanner; import java.util.Deque; public class MyDeque { private int maxsize; private int [] queArray; private int front; private int rear; private int nItems; public MyDeque (int s) { maxsize = s; queArray= new int[maxsize]; front=0; rear=-1; nItems=0; } public void insertFront(int j) { if (front==0) front=maxsize; queArray[--front]=j; nItems++; } …

Software Development java
Member Avatar for javaAddict
0
604
Member Avatar for schwab

I need to make a towers of hanoi program using vectors. the code I came up with works fine without the vectors. I have no clue how to make it work with vectors. any help? thanks [CODE]#include <iostream> #include <vector> using namespace std; void towers( vector <int> &disks, int start, …

Software Development c++
Member Avatar for WaltP
0
201
Member Avatar for abdulraqeeb33

Hi, I have an android application that requests a list of objects from a servlet. The first time I run the android application it works fine by sending the correct list. But when I run the application for the second time, it returns the list that it has already sent …

Software Development android java
Member Avatar for jwenting
0
117
Member Avatar for pritesh2010

hello everyone i had created 5-6 crystal report in my vb.net project with back end sql server 2005 and i had given my path for crystal report. after this i had creted setup and deployed at customer machine but there it dosn't shows any report instead of it gives an …

Software Development vb.net
Member Avatar for kvprajapati
0
182
Member Avatar for john2342

Hi, what does this code exactly do? implements other class to have the same methods, and then compares two objects of x with y and then returns it to back to the other class?? [CODE]import java.util.*; public class TableComparator implements Comparator<customerTable> { public int compare(customerTable x, customerTable y) { return …

Software Development java
Member Avatar for vchandra
0
106
Member Avatar for sachintha81

How to register MIME types and file extensions to IIS? We have a web service, for which to work a particular file extension (.jdf) needs to be registered under MIME types in IIS. Usually what we do is after installing the service (by executing setup file) we go to the …

Software Development file-system windows-vista xml
Member Avatar for sachintha81
0
295
Member Avatar for eDeloa

I get the following errors on the line with "static const string ...": [CODE] error C2059: syntax error : '{' error C2334: unexpected token(s) preceding '{'; skipping apparent function body[/CODE] when trying to compile something like this: [CODE] #ifndef TEST_H #define TEST_H #include <string> using namespace std; class Test { …

Software Development c++
Member Avatar for kvprajapati
0
2K
Member Avatar for chinnaedu

HI all, am working on an opensource project(in Linux).. I need to modify the string ,which is a part of the Folder,File,and others as such.. I have code to replace the string which is in content of the file....but i want the replacement to be done on the folder names …

Software Development shell-scripting
Member Avatar for chinnaedu
0
86
Member Avatar for onlyonebui

Hello everyone! Please Give me some guidance if u have any idea. im doing a database using vb6 and access. im viewing my database data from access to vb using listview. each data in database have its own picture or image to display. in the form where i put the …

Software Development display image listview visual-basic
Member Avatar for tsmvasanth
0
242
Member Avatar for Hidden_mistakes

Hi i am hacking a pong game into a racing game. At the moment i am trying to blit to a half screen with player A on th right and B on the left. any one know why it isn't working? I am using Visual C++. [code]/* Pony Pong #include …

Software Development c++
Member Avatar for Salem
0
102
Member Avatar for tanvirahmad

Hi experts I m creating a project in vb .net I have dataset xsd and a crystal report file when in xsd file I add any one table , in crystal report “database Field/ Project data/ADO .NET dataset/” show table & fields but when I add any more table or …

Software Development dataset vb.net
Member Avatar for tanvirahmad
0
84

The End.