64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for JoBe

Hello ladies and gents, I wanted to ask if any of you could help me out here, Ive got this program: [code] //Test programma voor Accelerated C++. #include <fstream> #include <iostream> #include <string> int main(int argc, char** argv) { int fail_count = 0; //for each file in the input list …

Member Avatar for JoBe
0
86
Member Avatar for walawala

Need help on this simple script... I am scratching my head... when I do echo $myhost it returns db3 However, when running the script, the first IF condition is always true... what went wrong? Thanks! Here is the script: myhost=`hostname -s` if [ $myhost='db1' ]; then echo "###############################################" echo "### …

Member Avatar for alc6379
0
164
Member Avatar for butterflyTee

I need help please to write this program. Numerologists claim to be able to determine a person's character traits based on the "numeric value" of a name. The value of a name is determined by summing up the vaules of the letters of the name where 'a' is 1, 'b' …

Member Avatar for alc6379
0
4K
Member Avatar for J_Search

I'm looking for a way to compare 2 lists of keywords and return the number of matches. I'm currently working with PHP and MySQL, but I'm not sure how to go about this task. Any suggestions are appreciated. Thanks, J_

Member Avatar for J_Search
0
228
Member Avatar for JabaPyth

For the Tkinter Text widget, is there a way to assign the selected text to a new tag?(other than 'sel',which changes)

Member Avatar for Ene Uran
0
124
Member Avatar for barry t

I have a database with two tables customers & sales what i would like to do is in the sales datagrid is to have a total column that calculates the quantity*price columns and shows the result in the total column i don't know if i need to do this with …

Member Avatar for plazmo
0
223
Member Avatar for complete

This has to be a simple question to answer. And I know how to do this in C++ but I don't know how it is done in Visual Basic. So I am not completely lost. It is just that Visual Basic is pretty new to me. I have written some …

Member Avatar for complete
0
114
Member Avatar for winbatch

I am trying to write a large file, but it always stops writing when it hits 2GB. (2147483647 bytes to be exact). I know it's not an O/S or disk issue (I'm on solaris) as I'm able to use the mkfile command to create a 3GB file. I'm using the …

Member Avatar for winbatch
0
203
Member Avatar for HI2Japan

Hi all, I am a beginner at this so sorry for my ignorance. I'm trying to make a macro that searches an Excel Spread sheet. I plan on using Data validation in cell A1 that the user selects the value they want to see, then I want them to be …

Member Avatar for Yomet
0
311
Member Avatar for stupidenator

Hi everyone, I am currently facing a problem with a program that I am writing. It is a computer simulation of the card game War. I am receiving this error [CODE]main.cpp:22: invalid conversion from `Card*' to `int' main.cpp:22: initializing argument 1 of `Card::Card(int)'[/CODE] Card is the name of one of …

Member Avatar for stupidenator
0
170
Member Avatar for JoBe

Hello ladies and gents, I just wanted to see what this small programs does so I tried it in Dev-C++ and in VC++ 2005, thing was, it worked in Dev-C++ but not in VC++ 2005 in which I got an error stating the following: [QUOTE]error C2664: 'MessageBoxW' : cannot convert …

Member Avatar for WolfPack
0
670
Member Avatar for hak

I know this is a noob question but where do i put my own code in this menu code for windows. [CODE]#include <windows.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM); /* Make the class name into a global variable */ char szClassName[ ] = "WindowsApp"; int …

Member Avatar for bumsfeld
0
203
Member Avatar for tankedup

Hi I have just been attempting to update my site. Apparently an applet I use now needs to become an object for XHTML. I have managed to do this and it works in Firefox and Opera ... but IE6 will not play ball. [URL=http://www.tankedup-imaging.com/xhtml/links.html]I've got a link to a test …

Member Avatar for tankedup
0
209
Member Avatar for Virii

Hello, currently I'm enrolling in college and I'm undeclared. I read up a few posts on these forums to take a look into them but I figured I would post myself to get feedback. My main goals are as follows: - Have enough programming language knowledge to do the following: …

Member Avatar for Narue
0
279
Member Avatar for JoBe

Hello ladies and gents, Ive downloaded the first four PSDK-FULL files and wanted to install these, but I don't know how exactly to do so. I tried to use winzip and extract them, but keep getting an error that says, failed to launch file: C\Documents and Settings\Johan Berntzen\Local Settings\Temp\install\setup\PSDK-x86.msi I …

Member Avatar for JoBe
0
187
Member Avatar for butterflyTee

:?: [CODE]#The number of lines, and the number of words. import string def main(): data = raw_input("Enter the path and name of your ") infile = file(data, 'r') data_file = infile.read() number_of_characters = len(data_file) print "The number of characters in your text is", number_of_characters list_of_words = string.split(data_file) number_of_words = len(list_of_words) …

Member Avatar for butterflyTee
0
93
Member Avatar for dhanu_shiv

I need to design a GUI based on PyAUI. Do anybody have sample codes or tutorials that show the working of PyAUI.

Member Avatar for vegaseat
0
390
Member Avatar for butterflyTee

[CODE]import sys def main(): usage = 'Usage: %s [options] <file name>\n' % sys.argv[0] options = 'Options:\n' options = options + ' -c, --chars print the character counts\n' options = options + ' -l, --lines print the newline counts\n' options = options + ' -w, --words print the word counts\n' usage …

0
82
Member Avatar for butterflyTee

import sys :o def main(): usage = 'Usage: %s [options] <file name>\n' % sys.argv[0] options = 'Options:\n' options = options + ' -c, --chars print the character counts\n' options = options + ' -l, --lines print the newline counts\n' options = options + ' -w, --words print the word counts\n' …

0
69
Member Avatar for butterflyTee

Word Count. A Common Utility On Unix/linux Systems Is A Small Program Called "wc." This Program Analyzes A File To Determine The Number Of Lines, Words, And Characters Contained Therein. Write A Version Of Wc. The Program Should Accept A File Name As Input And Than Print Three Numbers Showing …

0
93
Member Avatar for butterflyTee

AM I DOING THIS RIGHT, PLEASE HELP ME, SO ME MORE EXAMPLES ON HOW TO RIGHT IT :o C:\home\COP1000\a\3>python wc.py futval.py test.txt wc.py 22 103 699 futval.py 2 4 22 test.txt 52 223 1683 wc.py 76 330 2404 total

Member Avatar for butterflyTee
0
492
Member Avatar for allenhu
Member Avatar for Comatose
0
142
Member Avatar for Kegtapper

Trying something out of my area of expertise, and wanting to experiment with WebClasses Anyway when I start VB new IIS project - [IMG]http://www.kegtapper.net/test/DaniWeb-IIS.jpg[/IMG] Then I get an error regarding [IMG]http://www.kegtapper.net/test/DaniWeb-error.jpg[/IMG] Then the Dsr won't load and this error [IMG]http://www.kegtapper.net/test/DaniWeb-Dsr.jpg[/IMG] I have PWS 5/IIS server installed on this Win2000 system. …

Member Avatar for Comatose
0
127
Member Avatar for ilikerps

Hello, I know this question is stupid, but I cannot find an exact answer to it. I am using Eclipse, and have written some classes to be used as a small database editor for XML. It compiles and runs fine in Eclipse. However, I made it so that it can …

Member Avatar for ilikerps
0
301
Member Avatar for dhanu_shiv

Hello Everyone... i am right now facing a simple at the same time a difficult problem....is there any way by which we can change the default green colour in gauge to another colour in wxPython.... I tried doing it in many methods but all failed....can anyone suggest any solution...

Member Avatar for vegaseat
0
93
Member Avatar for rcwally

Please help me with the End on this problem. I just can't seem to finish it off properly. I keep getting a parse error on the last End. program ValueParameters (input,output); {Author: Cheryl Wahlheim Class: CS241XP Assignment: User Income and Tax Rate procedure} Var income, taxrate, totaltaxdue : real; response …

Member Avatar for mrmike
0
219
Member Avatar for juergenkemeter

Hi, I am thinking about using the Python Imaging Library to display the life cycle of a hair follicle gene. This life cycle is divided into four main stages: 1. Anagen 2. Catagen 3. Telogen 4. Exogen Gene name and corresponding life cycle stage will be stored in a csv …

Member Avatar for vegaseat
0
321
Member Avatar for stackOverflow

Hi, These are some of the few questions for which i couldn't find answers. :lol: . I was just hoping if any of you can help me out. 1.Write a "Hello World" program in 'C' without using a semicolon. 2.Write a C++ program without using any loop (if, for, while …

Member Avatar for Bench
-1
319
Member Avatar for HackWizz

Hi... m a new member n just started to learn c++. so please help me out... its simple I read in 1 of the replies that #include<iostream.h> is obsolete.... n one can use #include<iostream> But wen i tried it in d program it does not included file.. expectin replies... :twisted: …

Member Avatar for HackWizz
0
211
Member Avatar for IamRasheed

If I want to convert one type in another, I can use casts: [code]s = str(12.5) i = int(s) f = float(s)[/code] However, there doesn't seem to be a function cast, or even a statement cast. So how can I turn this string into a statement? [code]s = """for i …

Member Avatar for IamRasheed
0
109
Member Avatar for Prahaai

Hi. I am trying to make something similar to a RPG text game, in Visual Basic 6. I know what you want to say "it's not good for text games" but i have my reasons. The problem i am facing is this: let's suppose i have 3 main skills: meelee, …

Member Avatar for Prahaai
0
189
Member Avatar for Prahaai

As the title says, i want to make a mIRC like interface. This is what i have right now: one form called Form1, one textbox called Text1 and another one called "main". [code] Dim TMPtxt As String * 50 Private Sub TextTest() Dim tt As String tt = Text1.Text Select …

Member Avatar for Prahaai
0
189
Member Avatar for infmas

Hi, recently my VB6 freezes when I try to compile a Usercontrol. I really don't know what to do. Someone could help me, please? Thanks, Marco.

Member Avatar for Yomet
0
147
Member Avatar for bops

Hello again everyone, Im having trouble with this function for saving a file from a richedit control within a child window in my application. I have put in extra messageboxes etc to helo me find the error. when I implement this function with valid parameters I recieve the "Invalid handle …

Member Avatar for WolfPack
0
397
Member Avatar for znx

i want to use that in a snake game, i made the snake move but i can't control him .... ...how can i read a key without stoping the looping... if i use getch() it stops till i stroke any key...and the snake stops,then after i press another key makes …

Member Avatar for znx
0
145
Member Avatar for katharnakh

how to open a new window only when i click menuitem. for example, check out this following code, in which Toplevel window comes up as soon as u run the code. i dont want that. i want the new window to open only when click 'one' in the menu bar. …

Member Avatar for vegaseat
0
11K
Member Avatar for noman78

Hello have a good day is there any way to retrieve record number with each record in simple sql qry? e.g select "REC_no",name from "table_name" the result should display like this 1 ,noman 2,imran 3,Jose etc take care thanking u in advance Bye

Member Avatar for noman78
0
118
Member Avatar for JoBe

Hello ladies and gents, There's an exercise, well, more a question that goes like this in Accelerated C++: If the following code is legal, what can we infer about the return type of f? [code]double d = f() [n];[/code] What I can gather is that the return type will be …

Member Avatar for JoBe
0
559
Member Avatar for kdee

Hi! Please, anyone... I put a button1 on form1 and I want to open a form2 with it. It sounds so simple (With ms access it was!) :o I'm tryning to do this in Visual studio express now. What do I do? As I understand it has to be done …

Member Avatar for kdee
0
161
Member Avatar for Alexander1987
Member Avatar for Slavrix

hey boyz/girlz i need to make a code for a server status checker, how would i do it? at the moment the server is checked by using this [url]http://deep.phpwebhosting.com/~paradox/Chaos%20Knights/ServCheck/ServerCheck.php[/url] how can i convert that into a simple program that can run on the desktop?

Member Avatar for Slavrix
0
429
Member Avatar for Stoney

I an doing a program that uses the READ DATA statements. My problem is I can't print the headings. My program reads the data and displays it, but no heading before it. My other problem is adding up all the Pieces in the problem to display a total. I know …

Member Avatar for Stoney
0
151
Member Avatar for muthuivs

I need to change all the chancters from a string to uppercase. the toupper() function only works for charachters but not strings. My program looks like this: int main() { string myString; cout<<"Enter the String : "; cin>>myString; myString = toupper(myString); //this doesnt work, i guess since its not char. …

Member Avatar for beuls
0
253
Member Avatar for katharnakh

how to get the file dialog window and save dialog window in python. for example if select the File menu we can see Open menu option, when we click on that we get file open dialog window similarly when we click save as.... /save option we can see file save …

Member Avatar for bumsfeld
0
1K
Member Avatar for muthuivs

I have the logic all figured out for a nes program that will spit out labels with unique charactrs on it...Almost like barcodes, but nothing that fancy. My stickers will have something like this: ABCGIU101.DFF Like I said, I have the logic but I am not sure how to start …

Member Avatar for dwks
0
585
Member Avatar for bumsfeld

I am making progress learning Python. and English. I understands tuples, lists and dictionaries, but sets don't make muchly sense. Why use a set? What is a set good for?

Member Avatar for bumsfeld
0
246
Member Avatar for abell1234

can anyone help me convert this vba script to python [CODE]On Error Resume Next Dim pMxDoc As IMxDocument Dim pMap As IMap Dim pCurve As ICurve Dim pFromPoint As IPoint Dim dXFrom As Double Dim bSrefFromMap As Boolean '======================= 'Adjust the parameter below 'bSrefFromMap = True ==> the coordinates will …

Member Avatar for bumsfeld
0
242
Member Avatar for katharnakh

is there any tool like IDE which assists to develop the UI, like VB, drag and drop. i know that we get IDE with the Python package but we have to hard code for the UI. if there is any please suggest.

Member Avatar for bumsfeld
0
107
Member Avatar for katharnakh

how to bind keyboard keys to menu items? i know to bind with mouse buttons but with keybooard keys dont know. for eg: [I]Cntl+O[/I] to open a file in File menu. how to implement undo, redo, find, find again, copy, paste functions in python. i actually gone through the IDLE.py, …

Member Avatar for bumsfeld
0
308
Member Avatar for xjim72

I am having trouble with an exercise of finding how many times a number appears in an array and display the value and the count of times it appears in the list. The array can be the size of 100.

Member Avatar for xjim72
0
888

The End.