43,549 Solved Topics
Remove Filter ![]() | |
I have played with Python code just a little and like it so far. I am using a Windows XP machine and have downloaded Python 2.5. As recommended in the "Starting Python" thread, I am saving my test files in the directory C:\Python25\Atest\. When I bring up the IDLE editor, … | |
Hi Im interested in downloading pythhon and i was looking through the first steps to making a python script. This was in the tutorial " [B]Setting the path[/B] You will need to cause the directory containing the file named [B]python.exe[/B] to be listed in your system environment variable named [B]path[/B]. … Software Development operating-system python | |
I thought function xrange would give me a list of integers, but I got a string instead: [code]x = "xrange(1, 5)" print x # xrange(1, 5) x = xrange(1, 5) print x # xrange(1, 5) same result as string above!? [/code] Software Development python | |
2005/11/09 18:32:11, Event:Access, Door:entry, Card No.:2727, Description:266:55748 Date time event door card no. description +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2005/11/09 18:32:11, Event:Access, Door:entry, Card No.:2727, Description:266:55748 2005/11/09 18:32:13, Event:Access, Door:entry, Card No.:2345, Description:266:55732 2006/01/11 14:07:02, Event:Cover Removed Return to Normal, Door:5 2006/01/11 14:07:02, Event:Cover Removed Alarm, Door:5 2005/11/09 18:33:58, Event:Card No. Error, Door:entry, Description:266:51792 … Software Development visual-basic | |
How do I call a function outside of main or use a parameter to pass a reference? If my function is: [code] void getData(int& diameter, int& price) { cout << "Enter in the diameter of the pizza in: " << endl; cin >> diameter; cout << "Enter in the the … Software Development c++ | |
Hi, I am trying to use the "My" functions in Visual basic, but every time i run the code, it give me a Runtime error 424 - object required. I am a newbie at this, please help. I don't have anything else in the code, just New Project, Stantard EXE … Software Development visual-basic | |
I use Bloodshed Dev-C++ version 4.9.9.2 and it is a little weird in that it accepts "and" as "&&" and "or" as "||", not to mention not requiring parentheses around separate clauses in and/or connected statements. Therefore it would read the following as the same. if(voice==loud or voice==annoying and voice==whiny){ … Software Development c++ | |
Helloes! I'm using getrusage to get the usertime and systemtime, but sometimes the times returned are negative --> SELF: user time: 1313366639 microseconds system time: -1547562616 microseconds I'm not sure I've understood getrusage correctly, so I'm posting my code in hope of getting a few tips on how to avoid … Software Development c | |
can any one help with this function how it works ! thanks u [code] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] compare([/COLOR][COLOR=#0000ff]const[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000] *a,[/COLOR][COLOR=#0000ff]const[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000] *b)[/COLOR] { data i= *(data *)a;[COLOR=#008000] [/COLOR]data j= *(data *)b; [COLOR=#0000ff]if[/COLOR] (i.Mark==j.Mark) [COLOR=#0000ff]return[/COLOR] 0; [COLOR=#0000ff]if[/COLOR] (i.Mark<j.Mark) [COLOR=#0000ff]return[/COLOR] -1; [COLOR=#0000ff]if[/COLOR] (i.Mark>j.Mark) [COLOR=#0000ff]return[/COLOR] +1; } [/code] Software Development c | |
hi, first off I want to say that I was helped immensely by the other posts, especially the one where the one person was talking about classes. From veiwing his coding i was able to get my text adventure started. My basic questions are: 1) how do I learn the … Software Development email javascript perl python vbscript | |
What am I trying to establish here... jolly good question :eek: Pretty simple piece of code really but can I get this wretched thing to do as its asked - can I as heck... All it needs to do is display the type of clothing to be worn in certain … Software Development c | |
Folks, I want to know how to check whether a file exists for not?? One more thing: If we open an existing file in a write mode, then it gets truncated to zero length, so what the way out of this?? Should I use open('filename','w+') Regards, Asrar Software Development python | |
hello, i have a problem with printing records[i].M_F on the screen while reading from a binary file. i'll appreciate any help ! THank U [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]"stdafx.h" [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdio.h> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdlib.h> [/COLOR][COLOR=#0000ff]enum[/COLOR][COLOR=#000000] sex {m, f}; [/COLOR] [COLOR=#0000ff]struct[/COLOR][COLOR=#000000] student { [/COLOR] [COLOR=#0000ff]char[/COLOR] fname[40]; sex M_F; [COLOR=#0000ff]int[/COLOR] S_AGE; [COLOR=#0000ff]double[/COLOR] W; }; student … Software Development c | |
Hey! I'm writing a program and currently having trouble with getting a written line typed in by the user to be copied correctly into another array... I'm using a for-loop to run through the original char-array, but if I type in "Hello" the program will give me this result: Param … Software Development c | |
Apparently this was originally posted in the wrong area :rolleyes: :rolleyes: Anyway.... bit of a cheek I know but if you're feeling ultra generous with your knowledge but can anyone write some code in C using if statements for the following: "A car costs a certain amount. If it is … Software Development c | |
Here is my problem I am trying to write a program that will estimate the number of boxes of tile needed for a job. A job is estimated by taking the dimensions of each room in feet and inches and converting these into a multiple of the tile size (rounding … Software Development c++ | |
![]() | I wasn't able to find anything on this... well, I wasn't sure what to search for. But I'm curious what the advantage of this: age = 3 print "Hello, I am %d years old." % age ...is over this: age = 3 print "Hello, I am", age, "years old." Software Development python ![]() |
I want to make a program that can do two things really: 1) Detect the beat of a song 2) Output through a port, preferably the paralell port. 1) I was thinking the easiest way to do this, would be to use windows media players bars visualization, but then i … Software Development c++ first-post python | |
![]() | I'm working on a text adventure game just for fun. I am not planning to complete it, but I decided to try it just to learn classes. Seeing the text game in another post using functions, I realize that that is a very nice way to make a simple game, … Software Development first-post python |
HI all, In my c++ program, I did the following. [code]...... class thr {private: char *d; ...... public: d =new char[35]; .... } destructor has the line delete [ ]d; i get segmentation error *** glibc detected *** /usr/bin/perl: free(): invalid next size (normal): 0x0000 000001bc7120 *** [/code] But if … | |
Hi, I am new at programming and I have never done Java before. I am in my first Java class and we are asked to complete the following question...[B]Complete the method printLargestAnimal below. [/B]Consider the three Strings "dog", "cat", and "monkey". In lexicographical order, "monkey" is the largest of the … Software Development java | |
hello all..I have created ANT Script and need to work along with CVSMy ANT Script shall1. As of CVS extract .ear from this is the common version 2. Extract from CVS and overwrite in target directory the specific components listed in the specific [INSTANCE].Can any one tell me how shall … | |
How would I manipulate an entry widget so that it hides the entered characters behind asterisks? like this: Typed: PassWord Displayed as typing occurs: ******** I'm trying to make a dialog box module, for use in some future programs. I want the user to be the only one to know … | |
I know this is VERY off topic, but I am sure that a bunch of people here are experienced with computer building. I am building a computer off of tigerdirect canada and I was just wondering if I could get someone to check and see if all of these parts … Software Development asp hard-drive python | |
The attached program uses buttons to take you to a set of links. The links that the three buttons point to are here, gamefaqs and toontown. You can customise by altering the links and button names within the code, this is just practice. What do you think? | |
I need help. I have my program set up except for a graphWin and I don;t know how to set that up Software Development python | |
[quote] // play a wave file sound using the winmm library // For DevCpp add the library libwinmm.a to linker via // Project/Project Options/Parameters/Add Library // remember this is a console program! #include <iostream> #include <windows.h> // for PlaySound() #define SND_FILENAME 0x20000 #define SND_LOOP 8 #define SND_ASYNC 1 using namespace … Software Development c++ | |
i have to comunicate from vb to control a nec vt480 and I have not much idea how to send the instructions correctly . Acording to the information given by nec, this are the codes to control projector: 001. POWER ON 02H 00H 00H 00H 00H 02H 002. POWER OFF … Software Development video visual-basic | |
Hi Guys, I'm trying to remove all the special characters within a file using the code below but I need to remove also the doble quotes " but what should I use to enclose the characters. I've been looking but can't find. Thanks. while (sep != 0) { sep = … Software Development c | |
I wanted to be able to interrogate an Excel spreadsheet and programmatically save all the worksheets as text files (.csv). I succesfully managed to do this using the .NET COM interop Excel collection of interfaces but even though this works beautifully I thought it would be nice if I could … Software Development | |
im trying to create a structure that contains an array of structures but i keep getting error when compiling the code (corrupt stack). just to make sure, is my struct code correct? [code] typedef struct status *StatusPointer; struct status { int item; }array[MAX_NUM]; typedef struct allStatus *AllStatusPointer; struct allStatus { … Software Development c++ | |
hi am in urgent need of a good vb 6.0 project with oracle.i will be very thankfull if u could help me as soon as possible Software Development oracle visual-basic | |
Has anyone ever had a form freeze up in vb 5.0? When I run by program the form is displayed in the smaller size and the 3 buttons at the top of the screen (the minus sign, the box and the X) are not functional. Software Development visual-basic | |
sory im complete newbie i have [code]include <stdio.h> int main() { int x; for(x=1; x < 10; x++) { printf("%d\n second ", a); } return 0; }[/code] [code]for.c:1: error: syntax error before ‘<’ token [/code] Software Development c | |
ive got this [CODE]#include <stdio.h> #include <unistd.h> int main() { int a; int b; a = 3; b = 30; until (a == b) printf("%d\n second ", a); a++; usleep ( 990000 ); printf("\n\n hvala ker usate ta pgr \n\n"); return 0; } [/CODE] but i got this error when … Software Development c | |
Greetings All! I would like to get some feedback to all ya good python folks here at daniweb regarding some implementations that you guys doing with Python and using MySQL db. I'm looking for some mysql plugin for python. I've tried sourceforge 's mysql-python but with no luck(installing) .. maybe … Software Development daniweb-feedback mysql python | |
I am taking grade 12 programing and in the course, you can make any program in any language for a final project, and I want to do one in python, but I dont know what to make, I need help to come up with an idea for a rather useful … Software Development python | |
Hey everyone. I dont know if anyone here can help me but I run a site powered by the Joomla CMS. I wanted to design a component for my site and I was wondering if i could use C++ to design it instead of PHP and just use the 'system' … Software Development c++ cms first-post php | |
Hey guys. Ive been trying to write this program for a while and I keep getting errors on line 78, "Circle undeclared." I think it has something to do with the constructors and templates. I dont think im calling it right. Can someone take a look at it for me … Software Development c++ | |
I just start learning C++. I thought I can access an integer array by using pointer arithmetic method. why does the first program work but the second one does not??? [code] #include<iostream> using namespace std; int main() { int array [5], i, *p; for (i = 0; i < 5; … Software Development c++ | |
Hi, I am having a problem with function and class syntax. I have one class (MakePanel1) that creates a button and label. The button-click event of the button is linked to a function (daclick1) that changes the text of the label. This works well. I have another class (MakePanel2) that … Software Development python | |
Hi, can any one tell me what size_t_count does, i couldnt get it . thanks guyz ! [code] fwrite([COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]void[/COLOR]*_str,size_t_Size,size_t_count,file *_File); [/code] Software Development c | |
ok im newbie... i have a question if i have [code] #include <stdio.h> int main() { printf("type something:"); char a; scanf("%c", &a); printf("%c\n" ,a ); return 0; }[/code] i will aways get one character in output.My question is: -how to get world "hello" as standart output from variable using printf? | |
If I were to overload the subscript operator, aka '[]', it would probably look something like this: [code] int &operator[](int); [/code] If I filled this array with 10 digits.. 1.2.3.4, etc... How could I return the largest digit, and then the next largest digit? etc... I'm not sure if a … Software Development c++ ![]() | |
Okay, I know that Python is a programming language (it comes with some Linux installs), but what are its stats? I mean, how efficient is its build? How much larger or smaller are the programs than C++? How much faster are the programs than those created by C++? What are … Software Development python | |
My question is as the title indicates Thanks Software Development c++ | |
Hi, i am using Pygtk to make GUI . I have a frame in which i have added a VBox.. I want to add scrollbar in that VBox.. but couldn't figure out how to add it. [code] vscrollbar = gtk.VSscrollbar(adjustment=None) AttributeError: 'module' object has no attribute 'VSscrollbar' [/code] it's giving … |
The End.