132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aloishis89

I am very new to python and am learning it just for fun. I am attempting to use it for a small application that shuffles a string list. I need to get a list of about 50 last names in a random order. I tried doing [code] items = [thing1, …

Software Development python
Member Avatar for aloishis89
0
162
Member Avatar for SHWOO

IF I have seven objects of playerType player, player1, player2, player3...etc and I want to search to see if there is a certain player in these objects, how would I do that. I know my code isnt complete and is quite off but if someone could take my blindfold off …

Software Development c++
Member Avatar for WaltP
0
176
Member Avatar for Mr.UNOwen

I'm currently creating a program with some buttons and other stuff and I was wondering how do I create a background image with jframe? I don't see any set method for it. Is the there a way to do it?

Software Development image java
Member Avatar for vinod_javas
0
141
Member Avatar for gmunky

I'm working on a program that opens an html text file using a JEditorPane. I can read in the html file but i can't get the hyperlinks to work. I want it so that when the user clicks on a hyperlink word, it will open a different html file in …

Software Development java java-swing perl
Member Avatar for Phaelax
0
151
Member Avatar for stixoffire

I noticed on this forum and on the web when I go over a link or a double green underline link an info window is presented. How can this be achieved - any code samples would be appreciated ..

Software Development vb.net
Member Avatar for stixoffire
0
88
Member Avatar for pyguy25

This is a modified program from the word count program that I posted about. I am trying to calculate the average word length in a sentence. Here is my code so far: [code] def main(): print "This program will calculate the average word length in a sentence" print s = …

Software Development python
Member Avatar for ghostdog74
0
12K
Member Avatar for Sacky

I was having some compile errors with my code, along the lines of this: [CODE]Error 1 error LNK2001: unresolved external symbol "class _CD3D * __cdecl GetD3DClass(void)" (?GetD3DClass@@YAPAV_CD3D@@XZ) DLLBot.obj[/CODE] After some reasearch i found that the problem was directly due to this line: [CODE]class _CD3D { public: void __stdcall CustomSetTransform(D3DTRANSFORMSTATETYPE State, …

Software Development c
Member Avatar for Sacky
0
90
Member Avatar for fulyaoner

Hi to everyone... I am to write a code about finding the least coins number to make up an amount that is given by user. It is a trivial question for a programmer and I did code well. In Canada, there are 2 more currencies, Loonie = 1$ and Twonie …

Software Development algorithm c
Member Avatar for fulyaoner
0
407
Member Avatar for Falconkicker

First off please excuse me if i do not approach this correctly. This is the first time I have used this site for any help. I am working on my midterm project due no later than sunday at midnight and i am stuck along with other students at the same …

Software Development vb.net visual-studio
Member Avatar for WaltP
0
274
Member Avatar for nottoshabi

Ok guys I need some help with this code. I'm suposed to run this problem with it: [LIST] [*] Rewrite the program to include a static data member named numemps. This variable, which should be an integer, shoud act as a counter that is initialized to zero, and is incremented …

Software Development c++
Member Avatar for WaltP
0
162
Member Avatar for Luckychap

hi, please any one tell me what is function overloading and overriding. and next one is on O.S. one more que. what is the difference between process and thread thanks!!

Software Development c++
Member Avatar for ~s.o.s~
0
145
Member Avatar for kissiwat

Hi I've kinda hit an inspiration drought... Can anyone confirm that it is possible to return the value of several records within a linked list, add all the different values from each record, pass them as some sort of combined parameter into another file or record and be printed from …

Software Development c++ linked-list
Member Avatar for kissiwat
0
92
Member Avatar for lotsofsloths

OK, I have ben programming for about 6 monthes but never done real graphics!! I was wondering, how i could implement graphics into a program?? If this helps any i am using Visual C++ 2005 Express Edition...

Software Development c c# c++
Member Avatar for iamthwee
0
106
Member Avatar for dowen

{6,12,4,7,9} How do i write a method name serachMax that receives the list above (as an array of integer) as it's argument and return the largest value in the list and How do i create a method name countitem that receives that list above (as a referenced based linked list …

Software Development java linked-list
Member Avatar for MacGyver Orca
0
114
Member Avatar for jetyan

just like a no-purpose hunter, I wandering in Java's world;so honestly speaking,I am just a beginner. now I have a puzzle: in a Java program ,there are so many class files that I have no idea how to deal with them. give some advices,thank you!

Software Development java puzzle
Member Avatar for jwenting
0
113
Member Avatar for rodkay

Hi all, I require some help using ifstream. I want to open a file who's name is made up in part by a user enter string - this is the format of the filename ... [code] "Airports_" << airlineICAO << ".txt" [/code] i did try the following ... [code] ifstream …

Software Development c++
Member Avatar for rodkay
0
119
Member Avatar for i_like_pi

Hi, I'm a newbie to C++. I use Windows XP Home Edition and VC++ .NET 2003. I have just recently started creating large scale C++ projects with more than one file. I've been having troubles linking the files together. I solved the problem by adding "/FORCE:MULTIPLE" to the command line, …

Software Development c++
Member Avatar for John A
0
107
Member Avatar for RossSCann

Does anyone use MFC? I have a problem executing graphics functions. [code] [COLOR=#0000ff]void[/COLOR][COLOR=#000000] CMainFrame::OnTimer(UINT idEvent)[/COLOR] { idEvent++; //when a time event occurs do some pointG2.y-=3; //graphics pointG=pointG2; TimerEvent(); [COLOR=#008000]InvalidateRect(NULL, TRUE); //to call [COLOR=#000000]OnDraw[/COLOR] [/COLOR]} [COLOR=#0000ff]void[/COLOR][COLOR=#000000] Csail_boatView::OnDraw(CDC* pDC)[/COLOR] { //graphics functions here //they compile OK //OnDraw is called by the even …

Software Development c++
Member Avatar for RossSCann
0
131
Member Avatar for tigerkartik

hi im a student and hav t mak aproject on c or c++... so if anyone cud help me out

Software Development c++
Member Avatar for apurv
0
92
Member Avatar for santhosheph

Hello Freinds, I am in need of a shell script whiich rsyncs a folder from a server to my machine. My major concern is not a script that rysnc's but it should send a mail if the rsync failed for some reason while copying the files.. For example the remote …

Software Development shell-scripting
Member Avatar for rggjan
0
345
Member Avatar for tgreer

I'm writing a utility program. In fact, the program will be a Console application that will contain many static methods, each method being a specific utility. The application will take two command line arguments: filename, and utility name. Of course I want to run the method specified on the file …

Software Development data-structure
Member Avatar for iamthwee
0
175
Member Avatar for mailsteam

Is there any way to get the cuurent time using C in LINUX. I tried with clock_get time(). But i'm getting the same time for a particular amout of function call. The code i've used is given below. Is there any way to get the time in an higher resolution. …

Software Development c
Member Avatar for Lazaro Claiborn
0
119
Member Avatar for Lardmeister

I have for instance this function I wrote and want to assure that the argument is a number when I call the function. [code]def hypotenuse(n): "return the length of the hypotenuse of an isosceles triangle" return (n*n + n*n)**0.5 sides = 3.7 print hypotenuse(sides) [/code]Any ideas how to do this?

Software Development python
Member Avatar for jrcagle
0
645
Member Avatar for spacecowboy123

Hi All, The program I am writing is throwing up an error when it runs on this line [code] runArray[counter]++; [/code] i am trying to increment the number at location counter in the array. Is this the correct way to do this? Thanks

Software Development c
Member Avatar for ~s.o.s~
0
117
Member Avatar for seanx

[B]hello,,,, pls help me ,,, I need some VB Programming about Priority Scheduling Preemptive,,, [/B][B]preemptive priority scheduling with gantt chart tnx.. tnx.. seanx [/B]

Software Development visual-basic
Member Avatar for seanx
0
91
Member Avatar for kishore5001

Hi i am new to the discussion forum and i want to learn cpp. Why destructor with ~ is used in cplus-plus coding for every constructor? Thanks

Software Development c++
Member Avatar for Narue
0
92
Member Avatar for bakerybum

Hi All, I'm new to the forum....med programming experience. I've built a database application in VB4. It works fine in the VB environment. As soon as I convert it to an EXE and install it on my PC at work - it stops working. The first forum (password forum) opens. …

Software Development visual-basic
Member Avatar for Vic@Viev
0
302
Member Avatar for mailsteam

1.I'm Using Posix Timers. I Would Like To Kno Whether It Is Possible To Fire Two Timers With Same Signum. The Signal Event Function Is Different. 2. Is there any way to send an argument to the signal event function other than signum. the functions i used for timer are …

Software Development c
Member Avatar for mailsteam
0
132
Member Avatar for Dawmah

I need to read records that I created, written to a .txt file using a code and I d like to know how to use EOF in the code to get the programme to read till end of file, and to display them all as I click next. Code for …

Software Development visual-basic
Member Avatar for WaltP
0
84
Member Avatar for Matt Tacular

For my programming class, I have gotten to the lesson that involves overloading constructors and what not, but I have a problem with mine that I am possitive is a very simple syntax error or something. If anyone could be so kind as to take a look at the following …

Software Development c++
Member Avatar for kishore5001
0
133
Member Avatar for tsharma14

Hi Java People, I have one servlet , few JAVASCRIPTS, one JSP page. First when I login some processing is done at back in servlet and some variables are set. after login i enter into main JSP page which contains some BUTTONS. On click of every button I have some …

Software Development java java-jsp javascript
Member Avatar for jwenting
0
114
Member Avatar for Tekmaven

I'm getting into Java programming, and find myself at a loss for a good Java IDE for Linux. I'm running Mandrake 9.1 (I tried Gentoo, but I'm to much of a n00b to linux) Can you guys suggest any? Note to Dani: I know about Borland's JBuilder, but I want …

Software Development ide java mandrake
Member Avatar for jwenting
0
580
Member Avatar for SHWOO

I am writing a program which has these require ments 1.Program must be command-line based and interactive, allowing the user to control its operation by entering commands. 2. ability to accept new data 3. ability to search for specific previously entered data 4. ability to save data to a file …

Software Development c
Member Avatar for John A
0
231
Member Avatar for jaigurudev

dear sir, plz help i am in a thick soup. i am a student in my final semisters of IT and i need to develope a software for my project. Actually i wanted to devepelope a software for the automation of a restuarant. i have learnt VB and i know …

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

im making this game that is called PyTanks. If you want to know more about it please visit [URL]http://pythongaming.py.funpic.org/pythonmadegames.html[/URL] ... Anyway, I ran across this problem, how do you delet or remove a letter from a string. Lets say that my string is- string = "open sesame" I want to …

Software Development python
Member Avatar for jrcagle
0
5K
Member Avatar for Savage221

Hello. I'm stuck on a part in my program. Some numbers are adding up properly, others aren't. I assume the problem is that I'm using integers instead of doubles, however, how would you format the following in C? How to describe it, it's like a chain. I have to take …

Software Development c
Member Avatar for Lazaro Claiborn
0
133
Member Avatar for Maritime

Hello, anyone can help me to complete special grids on picture box. My program is running, but drawing is not so fast !

Software Development visual-basic
Member Avatar for Maritime
0
68
Member Avatar for maznil

I want build a staff information system use visual basic as a interface and microsoft access as a database. Please some one help me.

Software Development microsoft-access visual-basic
Member Avatar for Comatose
0
79
Member Avatar for GENERAL GUEVARA

Hi there... may sum1 help me... i need to know how to open Access data base from VB6??? THANKS

Software Development visual-basic
Member Avatar for Comatose
0
100
Member Avatar for d_maniger06

good day!.. i have this soap message that will be sent to a simple service provider simulator.. since this is only a simulation, i there will be only one service named leave (e.g. vacation leave, sick leave, etc.) [code] <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://leaveprocessor.blueprints.jbi.sun.com/"> <soapenv:Body> <ns1:processApplication> <appName>applicant</appName> <leaveType>type …

Software Development java xml
Member Avatar for jwenting
0
112
Member Avatar for linux

I just started Delphi and wanted to toy around with some of the features of it, so I started to. I made a TRichEdit box on Form1. If I run the application and try to type in the textbox, nothing appears, the cursor keeps blinking, as if I did nothing …

Software Development delphi pascal
Member Avatar for radu84
0
144
Member Avatar for Pumbaa_hughes75

need help with command line arguments and creating a package in java. i need to hand this in soon and obviously i cant do it can someone help me.

Software Development java
Member Avatar for Pumbaa_hughes75
0
108
Member Avatar for alaaharb

You are to write a numerical base converter. This application will present the user with a menu to select the originating base and a subsequent menu to select the destination base. You will loop through these menus until the user wishes to quit. You are required to break the code …

Software Development c
Member Avatar for thekashyap
0
123
Member Avatar for Lazaro Claiborn

I've been trying to figure what I'm doing wrong all day. I'm becoming discouraged. Can anyone help me out? [code=cplusplus] void stripSpace(string &str) { int i,j,len=str.length(); for (i=0;j=0;i<len;i++;j++) if (str[j]==' ') { str.erase(j,1); j--; } str[j]='\0'; } [/code] I just won't seem to stop until I get this fixed!!!! Any …

Software Development c++
Member Avatar for Lazaro Claiborn
0
157
Member Avatar for Duki

Here's my code... i put in some troubleshooting couts, but I can't figure out what's going on. #include <iostream> #include <iomanip> #include <fstream> using namespace std; int main() { const double INT_RATE = 0.10 ; const double FACTOR = 1.0 * INT_RATE ; const int START_AGE = 16 ; const …

Software Development c++
Member Avatar for Salem
0
178
Member Avatar for jnabeel

i am trying to write a program to take a string and arrange in alphabetic order but iam totally fail to do it please help me

Software Development c
Member Avatar for Salem
0
83
Member Avatar for pinder

Hi, I need to grab a specific information in the /proc/cpuinfo (MODEL NAME) and print it on the screen in python. How do I do that. Thx for helping this newbie

Software Development python
Member Avatar for pinder
0
101
Member Avatar for nelly12

this is the code( not a complete code) [code=c] int master(int argc, char *argv[]) { int slaves_count = 0; m_host_t *slaves = NULL; m_task_t *todo = NULL; int number_of_tasks = 0; double task_comp_size = 0; double task_comm_size = 0; int i; xbt_assert1(sscanf(argv[1],"%d", &number_of_tasks), "Invalid argument %s\n",argv[1]); xbt_assert1(sscanf(argv[2],"%lg", &task_comp_size), "Invalid argument …

Software Development c
Member Avatar for thekashyap
0
114
Member Avatar for covertx
Member Avatar for gabs

I am trying to use chinese letters in a c++ program I'm writing. does anyone know how this can be done? I know that: [code]TEXT("[COLOR=#800000]\u03a3[/COLOR]")[/code] will print out a latin letter, so how do I get a chinese character, and perhaps there is an easier way? I need this asap, …

Software Development c++
Member Avatar for thekashyap
0
131

The End.