43,549 Solved Topics
Remove Filter ![]() | |
Hello everyone,i'm starting to learn pytho now.Could anyone give me some advice of what is the best IDE for python there is based on your experiences guys. thanks.More power to the open source community. Software Development ide open-source python | |
Can I have regular function and class function together? if so, where should i place the regular function declaration? The compiler wouldn't compile this one... the problem is function showlist() Thank you [code=cpp] # include <iostream> # include <string> # include <fstream> using namespace std; class Name { public: int … Software Development c++ | |
[B][/B] Hello members, I am trying to execute the module below (SQL statement) and I am getting the above error: "Syntax error in FROM clause" on this line [code]Call db.Execute(strSQL)[/code]. When I hovered the mouse over the SQL string variable, it shows this line of code: [code]strSQL = "Insert Into … Software Development visual-basic | |
Hi, I'm still pretty new to c++ programming in Fedora Core. I've successfully done up my c++ code and it can run when i did: gcc -o test test.c ./test However, is there a way which i could run this test file from any directory? For example, u can run … Software Development c++ | |
I'd like the sender event to stop if the conditions of the if statement are met!! [ICODE] private void Btn_Func(object sender, EventArgs e) { Button thisbutton = sender as Button; if (thisbutton.Text == "-" && lb_Display.Text == "") lb_Display.Text += thisbutton.Text; [B][U]//I want the code to stop here if the … Software Development | |
Hi, I need help with a timetable which must do the following: 1: Input: program name Output: list of core and option modules. 2: Input: module name Output: module leader, activities, credits, when run, constraints 3: Input: activity name Output: room(s) 4: Input room number Output size, condition, available resources … Software Development java | |
hi all. I have constructed a UI that has two fields. user name password. I am trying to get the password field to echo back user input as ****. any suggestions chaps? have googled to no avail and am a little stuck. cheers Software Development | |
hope all r doing fine.. i need a quick and very quick reply m porting some cod:confused: e from windows to linux box..n i just encountered a function findfirstfile() used in windows..this function also takes wildcards as regular expression in the string I searched the net for an alternate implementation … Software Development c | |
How to fix error it sayTskindata not found? plss help me Software Development c++ | |
Hey guys, in c i am trying to read an input such as a command like [code] xeyes -bg red -fg blue [/code] i have managed to read it fine if there is no spaces so a single word such as "abc" but when i have spaces i get segmentation … Software Development c | |
I using window Vista home premium(32 bit) and I cannot use python after I save a file once I get the following error messages "socket connection error" "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal fire wall software is blocking the connection" I have to … Software Development python | |
Hi! I'm trying to open a .xls file in vb, but not a specific file. What I need is something like this: if [COLOR="red"]filename.typefile=.xls [/COLOR]then msgbox ("it's an Excel file") end if What I wrote in red colour is the code I need, because I know this code doesn't exist. … Software Development visual-basic | |
This code hangs on me running. The problem is that "r" does not count right (not like it is directed under FOR expression). Does the problem lay beyond the code? #include <iostream> #include<string> using namespace std; // using std::cin; // using std::endl; // using std::cout; // using std::string; int main() … Software Development c++ | |
hi everybody , I have a program (below) but don't know how to direct the out put to the printer , can anyone help thanks [code=python] from calendar import * setfirstweekday(5) #saturday prcal(2008) raw_input('hit a key') [/code] another question is that I tried writing " saturday " instead of "5" … | |
Dear all, Could you please help me? I would like to know whether it is the same or not. Is it the same "mouse click" and "mouse Press"? I want to detect the mouse is pressing with API. Which API should I use? I actually want to know the detection … Software Development api visual-basic | |
Hi, I have this app running fine on my pc with connecting to SQL server on my localhost using windows authentication. Now I am going to deploy it on my client's server where SQL Server 2K DB is on server "abcd" with SQL Server credientials (No windows authentication) My problem … Software Development client-server sql vb.net web-server windows-server | |
hi, I am doing a lab assignment for my C++ class and it wants us to use serveral pointer indirections for each variable. The program runs but then crashs and it seems to occur during the second iteration of a for loop in the arrayGet function. I'm not sure why, … Software Development c++ | |
First off, the standard disclaimer: I am pretty new at shell scripting, and my work at this point is mainly hacked-together ideas and pieces from other people's. Thank you in advance for your tolerance. :) I am using Ubuntu Linux 7.10 Gutsy, which has the bash shell. I wrote a … Software Development shell-scripting ubuntu | |
[QUOTE] ArrayList<ArrayList> bigList = new ArrayList<ArrayList>(); ArrayList liste = new ArrayList();[/QUOTE] [QUOTE]for(i=0 ; i<10 ; i++){ liste.add(0,i); bigList.add(0, liste); liste.clear( ); }[/QUOTE] What I want to get is something like [ [9] [8]...[0] ]. Instead of that I'm getting [ [ ] [ ]...[ ] ], an ArrayList of empty … Software Development java | |
Hi, I want to use an ArrayList of long but [QUOTE]ArrayList<long>liste = new ArrayList<long>();[/QUOTE] doesnt work. Eclipse changes it to [QUOTE]ArrayList<long[]>liste = new ArrayList<long[]>();[/QUOTE]. What to do? I really need an arraylist of long values. Thanks. Software Development java | |
hey and happy new year! i cant understand whats the difference between x++ and ++x if anyone knows let me know :) thanks in advance ! Software Development java | |
Hi ! I'm trying to find the substring in a shell script as given: [code] #! /bin/bash HTML="<html><body>OK</body></html>" OK="OK" OFFSET=`expr index $HTML $OK` OK_LEN=`expr length $OK` var1=`expr "$OFFSET"` echo $var1 var2=`expr "$OK_LEN"` echo $var2 INPUT=`echo | awk '{ print substr("'"$HTML"'",var2,var1) }'` echo $INPUT [/code] But on running it does not … Software Development shell-scripting | |
[code=cplusplus] #include <iostream> #include <iomanip> using namespace std; class Matrix { public: Matrix (int =0, int =0); ~Matrix (); Matrix (const Matrix&); void operator = (const Matrix&); Matrix operator + (const Matrix&); Matrix operator * (const Matrix&); Matrix operator - (const Matrix&); int* getMember(int =0, int =0) const; //returns pointer … Software Development c++ matrix-multiplication | |
Hi. Below are two pieces of code. This first one works fine: [code] char str[] = "Hello World"; char *b; b = &(str[3]); *b = '3'; printf("%s\n", str); [/code] However this second one results in a segmentation fault. [code] char *str = "Hello World"; char *b; b = &(str[3]); *b … Software Development c | |
Just getting into XML and other X-stuff so this may sound little silly as I'm thinking more ahead of I'm currently reading and able to do, but here it goes...:twisted: Take simple example of CD collection. Currently with use of XSL i'm able to display my XML document as table … Software Development javascript xml | |
I am using BCB6 so I hope this is the right forum. I am using asyncpro's TApdComPort component for serial communication. I need to send 12 bytes and receive 22. I can send the 12 bytes using putblock(..). But I can't figure out how to reeceive my data. Also, I … Software Development c++ | |
Hello there, I am trying without much success to display multiple columns from a database where the selected data is dependant on specific common data. I have tried using an SQL statement with a Jet 4.0 OLE DB connection. SELECT Name,Date,Action FROM Track WHERE SerialNumber="1" with the output displayed in … Software Development display visual-basic | |
ok so basically I am writing a small program that does a few different things in Delphi 2007. I am very new to coding and so I hope that my terminology will be up to par. If not, please forgive me. I am loading text files into a ListView... I … | |
I am writing a program that calls system( "c:\pathtofile.exe" ) to launch another program. Does anybody have a suggestionon how to make it so the console window doesn't show up. Software Development c++ | |
In the following code, the object is not being written into file in line 30 [ICODE]stfile.write((char*)this,sizeof(item));[/ICODE] When line 26 :[ICODE]stfile.read((char*)&ob,sizeof(item));[/ICODE] is hidden the object is written into the file. Please help!!! [CODE=C++] fstream stfile; class item { int code; char name[25]; int price; int qty; public: int getcode() { return … Software Development c++ file-system ios | |
Hi all, I've created two columns on the list view as follows. [CODE] ColumnHeader colHed; // Header one colHed = new ColumnHeader(); colHed.Text = "Name"; colHed.Width = 100; this.lwDetails.Columns.Add(colHed); // Header two colHed = new ColumnHeader(); colHed.Text = "Address"; colHed.Width = 200; this.lwDetails.Columns.Add(colHed); [/CODE] Then on a separate function I … Software Development | |
I am able to Validate for 9.1 decimal Validation by regex expression "[0-9]\{0,9\}\.[0-9]?$" but If I call in KeyPress last character entered cannot be in textBoxVariable.text. Qusetion : I want to do e.handle=true; for keypress , if textBoxVariable.text Value not satisfy regex condition. Any solution? Thanks in advance Software Development regex | |
Hi, I want to make some kind of monitor for my PC and i want to have CPU load in form like "top" (something% , ex 23%). So i use C and : i'm opening the file /proc/stat and read the first line : cpu 92208 2282668 19432 79824 739 … Software Development c | |
Hello World! (to all of you DaniWeb guys!) I want to build 3D Online Chat but I don't know how to start. Does anyone can tell me how to send message between 2 PC? (An output of this message I want to show in 3D character's shout box.) Right now … Software Development c++ client-server | |
![]() | I have been writing my program and everything works like it should unless the user inserts a character then the whole thing blows up... how can I fix this. Is there something I can add to block characters from being added? any help would be appreciated! here is my code: … Software Development c++ ![]() |
Hi, I am trying to create a method that accepts a pointer to a (static) string so that it can modify the string. I have something similar to this: [code] void modifyString(char **pstr) { char *str = *pstr; // Make changes to str ... } void doSomething() { char str[] … Software Development c | |
Hi. Do you know how to get and set cursor position in C language? I know this can be done using GetCursorPos and SetCursorPos from Win32 Api but I want it to work on several OS so I cant use Win32 specific functions. Thanks. | |
I need to query a database on a server. As a first step, I have written the following Java code to just make sure I can access the database. I thought that the Try-Catch blocks would take care of the exception problem, but apparently they do not because when I … | |
when i start my program i write import graphics * def main(): but then when i try to create a button it doesn't work anyone know the problem??thanks Software Development python | |
How to output to an excel file and how to read from it?? i have done the writing part...to use [inlinecode]"\t"[/inlinecode] for moving to next cell in same row and [inlinecode]"\n" [/inlinecode]to move to next row... and is there any special format to save that excel file..because when i save … Software Development c++ | |
can someone help me regarding my program? i am tasked to create a program called string censoring. it asks for two strings then it removes the characters in the first string which are similar to those in the second. Ex: 1st string= new york yankees 2nd string= absolutely result= nw … Software Development c++ | |
I am just beginning in a C++ class and I am having a hard time setting up the code for using a modulus operator. The problem assigned has user input as name and hours worked. The program is to output the name, weeks worked, days worked, and hours worked based … Software Development c++ | |
Dear all In advance, thank you for your help. I am trying to initialize an object in C++ depending on certain parameter. Below is the source code I am using. if(ARG::metrn==metrnSMD) EventStream<complex<Lambda>> evstrTrain(fileTrain, evlsTrain); else EventStream<Lambda> evstrTrain(fileTrain, evlsTrain); if (ARG::FRandomEventOrder()) evstrTrain.SetRandomOrder(true); I am declaring and calling the constructor for 'evstrTrain' … Software Development c++ visual-studio | |
Hello, I am still working on the self study thing. I have decided to do or attempt to do a project that requires a header files with 2 other source files. The header file was given in the book. It is as follows: #ifndef GOLF_H_ #define GOLF_H_ //golf.h -- for … Software Development c++ | |
I got it but my problem is that I want a text should scroll at the bottom of the form from right side of the screen to the left side of the screen want the text to scroll at the bottom of form from rightmost end of the screen to … Software Development vb.net | |
I have a netbeans demo program with clasess and libraries the whole bit. I need to understand these lines of code because I need to click on the button I added:caputure the string in the jtextbox;put it into a query and put the resultset into a list and then display … Software Development java java-netbeans | |
Hi all, I recently started to work for a company who uses XML. I am new to XML, and was wondering if anyone could give me any pointers as to what I should look out for (potential problems) and a decent online tutorial? The company will be training me, but … Software Development xml | |
I recently saw this function in one of the online test paper i was going through. And i came to know that this is a standard library function but i dont know anything about it. And it is related to some Parent process - Child process kind of things. And … Software Development c++ |
The End.