132,726 Archived Topics
Remove Filter ![]() | |
I have a function when I use it outside the class as a function it works perfectly but when I want to use I as a method in a class I get a TypeError massage : [COLOR="Red"]Traceback (most recent call last): File "H:\python\prototyp_01.py", line 122, in <module> manupacians.koor(z) File "H:\python\prototyp_01.py", … Software Development python | |
Hi, Full disclosure - I just cut and paste my way through scripting - I don't really know what I'm doing. Some time ago I got help with a little CGI perl script that included a link as a line of code with a variable in the form [ICODE]$page = … | |
Hi, Please suggest me to do FolderBrowserDialog box for "C# Web Application". Thanks a lot, Anjali Software Development | |
Hi , this pr. works with clases but someway it just throws me a error: [code] switch (atoi(i))//yes its an int 1,2,3,... etc... { case 1: R S(r, h);//create new class R object named S,to constructor we give two parameters F * f1 = &S; //yess pointers polymorph.... cout << … Software Development c++ | |
Basically this Menu works however, when I enter in a string the default does catch it but then the Menu repeats the error so in essence isnt full proof. Would the way around this be to check the 1st entry by the user to see if its an integer, if … Software Development c++ | |
I am working on the odd number magic square problems. I start the first number in the last row and center column. It worked on the 3x3 square, but not on any other odd numbers. Can anybody check my code? [code] def magic(n): if n > 2 and n % … Software Development python | |
I will briefly explain my problem: I have a while-loop and inside I call some methods. Inside one of the methods I have this error: java.lang.[B]NoClassDefFoundError[/B], which is been caught and the while continues. The problem is that a few seconds later as the while keeps running the same method … Software Development java | |
I have commented the problem into the code below. See the Store2 vector in the Write Data function. I get error 0xC0000005: Access Violation with no warnings. Any help figuring out why would be appreciated. [ICODE] #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <stdlib.h> using namespace … Software Development c++ | |
Hi guys ! This has been killing me for 8 hours Things work well I'm compiling this way : [QUOTE] g++ -Wall -o prog prog.cpp -L/usr/local/sesam/lib -Wl,-rpath /usr/local/sesam/lib -Wl,-rpath,/usr/sesam/lib -ldl -lc[/QUOTE] But when I add a link to /usr/local/sesam/lib/libssv.so that i need [QUOTE]g++ -Wall -o prog prog.cpp -L/usr/local/sesam/lib -lssv -Wl,-rpath … | |
Hi There, I'm learning C++. One of the questions requires a function to do a calculation below. I have no clue how to do this. Can anybody help? [QUOTE]WeTryToHelp gives bursaries to help students with buying their textbooks. The amount of money depends on how many modules the student passed … Software Development c++ | |
Hi, I have a requirement that i have two files, one is input file and another is log file(both will contain the same data mostly). I need to compare these two files and if any difference found then those lines should be write to another file(3rd file). I done googling, … Software Development file-system python | |
![]() | how can i have a automatically check folder size and when the contain of the folder is reach to some limit it will deletes all the contains the files inside. Software Development shell-scripting ![]() |
Typically the code that I have seen uses phrases such as i++ as opposed to ++i. Recently, in a recently purchased book, I have seen the former implemented. As I understand i++ means that the addition takes place after the line is executed and thus with the initial value of … Software Development c++ first-post | |
So I'm having a bit of a problem with a CGI script. It runs fine, except for the little problem that param(x) doesn't work at all. It will either crash the program or return an undefined value. [code=perl] #!/usr/bin/perl use warnings; use CGI qw(:standard ); $temp=uc(param('class')); $class=chomp ($temp); $temp=uc(param('type')); $type=chomp … Software Development perl | |
Help! Now I study about NAT (Network Address Translator), it is a new way about translate IP local to public. Ok, the point is when I want to install NAT in LINUX, i got error messages like below. I think this is about coding in nat.h. What should I do … Software Development c | |
I have a file names abc.txt on desktop. I wanna copy it to d:\workfile folder. If I use the code-- File.Copy(strsourceFilePath,strtargetFolderPath,true); I am getting a exception that Access is Denied. If I use Move method ,File.Move(strsourceFilePath,strtargetFolderPath); am getting the exception Cannot create a file , already exists. Can anybody help … Software Development file-system | |
Hi all, i want to make indent in rtf using track bar. So when i scroll track bar my paragraph can shift follows the trackbar position. Would u like to help me please... Thank u very much Software Development vb.net | |
I have pygame v 1.8.0 installed but it is without the font and video module support how do i have to enable it or from where do i have to get it | |
How to use progress bar to display a picture. I mean after progress bar is completed it will showing a picture. Please Help i just newbie :) Software Development vb.net | |
hi every1.. i want to sort my combo box bt the pblem is that that i have bind it with a database. in the properties window i have set sorted = true bt it says ComboBox that has a DataSource set cannot be sorted. Sort the data using the underlying … Software Development vb.net | |
Hey guys, recently i started with socket programming in python and still doing it. And i decided to do a project, its a text based GUI with different options that are related to Networks, but ive had trouble with it looping back to the menu which the input is represented … Software Development gui python socket-programming | |
I am writing a Crap Game. The first part turn out fine but I have problem with this requirement [I][U]"Your program must keep track of and report the number of games won by the user and the number of games won by the computer ("house"). The score should be 0-0 … Software Development python | |
Sorry I just realise that made not sense. I have created a program in python similar to battleships. I have created the class section which were working when I include the direction section in the main and not as a seperate method, However when I move the method into a … Software Development python | |
I have a variable declared in a class file. A form is called from the class. When the control goes to the from; the value stored in the varaible is lost. Hence ,when I get the control back to the class from the form, I am unable to get the … Software Development visual-basic | |
how make program run as service... I need the option in program, which program run in the background. Anybody has a tutorial about this... Software Development c++ | |
I am currently taking shell scripting online, my professor has emphasized again and again not to use csh. I haven't learn in depth the difference between csh and sh yet. Can anyone explain abit what is the major difference? a little example please if possible.. thanks Software Development shell-scripting | |
I have one that seems to be hard to find info on (with good reason). I want to hook into Firefox and IE and detect when a user inputs a password and username, prompt the user, and then get that username/password combination, and the url of the website that it … Software Development | |
i basically have a long array i want to copy to another array object. does this copy by refrence? i know java doesnt do refrences but i read somewhere it would pass by refrence. [code='java'] char[][][] data=new char[numFiles][][],data1=new char[numFiles][][]; for (int i = 0; i < numFiles; i++) { data[i]=split(files[i]); … Software Development java | |
How can i actually initializes a 2-dimensional array ALL to 0? [code]Dim machinecount(,) As Integer[/code] I try using 2 For loops to set it as 0 like the one shown but it gv me an error: [code] For B = 0 To 23 For C = 0 To 4 machinecount(B, … Software Development vb.net | |
Hi, could someone please help me with this error message, I 've included my program along with the error message. Thank you. Compiling... C:\Documents and Settings\\Lab7\Lab7.cpp(33) : fatal error C1004: unexpected end of file found Error executing cl.exe. Lab7.obj - 1 error(s), 0 warning(s) [code=cpp] #include <iostream> using namespace std; … | |
Dear all, I have this code and this data...but i want to sort the sum1 in descending order..but my problem is..i want to sort many array....like this.. after sort 3: ............. 46 1: .............. 25 2:..................20 how to sort in descending order together with the row? 1: 5 6 7 … | |
Hi, i am currently trying to learn how to program in python and i have been doing ok until now! I am confused about classes objects and methods, i understand most of how they work. In a question task I am asked to create some code for a die (singular … Software Development python | |
Hey all, had another question that came up in my first Python program. The program is pretty much just a GUI for an application launcher. My current version has rollover buttons and successfully launches the applications, but is bloated and needs some revision so I'll post the first version with … | |
I've tried to create mailbox in exchange 2007 using code that works on 2003-version. It's much faster to create a program in VB6 then in net. So, does anyone know what I have to do to make mailbox on 2007.version with vb6? Software Development visual-basic | |
I am attempting to read in a comma delimited file and only take in the first three values. At the moment the code I have obviously does not work. The text file is laid out like this: [code]1249968.646,16761001.880,1206.990,1,2,104,3,218210.549527[/code] At the moment this is what my read in code looks like: … Software Development c++ | |
I have about 20 vectors like the example below inside a buttoncontrol that will push_back data. This buttoncontrol and all the vectors will read a .txtfile that takes up 1.5 MB. So together the 20 vectors will fill data with a total of about 20 MB when I press the … Software Development c++ | |
I am trying to include the posix library in my Visual Studio 2005 projects, and I am unsure how to include it. I have the posix.lib file and I added it to the additional dependencies of Configuration Properties->Linker->Input. When I build, I get the message that it can't find the … Software Development c++ visual-studio | |
Teacher gave a question today to find Base is 2 and power is 3. so that Answer should be 8. so to find that she told us to use Recursion and do it. i done it in the normal way. but when i do it in the Recursion way. one … Software Development c | |
I am working on a recursive function that does multiplication so I don't have to use the * operator or loops. What I'm stuck on right now is how to get it to produce negative products. I thought the code for positive products subtracted from 0 would work, but I … Software Development c++ | |
Hallo, can someone help me out: I have a stringgrid, where i display hex data of a file( a hexeditor), and i need to change the color of the cell, if i chenge the data inside it. How can i do that?? Thanks. Software Development pascal | |
Hello, I created two classes, one extends JButton and the other extends JPanel. In both cases, both overrides the paint method. Basically I'm extending JPanel so I can place an image as the back ground. The issue I'm having is that every time the button is drawn, if it's drawn … Software Development java | |
Hello ppl I am new to c++ and especially a noob in graphics. All the functions I have learnt are from Help File in Turbo c++ 3.0. Since this part of c++ is not in my course, I am having difficulties learning it. Now, in the following code the[B] outtext … Software Development c++ | |
Hey, I'm having a problem with my RPG. I'm trying to get a player to move from one room to another. All the coordinates (and other properties) of all the objects inside a given room are contained inside a text file, and this includes the properties of an exit to … Software Development c++ | |
i need to build a recursive function which calculates the average of specific numbers entered ... so its fine till now but ... it says the number of entries is determined by the user's interest .. so i got some ideas i kinda stopped here i made a function which … Software Development python | |
Hi, I am having a string like below. What I need to do is to process the string in such a way that I could get the output in a format like below.The problem I am facing here is that some elements have commas(,) within itself , so it is … Software Development python | |
Has anyone here managed to integrate NetBeans 4.0 with VSS 6.0? I am only able to see the projects I've added under the "Versioning" tab (in NetBeans), and not from VSS. Also, when I refresh the list, this is the error I keep getting: Command "Refresh" has failed. Execution string: … | |
Hey guys, I'm at the losing end of a problem involving strings and char input. Basically, I have a tree full of morse code and alphabet equivalents in struct morsetree that i will decode against. so when i decode **** * *-** *-** --- *-- *** *-* *-** -**, i … Software Development c++ | |
A some point in my program, it is necessary for me to start a child process (Im on linux, btw, ubuntu gutsy). The process streams DV to stdout, but can be controlled in an "interactive mode" through commands to stdin. How does one establish streams going both ways? If you … | |
[CODE] private: delegate System::Void delegate_function(void); if(this->InvokeRequired) { AsyncCallback ^ac = gcnew AsyncCallback(&WCS::MainForm::delegate_function_callback); delegate_function ^df = gcnew delegate_function(this, &WCS::MainForm::function_to_invoke); System::IAsyncResult ^asyncresult; //Begin invoke command here. try { asyncresult = df->BeginInvoke(ac, df); //asyncresult = this->statusLight->BeginInvoke(ac, df); //this->commsStatusLight->EndInvoke(asyncresult); //df->Invoke(); df->EndInvoke(asyncresult); //df->DynamicInvoke(ac, df); } catch (...) { std::cerr << "caught"; } } public: System::Void … Software Development c++ |
The End.