132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 … | |
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++ | |
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 | |
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++ | |
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 | |
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++ | |
Write a program to print * / * / * / * / * / * / * / using two child thread. One thread responsible for printing * and another for / Software Development java multithreading | |
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 … | |
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 | |
i want to edit records on datagrid,then update into access database! Please help me! Software Development | |
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# | |
:'(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 | |
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 | |
[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 | |
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 | |
[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 | |
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 | |
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 | |
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 | |
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. … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 … |
The End.