64,152 Solved Topics
Remove Filter ![]() | |
Hello ladies and gents, Was wondering if any of you could help me out with the following, sometime ago I had to reinstall MS V++ EE and ever since then, when I enter for instance 'std::' or 'cin.' I don't get a list with all the possibilities it has, normally … | |
I'm working on calendar application, similar to one provided with instalation of Tomcat. There you have class1 with methods which provide data for class 2. I have no problem to compile class1, but getting errors while compiling class2. This apply also to Tomcat examples if you try to recompile them. … | |
How can I make a Tkinter window take up all my display screen area? | |
Hello, I've just installed a new script and i'm getting this error [code]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource[B]/home/www/ [/B]line 13 [/code] This is line 13: [code]while($row = mysql_fetch_array( $result )) [/code] Is this wrong? | |
hi I am new to C++ and I want to vrite some kind of "virus" for windows. The problem is, I dont want that command line opens when program runs. Its actualy unfinished loop, which beeps all the time. Now i want to know how to make "hidden" program. I … | |
Hi all - I am a newbie to this forum, but maybe someone there can help. I have a table using an Identity property. The purpose of it is to just have a unique id value... the problem is that the system automatically fills this table with lots of data, … | |
I'm going to have to include a lengthy bit of code, but its every necessary part for you to see what I need. [php]import random availableCountries = range(20) # <--- Used at games start, player's countries taken from here firstTurnsCountries = [] # <--- Player one's country possesion secondTurnsCountries = … | |
My program won't read the listbox correctly. The output from the print statements are as follows: [QUOTE]Dronfield Sheffield 2.20 ('1',)[/QUOTE] I want the list item "B-line" to = 1, but due to the wierdness of the value, it reads it as ('1',) It is meant to read from the passinfo.txt … | |
The following code comes up with a number that has 13 digits past the decimal point. How can I cut this down to 2 decimal places? [Let drivetimeexpense = (rstdrivinginfo.timefromhome * rstdrivinginfo.numberoftrips * 2 / 60) * 20] | |
how can i validate if a month has 30 or 31 days and febraury havin 29 days if leap yr and 28 if not | |
Hi There, I am in the process of creating a game based around the board game Diplomacy. anyway, I keep getting the following errors, and I have no idea of how to solve it. AlliedConflict error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: frmGameScreen; … | |
My current GUI program, in part, will display a button which the user may choose to press (or not, in some cases): [code] btn1 = Button(root ,bg="Black", text="HIT", image=image01,command=show_image2) btn1.configure(state=NORMAL,background='red' ) btn1.pack() [/code] This is basic and works fine. The issue I am having is that after the button is … | |
I've never actually ran a CLI based program outside of bluej. And after exporting one of my programs to a jar, I noticed I was not able to get any results when double clicking the jar. So, I'm guessing CLI based programs are run by a different method, or require … | |
My *.py script has some non-ASCII characters in comment lines and when I run it I am getting the following warning: sys:1: DeprecationWarning: Non-ASCII character '\xe5' in file /Users/haitran/Documents/Sophomore UCB/Python/cedict.py on line 118, but no encoding declared; see [url]http://www.python.org/peps/pep-0263.html[/url] for details The thing is I went to the indicated page … | |
Hello, I am trying to create a program that uses a dictionary to associate American states with their capitals. It has an interactive loop that exits when the user enters "quit". The user types the name of the state and the program responds with the state's capital. I will show … | |
How can I best center a Tkinter window on my display screen? | |
hello all i m having a really silly problem. i have written some codes with mscomm, but i dont know why all of a sudden i m having this problem. the problem is: [CODE] Private Sub Form_Load() With MSComm1 .Commport=1 .Settings="19200,N18,1" .InputLen=0 .PortOpen=True '(Here the error message says that the … | |
heres a question: i understand that array insertion is carried out in constant time - O(1) - but if the array is 2D (n*n), then would this still hold true if i wanted to insert the same value into each array? let me explain a bit better, if i have … | |
I am writing a C program using Dev-CPP. It uses a 3 dimensional array to store around 350 values as shown below. [code=c] db[2][0][1]=3278; db[2][0][4]=2368; db[3][0][3]=6686; db[2][0][6]=7224; .. .. .. [/code] I get a valid output when I read the array with the following code [code=c] zone = db[2][0][1]; printf("%d",zone); … | |
I have made a list of names and everytime i want to select a value in the listbox it should give me a result in the Entry box can someone please help me. This is my listbox values [code] musicfolder = [ ["CollegeRock/"], ['RnB/'], ['HipHop/'], ['Build/'], ['Buy/'], ['Techno/'], ['Jazz/'], ['Classic/'] … | |
Simply, I need to understand the basics of button binding. I have researched [URL="http://www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm"]this[/URL] already and have decided just to ask for instruction. For example, one of the programs I am building currently will require, at a certain point, user input; I want to be able to know when a … | |
Hello all - I've got an interesting problem that I can't seem to solve, so any input on this would be greatly appreciated. I have a group of web pages. I'm passing several variables back and forth between those pages successfully. One of the variables is called sntime. Essentially, it's … | |
Hi, I cannot figure out why my fib problem is giving me the output below. I just want it to print when the fib is called and the value of n, when it returns and with what value of n, and the return value. This is what I have so … | |
Hi, I am trying to figure out how to print tracing information for Fibonacci numbers. output = Computing fib(4) Leaving fib(4) returning 3 Can anyone steer me in the right direction? This is what I have: [code]import math def fib(n): if n < 3: return 1 while n >= 3: … | |
I just writing the simple twenty one card game...now evth work and fine. And I put cards from 2 to A with concerning value.But when the debug step coming '0'comes to input with value '10'(K is worth 10 etc). It make me so confused. here is my code: [code]#include <iostream> … | |
is there an easy way to detect if the entire contents of one list are in another? if I have a list like this: li = [1,2] and I have another which will have random values, I want the program to do something only if every value of li is … | |
im going to be programming on a server using masm32 should i get the server sdk on microsoft.com web site or the normal one? does it matter? | |
Hello: [I]** I have been researching and experimenting with this with tutorials from many sources but can not even begin it to get it to work it seems.[/I] I have a very small yet important Python program that I must make into an executable file within a week's time or … | |
Hi Everyone! I need a little help with this problem. I am trying to import a class -- Student with object makestudent but I keep getting this error: [CODE]This program sorts student grade information Enter the name of the data file: p2sortin.py Traceback (most recent call last): File "C:\Python23\p2sort.py", line … | |
Hi all, I have one small doubt in query string. Can anyone know how many maximum characters passed via querystring through URL. Is there any limitation for sending characters in querystring? If anyone know answer for this kindly reply me... | |
This is what I have come up with but it seems like there should be a more simple way of programming it. [CODE]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self): return self.name def getHours(self): return self.hours … | |
From the posts in this website I see how to open an Excel spreadsheet from VB 5.0 but I don't see any examples of moving data (not an array) from vb to excel. Can anyone show me an example? Do you know of any books that would have this information? … | |
Hi, I am using Fedora core 5 32 bit Linux. Just wrote this small C++ prgram and saved it as test.cpp on the [URL="http://forums.devshed.com/#"]desktop[/URL] and then tried to compile it using the terminal with the following command [B]gcc test.cpp - o test [/B] but it is showing the following message … | |
Hi all, I know there have been several threads about getting card images into a GUI, but I'm flustered trying to understand why some things work and some things don't. Here's the code: [php] import random from Tkinter import * import Image, ImageTk class Card(object): suits = ["C","D","H","S"] values = … | |
Hi I am developing an automation system using PC. I have built quite a big hardware but when it comes to Visual Basic, I am a novice. I have done a lot but need help in using database. I know how to link it in VB, i.e by using datacontrols(i … | |
Help! I am trying to enter characters (for classroom grades) into my program and convert them to numeric values so I can get gradepoint averages. I can't figure out how to convert A-, A+, B-, B+, etc... Can someone help? This is what I have: [code]class Student: def __init__(self, name, … | |
hello all. This program is just a collection of functions to demonstrate various programming principles. What I'm saying is that don't worry about the overall function-it ain't all that... One of the principles is using a 'non member' friend function to display the output. I added this to the public … | |
I m new to perl and i have to develop such webserice which can use the perl script via html so that the source of the perl file cannot be displayed only the output is displayed. | |
I'm learning C++ language now but i don't know which IDE should i use.Someone recommend DEC-C++ to me but it a little terrible debugging. I don't want use the bareGDB and how can i do. thanks.:sad: | |
ok here`s the code [code]#include <iostream.h> void main() { int x = 0; cout << "Loliko si pa star ? >>>" ; cin >> x; if ((x >= 0 ) && ( x <= 4 )) { cout << "\n dojencek" <<endl; else //error here { if ( (x >= … | |
HI, I HAVE BEEN TRYING TO FIGURE THIS PROBLEM OUT ALL DAY LONG. CAN SOMEONE PLEASE HELP ME ALONG? I WILL TELL YOU THE PROBLEM AND THEN SHOW YOU WHAT I HAVE SO FAR. I AM TRYING TO MODIFY THIS RECURSIVE PROGRAM: [code=python] def fib(n): if n < 3: return … | |
In certain cases, it's correct for my app to die if it encounters a potentially dangerous condition... I'm working on a more detailed error reporting system, and among the things I want to list are; the object class that threw the error, and the method that threw the error. At … | |
i have installed djgpp through a cd ( it also has some software called Knoppix... don't know what to do with that... does anyone know?) so here is my problem: i made a c++ program on notepad and saved it with .cpp extension... now how do i compile it? do … ![]() | |
Just trying to make pickle work, but when I load the file the dictiionary is still empty. It's an addressbook, with the dictionary keys being names, and values being numbers {N:NUM} I've programmed pickle to save it to a file with a user specified name, and it does so. I … | |
Hello, I'm trying to read in a txt file that looks like: AAAA BBBB 1234 CCCC DDDD 4321 .... and here's what I've done so far: [code] char a[4]; char b[4]; int c; FILE *input= fopen("input.txt", "r+"); if (input==NULL) perror ("Error opening file"); else{ while(feof(input)== 0){ fscanf(input,"%4s",a); fscanf(input,"%4s",b); fscanf(input,"%d",&c); } … | |
Hey friends , Is there any way to change textcolor in C? I am not able to find any method... | |
Hi, I was wondering if anyone knew of a good memory leak checker (like valgrind's memcheck) for c++ win32 apps. | |
Hi all, I need help with an old C program, making it work in C++, and changing it a little bit. For now, can someone help me change this line of code to the new function in C++? Thanks and God Bless. Jonn. [CODE]cp = (char *) malloc(strlen(tbuff));[/CODE] | |
Hi all My first time with this forum:). I'm running python 2.4.4 and unicode enabled wxPython on Windows XP. I'm writing a gui application which requires users to be able to type accented characters easily into a TextCtr. To this end I have built a set of tools on a … | |
Hi, I have a controls in the footer row of a gridview that allow the user to insert a record into the data table bound to the gridview. The controls were each added into the columns by converting the columns to Template Columns and simply dragging and dropping the controls … |
The End.