64,152 Solved Topics
Remove Filter ![]() | |
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 … | |
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 "### … | |
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' … | |
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_ | |
For the Tkinter Text widget, is there a way to assign the selected text to a new tag?(other than 'sel',which changes) | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
:?: [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) … | |
I need to design a GUI based on PyAUI. Do anybody have sample codes or tutorials that show the working of PyAUI. | |
[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 … | |
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' … | |
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 … | |
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 | |
Hi, Is there anyone who can provide VB code to open "Open With" dialogbox? Thanks Allen | |
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. … | |
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 … | |
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... | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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, … | |
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 … | |
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. | |
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 … | |
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 … | |
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. … | |
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 | |
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 … | |
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 … | |
I need a python-based network library for a game, any sugestions? | |
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? | |
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 … | |
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. … | |
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 … | |
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 … | |
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? | |
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 … | |
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. | |
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, … | |
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. |
The End.