132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for butterflyTee

# class.py # tpm # A program to calculate the volume and surface area of a sphere from its # radius given as input. [CODE]from math import * class Sphere: def _init_(self, radius): self.radius = radius def getRadius(self): return self.radius def surfaceArea(self): self.area = 4.0 * pi * self.radius ** …

Software Development python
Member Avatar for butterflyTee
0
132
Member Avatar for skalra63

i have the following code, however, the table that is created always starts at the begining of the document. so none of the text written beforehand can be seen. i also dont know how to write things after the table. [CODE]Private Sub wrd2() Dim c As Long Dim wrdApp As …

Software Development visual-basic
Member Avatar for skalra63
0
89
Member Avatar for tgreer

[B]Brief Summary[/B] I've written a Windows Service. It uses Process.Start() to launch a Console Application. The console application performs a File.Copy(), to copy a file from the local file system to a network share. [COLOR=Red]Problem: [/COLOR] The file copy fails. I get an exception that tells me "part of the …

Member Avatar for tgreer
0
391
Member Avatar for softwarecaz

hello on some examples, if the user presses F1, the help file comes, how do i create a .help file, is there a components for that

Software Development visual-basic
Member Avatar for Kegtapper
0
98
Member Avatar for chancellor

I need to be able to preview a report in Landscape format. I've set all the margins etc to be landscape format. However, it still previews as portrait now that I've removed some of the fields. I've not yet tried to print the report. When I leave the other fields …

Software Development visual-basic
Member Avatar for chancellor
0
258
Member Avatar for remedius

Hello! I have a dll library (AXACAC.dll) whuch was made in VS project. This dll exports one function: __declspec(dllexport) void CreateRasterFile (const char *pszFormat, const char *pszDstFilename) {} And I try to import this function in the DDK sample - unidrv interface plug-in: __declspec(dllimport) void CreateRasterFile (const char *, const …

Software Development c++
Member Avatar for remedius
0
116
Member Avatar for chelo77

I am doing a small assignement that has one class with two private members.....numerator and denominator. The question asks to make three overloaded constructors, some have arguements while one does not example .....fraction() now the deconstructor is basically has to print out the two private members now this works great …

Software Development c++
Member Avatar for iamthwee
0
790
Member Avatar for BURNEE

I am having a problem implementing the pivot_r portion of the program. I have all of the rest as we have been working on this program for a while but the darn pivot_r portion is killing me. Please any help would be GREAT! [code]/*-------------------------------------------------------------*/ /* Program chapter5_8 */ /* */ …

Software Development c
Member Avatar for Salem
0
209
Member Avatar for Tester99

Hello, Could someone help me, I don't know how to build project with Visual C++ toolkit 2003, that project has made with [I]Visual Studio .NET 2003 or is this generally possible.....[/I] Any suggestions?

Software Development c++ visual-studio
Member Avatar for WolfPack
0
236
Member Avatar for Mr.coolguy

Hi all, i am new to java field, can anyone help me out to create a data base for security or Guard to enter the details of the employee and his phone number and also to replace incase his idcard is broken?? help me out using Java/JSP thanks in advance …

Software Development java java-jsp
Member Avatar for Mr.coolguy
0
145
Member Avatar for neno14me

i have got this OOP project of implementing minesweeper using classes.Can anybody just hint me what classes i have to use and what would be their relationship like association,containment,weak containment and strong like that.anybody plz.If i failed to do so i would be getting an f!!!!!plz!!!!!!!!!!!!!!

Software Development c++ oop
Member Avatar for iamthwee
0
538
Member Avatar for jhdobbins

Alright... first off I hate fgets with a passion :) Anyway, I am wanting to read a file into a 2 dimensional array and then randomly select one of those lines to output... What am I missing here? [CODE]void displayQuestion() { /* fp is a FILE pointer. This pointer will …

Software Development c
Member Avatar for Salem
0
3K
Member Avatar for Excal1502

I am unsure why I am reciveing a segmentation fault: INPUT: ./a.out Enter the output file name (maximum of 15 characters): output.doc Enter the number of names to sort in lexicographical order: 3 Enter a name: John Smith Enter a name: Mel Gibson Enter a name: Mark Anthony Segmentation fault …

Software Development algorithm c++
Member Avatar for Salem
0
157
Member Avatar for Roujin

HI all could anyone please tell me where i can find some public domain source codes for Visual C++ 1.52, I am trying to teach myself programming as i dont have the patience for classrooms and i thought that some sample codes would give me some practice. I have already …

Software Development c++ visual-basic
Member Avatar for WolfPack
0
257
Member Avatar for Prahaai

1:) Please, how can i make Visual Basic 6 open a HTML file (with Iexplore, let's say), or one MP3 (with Media Player instead of Winamp, let's say), when i click a button? It is possible? I mean, for the HTML, i need the default program to open the file, …

Software Development visual-basic
Member Avatar for Comatose
0
225
Member Avatar for worms707

I have the following code This is the Point header file [code] #ifndef POINT_H #define POINT_H #include<string> using namespace std; //Class Point represents points in the Cartesian coordinate class Point{ protected: double xCoord, yCoord; //coordinates of the point string name; //name of the point public: Point(); //default constructor Point(double, double, …

Software Development c++ ios visual-studio
Member Avatar for Bench
0
1K
Member Avatar for Katrix36

Hey all, Would anyone be able to help me out with some code to count how many characters there are in a string e.g. A label disaplys the number of characters that the user has typed into a memo. Katrix36

Software Development pascal
Member Avatar for daycartes
0
218
Member Avatar for softwarecaz

hello i have been told that there is a different method of writing this, such as using if, then , else, i have tried it and am getting all sort, do i need to use, if else then, or if else, condition to get the same result, i don't want …

Software Development visual-basic
Member Avatar for George Jump
0
121
Member Avatar for arrogant

can any body help in implementing linked queues and also iterating it from the external main program????:?:

Software Development c
Member Avatar for SpS
0
115
Member Avatar for erez131165

I need this script: [URL="http://www.jscode.com/js_auto_bookmark.shtml"]http://www.jscode.com/js_auto_bookmark.shtml[/URL] i just dont know how to make the link as a picture, insted of "bookmark us!" text/ any help with this ?:eek:

Software Development java
Member Avatar for iamthwee
0
115
Member Avatar for virgilpal

This problem is making me alot of problem : A C program is given. Determine, for each global variable, the number of occurences and the number of lines where it is used by refference. I accept any help. Thanks

Software Development shell-scripting
Member Avatar for virgilpal
0
149
Member Avatar for arekondaramesh

hai iam newbie in java programming. i declared like this: StringBuffer s1=new String Buffer("hello"); StringBuffer s2=s1; i want to know exactly how many objects created: 2 or 3 am not certain suppose i want to show the number of objets in System.out.println().... how i need to proceed.... regards ramesh :rolleyes:

Software Development java
Member Avatar for kiran kumar
0
225
Member Avatar for skeet123

I have an assignment dealing with algorithms and Big O notation. I am a little confusded about this notation stuff. Here are a few of the questions on the assignment: What is the O-notation for the following code? [code]cin >> N; for (int count = 1; count <= N; count++) …

Software Development c++
Member Avatar for Rashakil Fol
0
225
Member Avatar for turkish_girl

my delete operation doesn't work.the element which is added last is being deleted.ı want to delete the one ı want; not the last entered.how can ı do that?can you help me?thank you very much for your consideration... [code]#include <stdio.h> #include <stdlib.h> typedef struct student { char name [25]; int age; …

Software Development c
Member Avatar for dude543
0
155
Member Avatar for shimul_bari

Hello everybody, I am having a great problem in my class project. I have to play multiple files in different output ports of the sound card same time. Explanation: Suppose i hav 1 speaker and 1 headphone connected to my pc. Now i hav to play 2 files in such …

Software Development java
Member Avatar for shimul_bari
0
169
Member Avatar for Phaelax

Is there a way to set the number of spaces shown for a tab? (tab as in a tab character) I've made an editor using a StyledEditorKit and StyledDocument, but tabs give more spaces than I would prefer.

Software Development java
Member Avatar for Phaelax
0
218
Member Avatar for lwinn213

Hi All. I have been given a task where I have been asked to implement a Java RMI version of an SFTP (Simple File Transfer Protocol) Client / Server. It must use the following commands: list - list files in current directory cd - change directory get filename - copy …

Software Development client-server java
Member Avatar for jwenting
0
1K
Member Avatar for chelo77

I have problems with this small class program, have two classes...registration and course. I am writing a small function for registration adds the credits. I made an array called ptr of type course in the registration class. Now when i try to access credit a private member in the class …

Software Development c++
Member Avatar for dude543
0
131
Member Avatar for YoTaMiX

Hello to you all , Major problem in C , Files included Summary of problem : Program will not copy the feild "name" from struct "univ->std.name" properly. the rest of data is presented fairly. do not touch function "output_university" . Thank you , yotam , Israel .

Software Development c c# c++
Member Avatar for YoTaMiX
0
231
Member Avatar for antrea

Need help. What`s wrong? Read words from textfile (only [a-zA_Z]. Puts them to the binary search tree. If word already exists in tree has to add to counter in struct. [code]typedef struct puu_alkio { char sana[100]; int lukumaara; struct puu_alkio *vasen, *oikea; }puu_alkio, *puu_osoitin; void add_to_tree(struct puu_alkio *solmu, struct puu_alkio …

Software Development c
Member Avatar for Salem
0
170
Member Avatar for computergenie

Hi people, I am new to the world of Java and i am stuck on something. let me explain. let say you had a program you opened up. Usually if you click on an Help menu then click "about" it dispays information about the program like version, copyright etc. Do …

Software Development java
Member Avatar for jwenting
0
144
Member Avatar for lsu420luv

I am trying to read in information from an external file using ifstream. I use fin >> to input the data usually. Now I have to input a full name. Can anyone tell me what I use to do this? do I use a string type variable and then just …

Software Development c++
Member Avatar for lsu420luv
0
268
Member Avatar for sharma_vivek82

[code]import posix import string uid = `posix.getuid()` passwd = open('/etc/passwd') for line in passwd.readlines(): rec = string.splitfields(line, ':') if rec[2] == uid: print 'hello', rec[0], print 'mind if we call you bruce?' break else: print "I can't find you in /etc/passwd" :) [/code]

Software Development python
Member Avatar for alc6379
0
165
Member Avatar for baron

I can't find out how to complete • MIN_GROUP_SIZE x1 x2 .. xr at the expected time comp' Please help me i'm stack at this point for a week.. For the other function i had created a smart array with pointers.

Software Development java
Member Avatar for alc6379
0
169
Member Avatar for dave1323

Hello I am new to csharp and am having some trouble with a projec that I am working on. I have a database(access) and am using a window form for a login page. The login is supposed to check a couple conditions and then return an int from the database …

Member Avatar for alc6379
0
119
Member Avatar for tlyons86

Hello I am in need of help with my java programming class project. I am able to start the project but some parts I'm having major problems with. I need some hints to solving my problems. The description is so long because I want everyone to understand exactly what the …

Software Development java
Member Avatar for tlyons86
0
147
Member Avatar for daxwhit879

I am having trouble drawing on the form, PLS help!

Software Development vb.net
Member Avatar for daxwhit879
0
74
Member Avatar for frenzy44

hi i just started programming so im very new to all this, i am writing a code and i am comparing a string in a struct to a string. one of them as you can tell is an array of strings, im not really sure if im breaking any rules …

Software Development c
Member Avatar for Bench
0
199
Member Avatar for bsdpowa

I have a header and cpp file.I'm trying to learn OOP so I did a small program that handles classes.In the header I have declared the class and in the main file I'm implementing the methods. m_prvi = first number m_drugi = second number m_rezultat = result So I call …

Software Development c++ oop
Member Avatar for bsdpowa
0
144
Member Avatar for iamthwee

How can I plot graphs in java? I mean to say is there any API I can use for plotting stuff like `y = 5x^2 + 3x - 3`: with the x and y axis ...and with units? ThanQ

Software Development api java
Member Avatar for iamthwee
0
120
Member Avatar for arekondaramesh

hai i need to address these things theoritically.... MAIN TOPIC: Migration of Weblogic Server 6.X to 8.1 SUB POINTS: JDK 1.4.1 JRockit JVM J2EE specification EJB 2.0 specification EJB QL JSP specification Java Bean specification Security (JAAS, LDAP v2 security realm) Weblogic Specification WebLogic Server Installation for Multi-Zone Operation on …

Software Development java java-jsp
Member Avatar for hooknc
0
311
Member Avatar for remedius

Could you help me please: I'm writing printer driver, based on standart unidrv and i'd like to use another library in my driver. But while compiling the driver I receive following errors: d:\WINDDK\2600.1106\inc\crt\istream(564) : error C2220: warning treated as error - no object file generated d:\WINDDK\2600.1106\inc\crt\istream(564) : warning C4530: C++ …

Software Development c++ printer
Member Avatar for remedius
0
346
Member Avatar for Katrix36

Hi all, I'm trying to create an onscreen keyboard for Microsoft word. At the moment, my onscreen keyboard can send any keystroke to microsoft word as long as the document is called "Document1". Is it possible to send a keystroke to any microsoft document of any title not just "Document1"? …

Software Development pascal
Member Avatar for daycartes
0
393
Member Avatar for amnezia

Iam confuse with cubic equation alghoritma and code. x^3 + ax^2 + bx + c =0 Please help me

Software Development c++
Member Avatar for SpS
0
1K
Member Avatar for butterflyTee

THE WINDCHILL TABLE IS RUNNING, BUT THE NUMBER IS NOT LINNING UP STRAIGHT. CAN YOU PLEASE HELP ME, THANKS [CODE]def windchill( vel, temp): wc = 35.74 + .6215*temp - 35.75*(vel**.16) + .4275*temp*(vel**.16) return wc def main(): print (" __ __ __ Temperature \n") print ("Speed \n") print (" 1 -20 …

Software Development python
Member Avatar for greatbear
0
105
Member Avatar for jack999

there is a problm in this programmebut i dont know what is itquestionWrite a C-Program that does the following• Read integer numbers from a file inp.dat• Calculate the sum, average, and multiplicand of even numbers and store the result and the even numbers in output file out1.dat• Calculate the sum, …

Software Development c
Member Avatar for Dave Sinkula
0
130
Member Avatar for greatbear

At the beginning I found Python was very good at its data structures , concise code, and some strong aspects ! but it's very difficult to solve a program with higher speed than C++ and java ! I'm very confused ! could you tell me why do you choose Python …

Software Development python visual-basic
Member Avatar for greatbear
0
98
Member Avatar for thare

can you tell me ! What's the difference between MS-Dos program and Windows program ? Is an application in C++ MS-Dos-based application ? Thanks !

Software Development c++
Member Avatar for thare
0
129
Member Avatar for ghadahelal

hallo all, i'm a new member. i need help in my program i want 2 know if there is a datatype called time. my program will deal with time as below 11:33:50,965 it will read 2 absolute times for 2 actions and then return the differnce. how can i do …

Software Development c++
Member Avatar for Ancient Dragon
0
173
Member Avatar for skalra63

i have a text box, which the user may enter cash for sales. however, it doesnt seem to recognise anything after a decimal point. for example, if the product costs £300.07, it will only calculate the change ( if any) or display an error message if the tender is 300 …

Software Development display visual-basic
Member Avatar for Comatose
0
101

The End.