43,549 Solved Topics
Remove Filter ![]() | |
how do you fill an object such as a rectangle with a colour using setfillstyle(); ?? I dont want to use flood fill as i am having more problems with that.. Software Development c | |
I keep getting a error for adding strings and integers together. how can I fix this? It is in the line hours.append(hWork + "\n") [CODE] hours=[] hWork="1" while True: employee=raw_input("\nPlease enter the employees' first and last name. ") hWork=int(raw_input("How many hours did they work this week? ")) if hWork < … Software Development python | |
Hi, I keep getting the error Traceback (most recent call last): File "<string>", line 11, in <fragment> builtins.TabError: inconsistent use of tabs and spaces in indentation (<wingdb_compile>, line 11) With the lines being [CODE] for line in datafile: pricedata = line.split(",") newdata[pricedata[0]] = pricedata[6][/CODE] I have taken out and put … Software Development python | |
Dear All, I am not only new to python, but completely new to programming in general. So please don't laugh (too much) of this certainly dumb question. I was going through the first pages of "A Byte of Python" and decided to change a bit one of the models and … Software Development python | |
Having a problem with assigning a string in this linked list, any ideas? the line that reports an error is highlighted in red. I would expect this to work as variable 'name' is a char array and i am simply assigning the string "Vin" to it. [CODE]#include<stdlib.h> #include<stdio.h> typedef struct … Software Development c linked-list | |
I am just beginner in c++ so I am weak in debugging c++ codes. I am having problem with the code below. It is showing segmentation error and i am not able to remove in from the code. I am using g++ editor in linux. #include<iostream> #include<string.h> #include<stdio.h> #include<stdlib.h> using … Software Development c++ | |
Dear All I am a newbie Java Learner.I try to learn over Java API Docs.But still I need some help. I have a gui which consist of four textfields(tf1,tf2,tf3,tf4) and a button(b1). If I press the button(b1)"Register", I want my action write whole textfield sources into a text.txt file by … Software Development api gui java java-swing | |
Hai, I am new java developer. Now i am doing one struts application. In my application, at the User registration time, i need to Encrypt the password field and then i like to store into the database. After that the same user will be logging, at the moment the database … Software Development email encryption java | |
its a simple car parking fee calculator that uses timer start and stop value to calculate hourly fee.... Software Development vb.net | |
Dear all, I need to send a string value along with an 'Enter' keystroke from an active form to a multi-line text box in an inactive form. Tell me a way to do this in VB6. Thanks. Software Development visual-basic | |
Dear Experts I have loaded a picture in PICTUREBOX1 by this command Me.PictureBox1.Image = Drawing.Image.FromFile("D:\C2007\BITMAPS\pict.jpg") How to store this picture SQL server 2005 table1's IMAGE column? I do not want to store image path in table. I want to store picture in image column in any format. Reason: If I … | |
Hey everyone. BKJ here, need some help with a homework, really appreciate some help. Heres the question: Write a program that reads one line of text, one character at a time, and then prints it with all its blanks, commas, astricts (*) and periods removed. Heres my answer:[CODE] #include <iostream> … Software Development c++ | |
[CODE]#include<stdio.h> int main() { int i,j,k,c; char s[1000]; //array to store the input string for(i=0;(c=getchar())!='.';++i) //string to be ended with '.' { s[i]=c; for(j=0;j<=i;++j) { if((s[j]==s[j-1])&&(s[j]=='\n' || s[j]=='\t' ||s[j]==' ')) { j=j-1; } } for(k=0;k<=i;++k) printf("%c", s[k]); } return 0; } [/CODE] I am trying to create a program that … Software Development c | |
Hi all ! I 'm working with my friends in a basic game project ( it 's just a newbie one, though ) I 've searched and tried all tips that I 've found : setting the include Directories, adding the Linker, copying SDL.lib and SDLmain.lib to VC++ lib folder, … Software Development c++ visual-basic visual-studio | |
So, I'm having another problem this time... I'm on Windows 7 x 64, working with VC++ 2008 Express I've been working on this DX10 tutorial up to this point where I tried to build my project and got this : [CODE=CPP]error LNK2019: unresolved external symbol _D3D10CreateDeviceAndSwapChain@32 referenced in function "void … Software Development c++ | |
I have this error when debugging called Debug Assertion Failed , does anyone know what that means? Im using Visual C++ 2008. [CODE]void merge (string alpha, string beta) { string temp; string temp2; stringstream insert(alpha); stringstream insert2(beta); // Insert the string into a stream ostream_iterator<string> output(cout, " "); vector<string> words; … Software Development c++ | |
[code]def main(): splash() wordTotal = 0 longestWord = 0 fin = open("constitu.txt") for line in fin: #n = fin.readline() wordLine = line.split() #word = wordLine.split() wordTotal += len(wordLine) #if len(word) >= 15: #longestWord += 1 #print word print "This constitution has ",wordTotal, " words." def splash(): print "This program is … Software Development file-system python | |
Hi, I am using c# to update and view the student_Teacher simple database in sql. I used textboxes with binding navigator to view and update the teachers info and datagridview for the students, so 1 teacher per many students is the output. I have no problem for searching, editing and … Software Development | |
I have python 2.5.2 on my Debian system n want to upgrade it to python 2.6. Got to know that apt-get install package searches for package in /etc/apt/sources.list I have downloaded python 2.6.2. How to add an entry to the file /etc/apt/sources.list ? :( | |
Hi all, I've written the code to create a digital clock using a label and it's all working dandy. Now though, I want to take it to the next level and use images for each of the digits instead of a simple label to make the clock fit more with … Software Development vb.net | |
I have been all over the web (and through several books) in an attempt to get an answer to my problem. Briefly, I am trying to get the contents of a string array expressed as the header text for datagridview columns by the calling that array from a listbox. There … Software Development vb.net | |
Hi all, Thanks for reading my post! So up until now I've been using Emacs (or Aquamacs on my Mac - essentially the same thing) for software development and I really do find that I can work very quickly with it. Recently, I've been thinking that maybe there is something … Software Development c++ ide mac-software machine-learning | |
im doing this project to work it prints out all information except the radius it just gives 0,0 but needs to give locations provided in code. [CODE]#ifndef SHAPE_H #define SHAPE_H #include <iostream> using std::ostream; class Shape { friend ostream& operator<<(ostream &out,Shape &s); public: Shape(double = 0.0,double = 0.0);//default constructor double … Software Development c++ | |
I am very very new to perl and am not even sure if awk is what I should be using instead. Hopefully someone out there can help me put together a script for this problem. Here is some sample data (it is tab delineated in my file): 20 scaffold189_125 13634 … Software Development perl | |
I am currently trying to write a C++ program. The intent of the program is to guess what side a coin is going to fall on, heads or tails. I feel like I am very close to making it work. But I can not seem to figure out how to … Software Development c++ | |
![]() | Hey, For a while know i have been using Microsoft components and look and feel. I want to change that i want to be able to build my own components in c#. I thought i would start with something simple like a label and then move up to a text … Software Development ![]() |
Hi there, ok, im fairly new to c++ and have been trying to figure this out for ages: I have a text file i want to read in that contains lines and lines of lat long points; N50 42.22 W002 55.33 N50 42.22 W002 55.33 N50 42.22 W002 55.33 i … Software Development c++ | |
Hi, How do I find the frequency of each item in a list in Python? For example if there are five 'apple', two 'banana', and so on in the list, how do I write a program so that it displays the item as well as the number of times it … | |
Hey just wondering if someone could help me please with the following: board.h [CODE]public: Piece* Player1Pieces; Piece* Player2Pieces;[/CODE] (a section showing the initialization of the arrays) board.C: [CODE]Player1Pieces = new Piece[18]; Player2Pieces = new Piece[18]; char arrX[9] = {'a','b','c','d','e','f','g','h','i'}; for (int FootCount = 0; FootCount < 9; ++FootCount) { --->> … Software Development c++ | |
Hi, new to this so go easy. I'm trying to store a function i wrote in a file and call it with a header file rather than copy and paste as ive been doing but i keep getting error messages from the compiler. Can anyone point out what i'm doing … Software Development c++ | |
If I'm creating a new char[] to read in a text file: [code]char* pbuffer; pbuffer = new char[length]; [/code] what is the maximum size length can be? Would a std::string be better? pbuffer will only be allocated one time in scope no matter what, and length is not known until … Software Development c++ | |
Hello! I would like to be able to change the sequence of rows in the JTable by clicking on arrows, which will be placed on the right side of the JTable. Please, see an attached file to understand the idea. Well, could someone please give me some advices on how … Software Development java | |
Hi guys first off i want to say i really enjoy this forum i just signed up but i have referenced it before. so i have a question i need help with. here is the task at hand [QUOTE]A file called [URL="http://www.cs.oswego.edu/~odendahl/coursework/csc212/201009/assignments/03/tables.txt"]tables.txt[/URL] contains ranges that describe multiplication tables. Each line … Software Development java | |
Hi All Can anyone tell me about some good tool to auto indent the code c++/objective-c/c with some customization features. Software Development c++ objective-c | |
Hi I am battling for days now to send and receive the correct characters to hardware from my code. It works fine in tera term. I have to send ASCII 4 " alt 004" in tera Term to poll the datalogger to return the data stream saved in memory. The … Software Development | |
codes pls. the format should be like this. DATE: TEXTBOX1 = month/date/year TIME: TEXTBOX2 = time DAY: TEXTBOX3 = day today pls help me. needed ASAP. Software Development vb.net | |
Ive got a big problem. I need to read data from the serial port Ive used serialport from the toolbox , but dont know how to use it. I used to do it on a Amiga like this open serial("serial.device".0.2400.0) rem(open port) repeat GW.w=readserial(0) if gw>29 and gw<128 gewicht$=gewicht$+chr$(gw) rem(at … Software Development vb.net | |
Greetings;) I have a conversion program with a combo box miles to kilometres kilometres to miles .... type of thing. I have two labels and two text boxes From: Says what converting from typed in To: Outputs the conversion What I want to happen is the label From to match … Software Development c | |
I am new to vb.net and am using visual studio 2008. I am sending data back and forth using the serialport module. I am wondering if there is a way to send a hex byte, rather than having the module ALWAYS convert everything to ASCII. This is extremely obnoxious, and … Software Development vb.net visual-studio | |
I heard that in order to sell a software created using VB, we must buy a license from Microsoft. Is there anyone know where I can buy it? Or maybe someone can tell me how much it costs? Thanks in advance. Software Development vb.net | |
Hi, I have managed to create a connection via SQL Compact server to a local SDF database. I am able to query the data and retrieve the information. The only problem is trying to delete a record. When I run the code no error's are produced but the record is … Software Development open-source sql | |
Hi all, In my C# application I have a SQL database with a table called Customers. In this table I have several columns like Name, Street, ZipCode and City. I already managed to get data in and out the database with the use of datasets, tableadaptors and bindingsources and get … Software Development sql | |
Hi! I have a question regarding the SQL Select and "try...catch". The problem is that my SQL Select statement could sometimes return empty sets. For this reason I'm using "try...catch" statement. However, it doesn't work - the error message is generated for the empty set. So, how could I solve … | |
I am trying to figure out how to set a float for a project I am doing. Example I am trying to set a float for a score but I would like the input to be set where you can't input a number over a 100. This is the code … Software Development c++ | |
Hello: I've been attempting to create a treemap (binary search tree) insertion and display function for a bit and am puzzled by the recursive calls. I've tried quite a few things, but the problem seems to be in my mapInsert function. Here's all the code I've written so far in … Software Development python | |
The below is the main method, the wrapper method, and the array search method for a step recursive method used for finding the index position of the searched string. I am encoutering this problem when whatever search I put in, I get the return value of -1. Why and how … | |
Hello. I created a JTabbedPane on a panel and put it on a JInternalFrame of a JDesktop in SetObjects.java. Why can't I get a tabbcount for it after running an AbstractAction? [b]reference JTabbedPane[/b] [code] [/code] [b]reference JTabbedPane[/b] [code] M =(" --> in controlJMenuItems("+e.getActionCommand()+") var: e.getActionCommand() : xxxxxxxx<-- \n"); System.out.println(M); jtp=SetObjects.getCurrentJTabbedPane(); … Software Development java java-swing | |
Can anyone tell me where to get started to get an md5 or sha1 checksum of a given file. I've searced around and all I can find are utilities, I also looked at wincrypt but It seems to me that it just does passwords and strings and suchlike. Any help … Software Development c++ | |
I'm lost on this one. I'm creating a "Preferences" type form. On this form I have a tree view and a panel. I have created multiple user controls, each to be displayed in the panel when a certain tree node is selected. The problem I am having is finding the … Software Development display | |
Hi!!! I create my own custom control and everything is perfect except this event. I don't understand it. When i add my custom control to Window Form i add MouseDoubleClick event to this control. And when i start Application and try to double click on it is nothing happen. I'm … Software Development |
The End.