132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Zanbi

Pardon my newbness, I only just found this site today and I have been having this problem for a bit. Background: I am using Python 2.5.2 that I recieved from a CD from my college. My OS is Windows XP, and my internet provider is Internet Explorer. Problem: When I …

Software Development python
Member Avatar for lllllIllIlllI
0
1K
Member Avatar for BlackStar

Hello everyone I'm having a little difficulty, hopefully you guys can help or point me to the right direction. I'm trying to get a pointer from a class point to another pointer from another class. Naturally it doesn't work because the assignment operator doesn't allow us to do this so …

Software Development c++
Member Avatar for BlackStar
0
245
Member Avatar for tksrules

Hi, I have completed a C++ application.It is about 3.5 mb in size. I need to create a demo version of this application,The application should not work after 30 days of installing and using it.. Is there something any software that allows you to create demo versions or what steps …

Software Development c++
Member Avatar for Lerner
0
90
Member Avatar for SLORE

Okay, here's the challenge, I know its probably pretty easy, but i'm just starting to learn and I have the challenge problem that I can't figure out, any help/guidance would be appreciated! This program will accept two numbers from the user and display the sum of the square roots of …

Software Development c++
Member Avatar for SLORE
0
106
Member Avatar for Sky Diploma

I am getting a segmentation fault when i run the follwing program. This program takes in a const char* and returns the integer format. I also need advice on converting a C++ Octal or Hexadecimal Notationed string to an integer. Here is the code [CODE=C++] #include <iostream> #include <cstring> int …

Software Development c++
Member Avatar for tux4life
0
233
Member Avatar for anraevlus18

please help me.. am using turbo c 3.00 i'm gettin a compile time error : Lvalue required. ------------------------------------------------------------- [code] #include<stdio.h> #include<conio.h> #include<stdlib.h> int func(int x,int y) { int *ptr1=&x,*ptr2=&y; int **ptr_1,**ptr_2; *ptr_1=ptr1; *ptr_2=ptr2; printf("\nUsing function pointer : "); printf("\nx=%d\ny=%d",**ptr_1,**ptr_2); int sum=*ptr1+*ptr2; return sum; } main() { int *fnptr(int,int); // declare …

Software Development c
Member Avatar for Ancient Dragon
0
100
Member Avatar for Joukon

Hey all. First time user here :) Im making a Windows XP C++ console application with Code Blocks (GNU GCC Compiler). This program is written to control another program that is missing some features i need (read input from external source). Last thing im missing from my program is little …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
368
Member Avatar for David.lewing

I have programed before (QuickBASIC and Macromedia Flash MX) but I am new on Python I want to create a program in which you give it a keyword and it generates a cypher. Like this: (Built in alphabet) ABCDEFGHIJKLMNOPQRSTUVWXYZ (Asks for keyword) (Lets say the keyword is BLOCK) BLOCK (Adds …

Software Development flash python
Member Avatar for woooee
0
373
Member Avatar for RayvenHawk

I'm writing a simple number generator program and I'm trying to find an easier way to get a random number, store it then display it. The catch is I don't want duplicated numbers (each need to be different). here is what I have so far, it does work but I'll …

Software Development c++
Member Avatar for RayvenHawk
0
189
Member Avatar for Peyton

Hi, I am having a problem with the following function: [CODE]void calcEnergy( vector< vector<double> > &Energy, vector< vector<double> > &Data, const double Constant ) { double Time = 6; // store the change in time double energy ; // Temp variable to store energy double v1,v2; for ( size_t i …

Software Development c++
Member Avatar for ArkM
0
111
Member Avatar for legendarya49

would anyone be able to help me convert this c function to an assembler function? Any help would be greatly appreciated thanks. [CODE]void load(char x[][1000], int collum, int row, char ln) { int i =0; int j =0; for( i = 0; i < row; i++ ) { for( j …

Software Development assembly
Member Avatar for legendarya49
0
78
Member Avatar for serkan sendur

guys i want to debug an application without using a break point. the problem is i dont know which function of the class is called first, so i dont know where to put the break point. i want the debugger to stop when any of its method is called. is …

Software Development
Member Avatar for serkan sendur
0
87
Member Avatar for grisha83

Hello, I feel embarrassed to ask these types of questions but i can't get answers to them in my text book. So here you go: I have an assignment of copying the constructor writing clone() method and add() method. While i understand the idea of creating of clone and add …

Software Development java
Member Avatar for grisha83
0
111
Member Avatar for Vinzcent

Hey, I have a problem when I'm trying to delete an image file. I always get an error that says: IOExeption was unhandled. Acces denied because the file is beining used by another process. I do'nt know what process that could be and how to solve it. [CODE]private void comboBox3_SelectedIndexChanged(object …

Software Development file-system
Member Avatar for serkan sendur
0
76
Member Avatar for pdunc88

Hi there, I have an array of strings defined in the following way; [code] string wordbank[]={"yes", "no", "hello", "goodbye"}; [/code] My problem is I would like to create a seperate array of characters for each element of that array. Something of the form; char *word_0[]={'y','e','s'} The things I have tried …

Software Development c++
Member Avatar for pdunc88
0
90
Member Avatar for jyo_84

can any one help, need a program to search a particular word in a file (its a .dat file ) then count the number of it occurrences in the whole file, output the count on console. I have not worked with programs before..........

Software Development c
Member Avatar for mayank.cracker
0
76
Member Avatar for rana03

Hi, I am working on a assignment where I have results sheet which is in form of text file; I want text file content to be written in excel sheet; generally we manually copy and paste the results in excel sheet. Our existing excel sheet has 70(sub-sheets) e.g result of …

Software Development perl
Member Avatar for mitchems
0
190
Member Avatar for BChanthorn

Hi all, I have wrote VBA code by export data into excel. But when i run it in some machine, an error occured. Error message is below: "Run-time error '-2147024770 (8007007e)': Automation error The specified module could not be found." Error occured in some compters only, not all. Any one …

Software Development email visual-basic
Member Avatar for ricosuave
0
393
Member Avatar for guest7

Hi, I wish to know that the cause of the following error when i run the program : a) Is memory leak in the program B) The system on which i am running the program has insufficient memory. [ICODE] terminate called after throwing an instance of 'St9bad_alloc' what(): St9bad_alloc[/ICODE] Thanks

Software Development c++
Member Avatar for drjay1627
0
116
Member Avatar for itslucky

hi, Dear Friends i am developing LAN chatting software in java. i got a confusing problem, i.e when a user do chat while opening chat_Window, and at that same time if he open another chat window, then he types the message in old already opened window the messages shows in …

Software Development gui java
Member Avatar for VernonDozier
0
126
Member Avatar for khusani

Hi all, I am new to image processing :rolleyes: . what i want to do is read the header section of an image of any type (jpg,bmp,gif ...etc) and show it on the screen. then save the header in a text file and the new image (without the header in …

Software Development image
Member Avatar for thazel
0
119
Member Avatar for smsamrc

can anyone please tell me a way to calculate any given factorial number using trees.

Software Development java
Member Avatar for smsamrc
0
72
Member Avatar for Boudou

In the following program, implement the function a. int *biggest(int *a, int count); This finds the largest element in an array of integers. #include <stdio.h> #define SIZE 16 int* biggest(int *a, int count); int main(void) { int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, …

Software Development c++
Member Avatar for khusroo
0
136
Member Avatar for funkyfresh

Before I explain what I mean in the title, I want to say that I 1) Have very little experience with python, so take anything I say with that in mind. I've only read about it, haven't really used it (although I have installed it), 2) I [B]want[/B] to learn …

Member Avatar for jlm699
0
139
Member Avatar for Reprise

I tried searching the forum, but I couldn't find any threads that really dealt with what I'm trying to do here. I have a struct set up with three fields (shown below). [code] struct StudentInfo { char id[10]; double mark; char grade; }; [/code] [I]Note that the id MUST be …

Software Development c++
Member Avatar for Reprise
0
1K
Member Avatar for rahul8590

hi everyone , i am trying to access image files in java and then want to modify those bits present in the image . is there any standard package or utility which would help me to do that ...? i would be glad if you could enlighten me with other …

Software Development java
Member Avatar for kvprajapati
0
115
Member Avatar for jsully1

Can anyone suggest any resources that could help me learn Java GUI creation? I have been working on a lab assignment where we need to copy the Google Kitchen Sink example and my biggest problem has been layout issues, whether I code by hand or use the IDE although I …

Software Development gui ide java
Member Avatar for jsully1
0
104
Member Avatar for dev18

[code=java] public static void setValues(PreparedStatement statement, Object... values) throws SQLException { for(int i = 0; i < values.length; i++) { if(values[i] instanceof Integer) { int value = (Integer) values[i]; statement.setInt(i, value); } else if(values[i] instanceof String) { String value = (String) values[i]; statement.setString(i, value); } } } public static ResultSet …

Software Development java mysql sql
Member Avatar for dev18
0
2K
Member Avatar for sandhya_r

hi, i am useing the netbeans for the first time n i am trying to connect to a MS Access DB through the wizard but i am not able to. I entered for a DSNless connection: Name:JDBC-ODBC Bridge. Driver: sun.jdbc.odbc.JdbcOdbcDriver Database URL: jdbc:odbc: Driver={Microsoft Access Driver (.*mdb)};dbq=C:\Users\Vamsi\Documents\PIN.mdb; the issue its …

Software Development java microsoft-access
Member Avatar for kvprajapati
0
137
Member Avatar for bigN

Hi, I have a question about UI design in NET. I am creating a scientific application with C# and VS2008. Currently I am using a tab control were till now I have 3 level tab depth (eg tab inside tab etc) which is not very convenient, nor user friendly. I …

Software Development c#
Member Avatar for ddanbe
0
431
Member Avatar for Lexter25

Can you tell me how to resolve my problem. i can reserve the matrix A and B into file, but how to read , i can't remember...above, shows what i pretend to do.. # include <iostream> # include <fstream> using namespace std; int main() { int matriz[3][3]; int x,i,j;//variables for …

Software Development c++ ios
Member Avatar for WaltP
0
289
Member Avatar for arumugam4all

How to do image Zoom in Zoom out in J2ME.. Help with Source Code..

Software Development image java
Member Avatar for peter_budo
0
283
Member Avatar for grandalf62

I would very much appreciate any advice on this. I am reading a single byte from the serial port and wanting to store up to a hundred of these. Essentially I need to check incoming data to see if the value of it has been sent previously. These are my …

Software Development c
Member Avatar for jephthah
0
89
Member Avatar for grisha83

Hello, I am working on the problem of creating an abstract class Shape also with Package shape and then creating a subclasses Circle, Square and etc. I belive, i don't have a complete understanding of an abstract. Anyways i keep getting an error: " Shape.Circle is not abstract and does …

Software Development java
Member Avatar for grisha83
0
163
Member Avatar for swargy

[CODE]private void menuButtonActionPerformed(java.awt.event.ActionEvent evt) { panel1.setVisible(false); startMenu.setVisible(true); img = new ImageIcon("DeathRun.png"); Graphics g = startMenu.getGraphics(); img.paintIcon(null, g, 0, 0); } [/CODE] The code is very simple for this method but here is my problem. I have a menu that I want to display an image behind. When I hit the …

Software Development image java
Member Avatar for swargy
0
101
Member Avatar for kinger29

I have a java applet on my website and i need it to connect to my mysql database. When I was trying to figure out how to do this i saw several examples that used jdbc. I'm confused can I use this to connect to my mysql data base at …

Software Development java
Member Avatar for kvprajapati
0
128
Member Avatar for sanatkumar

Hi all, I have a java program which runs repeatedly by calling to main functions in a loop based on a condition ..But after running for some time(say 30 minutes),it shows the follwing error and it terminate the program execution.But as per my requirement i want to run this program …

Software Development file-stream java pdf
Member Avatar for kvprajapati
0
105
Member Avatar for udeep.kansal

i want to retrieve 2nd row of a column from datareader object... i want to show 1st row value of datareader..... if seattype_code == "00", 2nd row value if seattype_code == "01"...and so on..... what method shud i use for dr..as it is not working that i tried..? dr = …

Software Development
Member Avatar for kvprajapati
0
640
Member Avatar for bmcutler011

[code]#include<iostream> #include<fstream> #include"d_nodel.h" using namespace std; void merge(dnode<double> *, dnode<double> *); //free function to merge the two lists int main() { dnode<double> *listA = new dnode<double>; dnode<double> *listB = new dnode<double>; double sz1, sz2; int val1; //first set of integers int val2; //second set of integers ifstream inFile; //declares the …

Software Development c++
Member Avatar for nmaillet
0
244
Member Avatar for power_computer

Ive used the search function just found one thing I needed more detailed help I need to a read file of float numbers no more than 100 numbers but can be less than 100 into an array I have made sample file contain 1 2 3 I have the following …

Software Development c++
Member Avatar for power_computer
0
98
Member Avatar for ElWape

If I have a class that has a vector as a private member, a get function to access the vector, and I iterator over the vector, the iteration only works correctly if I make a new copy of the vector: [code] class MyClass { public: typedef vector<int> Vector; MyClass(); ~MyClass() …

Software Development c++
Member Avatar for Ancient Dragon
0
143
Member Avatar for OffTheLeft

Hi all, I am in need of some assistance with addresses & pointers as my dysfunctional professor is of no help. (I'll be as succinct as possible.) First, the program must call three subroutines from main to fill "n" array elements with a given value; for instance, one must set …

Software Development c
Member Avatar for OffTheLeft
0
105
Member Avatar for applebiz89

What I need to do is build a type of database. Firstly have a few questions, whether what I have done it right...and how to do something else. This is my algebraic type for the database (correct me if its wrong) data Film = Film String String Int String with …

Software Development
Member Avatar for thoughtcoder
0
116
Member Avatar for Giffordw

Should I be able to use VB6 to read/write an Access 2002 db, where the executable is running on Win98 SE?? I've resolved the oleaut32.dll version issue and reference DAO 3.6 but still get "unrecognized database format" if I reference a 2002 db.

Software Development visual-basic
Member Avatar for abu taher
0
73
Member Avatar for scuzzo

I have everything almost done, the only problem I have is that I can't seem to get the linked list to advance when the terms start out with different exponents and instead of just printing the results I will tie them into a third list. Can you see what I'm …

Software Development c++ linked-list
Member Avatar for NathanOliver
0
108
Member Avatar for ihatehippies

I'm working on a simple update function to add to an existing program. It does a stat check of the source file and then copies the new file if necessary. This is easily accomplished with .py files. I've realized that I need a separate update app to delete a currently …

Software Development python
Member Avatar for ihatehippies
0
88
Member Avatar for vksmaini

Write a program to implement a survey that prompts respondents to enter an integral value within a specified range to indicate how they like a new product. Since the program must be adaptable to any arbitrary number of respondents and value ranges, define macro MAX_RESPONDENTS to represent the maximum number …

Software Development c++ legal
Member Avatar for rishabjain
0
318
Member Avatar for andyT

Hello, I'm trying to get the STL equal_range function to work on a data structure I've designed, but I may be trying to use the equal_range function in a non-standard way. Is there a way to get this to work? Basically, I have a vector of vectors of structures (elements) …

Software Development algorithm c++ data-structure
Member Avatar for andyT
0
190
Member Avatar for apgriffiths

I have some code that adds records to a database but it is quite common for there to be a lot of duplicate records. I am trying to write some code that will remove the duplicate rows in the database table. I am using table adapters for this task, i …

Software Development
Member Avatar for ndeniche
0
124
Member Avatar for JamesCherrill

OK, I'm obviously going bonkers here, but has something happened to the java code tags? Why doesn't this work in preview mode? [CODE=java] i++; [/CODE]

Software Development java
Member Avatar for JamesCherrill
0
157

The End.