132,726 Archived Topics
Remove Filter ![]() | |
Hello, I am new to the Python language and I am having difficulty with the print statement. For example, when I type print 4, or print "Hello", i get an error. The error message is: [CODE]SyntaxError: invalid syntax (<pyshell#2>, line 1)[/CODE] When I use python on other computers, the print … | |
Hi. I just got started using wxPython and I was wondering how to create a button which transferred the user from one screen to another. To kind of illustrate what I mean, I created two files, 'main.py' and 'newgame.py'. I've made a button called 'New Game' in the main.py file, … Software Development python | |
Hiii [B] How to use SHFileOperation() ?[/B] u have any direct link to it... thanking u.. Software Development c++ | |
Write a program to read a list of non-negative integers, and to display the largest integer, the smallest integer, and the average of all the integers. The user indicates the end of the list by entering a negative sentinel value (use -1) that is NOT used in the calculations. The … Software Development python | |
Hi, I have a data object named dataCounter and a MSFlexGrid named gridCounter. I am trying to set the gridCounter.datasource to the dataCounter Dim dbMyDB As Database Dim rsMyRS As Recordset Set dbMyDB = OpenDatabase(App.Path & "\Counter.mdb") Set rsMyRS = dbMyDB.OpenRecordset("CounterTable", dbOpenDynaset) Set gridCounter.DataSource = dataCounter I keep getting a … Software Development visual-basic | |
Hello all, Can you help me please; I have a directory GENERAL, into this directory created many subdirectories. I want to create a Perl script, that can create *.tar or *.gz files all this directories individually. Is it possible? Thanks in advance. Software Development perl | |
I am writing a program that needs to get pixels from a window, and search for a certain range of pixel colors. I have been using getPixel, but that method is too slow for even 800x600. Does anyone know a different method/s? The window uses Direct X, if that helps... Software Development c++ | |
can some one help me how to use gotoxy in making a program that all the sentence in center !!!! thanks !!!! Software Development c | |
I'm having small issue with drawing on panel. Neither image or text appears, however background is set correctly therefore it has to be due some issue inside my paintComponent() method. [code=Java] import java.awt.Graphics; import java.awt.Color; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO ; import javax.swing.JPanel; public class … Software Development java java-swing | |
Hey, I wanted to create a Body Mass Index calculator. I've already created a seperate HTML file with a form where you have to type in your weight and height. So far so good, now I want to 'transfer' the data to my cgi script (unix shell script) as soon … Software Development shell-scripting unix | |
Hi All, Actually i want to dispaly the results of a select statement in a TextBox. Pls anyone give me an idea how to do it. Thanks Software Development display | |
hi how to create and open an excel file in vb.net when the button clicks.. Software Development vb.net | |
Hello there! can anybody here point me to any GUI programming in Linux tutorials. Been googling around but no good hits. Thanks. | |
if using tomcat with eclipse plugin everything works fine through the eclipses built-in browser. is it suffice to say if i copied the eclipses project to tomcats webapps it should work as well? heres how my eclipse project looks like: [URL="http://i40.tinypic.com/315e713.jpg"]http://i40.tinypic.com/315e713.jpg[/URL] invoking html is in WebContent\ WelcomeServlet.html proccesing .class in … Software Development java | |
Hey guys, I wrote a file the other day, which reads in data, adds a column, and then reads the data out to a specific file. I thought everything was working great, with all of your help; however, I am now running into another problem. The output data looks like … Software Development python | |
How do you close a QTabWidget? I have the code but when I click on the close button nothing happens. Software Development c++ | |
I know how to store data into a database if I know the value of what I am storing. For example: [CODE]sql="INSERT INTO nameDatabase (name) Values('Joe')"[/CODE] However, I want to be able to store data that I do not know the value of into my database. So I can prompt … | |
the following is a simple program that fragments standardized name consisting of 3 letters and 2 numbers then prints the full word, for instance spa11 print spanish eleven. Why is it not working? [code=c] char sname[4]; char snum[3]; // void strnumCpy(char *dest, char *source) { // NOT ACCURATE void strNumCpy(char … Software Development c | |
I am getting an error C2664: 'F_Ite' : cannot convert parameter 1 from 'double *' to 'double'.Will please anybody help me from this problem.I am new in C++. Thanks [CODE]#include<iostream> #include<cmath> #include<algorithm> using namespace std; // you should not use this statement. void F_Ite(double,double,double,double,double,double); // never ever declare global data … | |
hi all ..how are u ? i have a security project in java ...i have to implement the DES cipher and the Stream cipher ...with GUI ..where can i find a working source code for these ciphers ...can someone help plz ...and thnx in advance? | |
So I made a combat system, and for the life of me i cannot figure out how to make it start automatically. It does run, but it ignores the function at the beginning and doesn't run it. There is a similar text adventure I looked at as an example for … | |
[CODE]class Panelz extends JPanel{ public String test; Panelz(KeyListener ky){ addKeyListener(ky); test = "Empty"; } public void paint(Graphics g){ g.drawString(test, 10, 10); } } public class Begh extends JFrame implements KeyListener{ Panelz a = new Panelz(this); Begh(){ super("Press"); setLocationRelativeTo(null); add(a); setSize(500, 500); setVisible(true); setDefaultCloseOperation(EXIT_ON_CLOSE); } public static void main(String[] args) { … Software Development java | |
I am running into a baffling problem with my code. I am supposed to write a program to average the test scores for an entire class of students. In each case, the student should have taken 5 tests. You are to average the 5 tests. The program run should look … | |
This is what I need to do: Use a single-subscripted array to solve the following problem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in … Software Development c++ | |
[code]double F_Ite() { //Main Function Start //Locally Data_type Declaration And Initialization : int numElement =20; double *a,*b,*c,*d,*Fc,*Fd; a = new double[numElement]; b = new double[numElement]; c = new double[numElement]; d = new double[numElement]; Fc= new double[numElement]; Fd= new double[numElement]; for(int k=1;k<(NI-1);k++) { //Main 'for' Loop Start std::cout <<"\n"; system("pause"); std::cout … | |
Hi, I was wondering how to dynammicly hop a stream, as opposed to this static hop. streamin hopwiththis; streamin in; streamout out; mov eax,ecx; and eax,1023; cmp eax,0; jnz end0; movaps xmm0,in; movaps out,xmm0; end0: Software Development assembly | |
Hi folks, Guess what....I am kind of new to OO programming programming. However, I have this task to complete in next week and if someone is willing to help, would be much appreciated. Task: Given input file A, translate the content to produce output file B File A: Consists of … Software Development java | |
My application uses many such packages which are not inborn sun packages and need to download and configure them for application to import properly. like import org.apache.commons.lang.StringUtils; or like import org.apache.log4j.Logger; etc. and also the java advanced packages like group of javax 's packages, I dont wanna to download the … | |
I am a beginner I have to write a code in straight "C" the code has to read from a file from c:\temp c:\temp\numbers.txt inside that txt file are the numbers 2 4 6 8 -3 20 30 40 60 80 100 200 It reads the txt in my code … Software Development c | |
Hi every body!! I have a Question that I could not Find any answer For it:icon_cry: How Can I see The implementation Of the Build in classes in C++ class int , float , string , ostream ,.....and So on??? Pleaseee give me an answer??:icon_redface: Regards,, Sara . Software Development c++ | |
Im new at C++ and am trying to teach myself. I want to ask the user of the program why they are feeling a certain way, but not do anything with the sentece. So its like -how are you feeling?- user -good- -why are you feeling good?- user- blah blah … Software Development c++ | |
I need write simple script,but I just started and don't know how to do this at all. And I need it before tomorrow. This is what I need. 1) Create a directory FileData and place four files into the directory. This part, I already did, but second still exist. 2) … Software Development shell-scripting | |
heloo any body i try to wrote a slr parser with c,but don't correctly work,my code is : [code=c] #include<stdio.h> #include<ctype.h> #include<conio.h> #include<stdlib.h> #include<string.h> #include<iostream.h> #define epsilon '^' char prod[20][20],T[20],NT[20],c[10][10],foll[10][10],fir[10][10]; int tt,tnt,tp,a; int follow[20][20],first[20][20]; void first_of(char); int count(int j); void rhs(int j); void read_tnt(); void read_tnt() { cout<<"For SLR parser: … Software Development c++ | |
Help please this is what i'm trying to do set a reminder in a differ form, for e.g i have input the contact in for in one form and and the contact want me to call them in a later date let say a wk to 2 wks from now. … Software Development gui | |
My problem is that i want to develop a project in which there is front end (window form) in vb .net in which there are diffrent field for book entry name,author,image etc. all this data is stored in back end sql server 2005 there is drop down list of books … | |
![]() | Hello, I want to ask you if there is some way how to print visual components like TButton with TPrinter? I've seen only examples how to print images etc. (which contain TGraphic). Thanks Software Development pascal |
hi all! i need to write a recursive function that checks whether a given sentence is a palindrome by using this function: int isPalindrome(char word[]); i need to define a helper recursive function with extra parameters, and write isPalindrome as a wrapper function. the helper function is : int isPalindromeHelper(char … Software Development c | |
Hello, I want to invoke oulook mail from my code in Delphi. It should be like if user select a menu option "Send Mail" , the new mail message window should appear . If outlook is not running aleady, it should start Outlook also. MS oulook 2003 and 2007 only. … | |
hello every1 i made a factorial program and the only thing i need to do is to validate: Whether it is empty or it contains letters Here's the code: [code=pascal]program factorial; uses wincrt; var counter:integer; number:integer; total:longint; Begin write('Enter your number '); readln(number); total:=1; counter:=1; while (counter<=number) do Begin total:=(total*counter); … Software Development pascal | |
Hi there, Being new to Vb.Net 2003, I need help to determine whether to Create new Record or Update an exisitng record in SQL SERVER table. In VB6 I used this logic to do that but in Vb.Net 2003, I am totally lost at it. Please Help me. Thanks. VB6 … | |
Hello I am doing an C++ exercise and the task is to write a program that prints all INT values between 32 to 255 and the corresponding ASCII characters. I have declared the variables to store the ASCII character and the INT like this: [code] unsigned char unchar; int i; … Software Development c++ windows-vista | |
Hi : I am beginner in using java , I tried to add bignumber using java my program enter numbers and add them , stop when user enter 0 then show the summation. [CODE] import java.util.Scanner ; import java.math.BigDecimal; public class CODE { /** * @param args */ public static … Software Development java | |
I can't figure out how to write a program that can play multiple sounds at the same time. I tried doing some pretty complex things with the Beep function but I finally gave up. Is there any function or something to that extent out there that will let me play … Software Development c++ | |
Hello I'm making a program where the user will be able to organise their orders so they see which ones are complete and incomplete. I want to allow the user to be able to delete an entry from a file (*.txt) as this will be used in two ways: 1. … Software Development file-system pascal | |
Hi guys Iwant to connect java to oracle ,but Iam not familiarneither jdbc nor in setting classpath however depending on my little information,I used the following code [CODE=java] import java.sql.*; public class OraThin { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("oracle.jdbc.driver.OracleDriver"); // // or // DriverManager.registerDriver // … | |
Im kind confuse about how PostQuitMessage works.. Im using like this: [CODE=cplusplus] case WM_CLOSE : DestroyWindow( hWnd ); break; //send WM_DESTROY case WM_DESTROY : CleanUp(); gsp_quit = true; PostQuitMessage( 0 ); //send WM_QUIT break;[/CODE] That is on my WndProc function. My message loop is like that: [CODE=cplusplus] while ( !gsp_quit … Software Development c++ | |
I'm having trouble using my homemade .h files in my multi-source projects. If I I only include the .h in one of the sources I can't use it in the others. But if I include it other sources it's considered redefining the include and it won't compile. Other .h's besides … Software Development c++ | |
Hey guys. In my Data Structures Class today somehow we ended up talking about the Monty Hall Problem for a little while. Anyways I got bored and wrote code to statistically check if it is correct (even thought I know it is). For those of you who don't know what … Software Development java | |
let say i have a very small functionality in one of the classes of a very big windows application project. i want to use that functionality or let say variable from a class library project, since the functionality i want to hire is not even 1/1000 of the who windows … Software Development | |
I hope I am postin gin the right spot.I am new to this site. I need help with sorting the grades, please. Can anyone help?Thanks [code=cplusplus] include<iostream> #include<iomanip> using namespace std; int main() { double *grades; //point used to point to an array that holds grad double total = 0.0; … Software Development c++ |
The End.