43,549 Solved Topics
Remove Filter ![]() | |
Hi, I am just starting to learn Java and the tutorial i am using says i need to add the path that JDK is installed to but when i attempt to save the file it comes up access denied? I am running Windows 7 RC build 7100. Can someone please … Software Development java | |
Hey I am sitting around here on my summer semester break. I am curious if anyone here is a java developer and actually makes good money at it? Basically I would like to know what kind of stuff you do, where you work from, office, home, etc. I'm just curious … Software Development java | |
I'm kind of new to Windows programming, especially GUI programming, and have searched for over an hour on how I can easily do this. I don't want any third party software and was wondering if I could just simply change the bitmaps used to display controls. I don't need the … | |
Hello, I am new to Python. I am trying to start writing some simple programs in it. Which IDE would you suggest? I am currently using NeatBeans for my Java programs but i don't think i can use it for Python P.S. I am using Mac OS X 10.5.7 Thank … | |
I'm working on learning on programming with Pygame by following a tutorial linked from the Pygame site. I seem to have stuck myself in a hole, however, because I can't seem to set keys to do different things within the program. I'm trying to first close the program by pressing … Software Development programming-construct python | |
Hi again,first i must say that i am familiar with c++ but only console programming. I am beginner so can you please be more gentle. I want to move on programming with buttons,windows,check boxs,input box and so on,i have heard of API and GUI what is the diference ? They … Software Development api c++ gui qt windows-api | |
Good morning, I would like to ask for your help, I am working on getting a text file read using using a java applet, the content of that text file is generated with an object in the class TowersOfHanoiExecute TowersOfHanoi towersOfHanoi = new TowersOfHanoi( totalDisks ); after which I was … Software Development file-stream java | |
so input would be Q1,2,3-5 output would be do problems 1,2,3,4,5 of Q [code] #include <iostream> #include <cstdlib> #include <sstream> #include <string> using namespace std; int main() { cout <<"enter the problemset and number""\n"; //problems represents name and numbers string problems; char quote; char num; string number; //gather name if(cin.peek()=='"' … Software Development c++ | |
i am creating a .net setup project and i want to decide the name of the shortcut when i run the windows installer. is that possible? if that is possible also let me know how to name the installation folder likewise. the installation will be in silent mode, so there … Software Development gui | |
If I do something like this: [code] print "%08d" % 2 [/code] It will print '00000002'. However, I want to change the "8" to a "3" at runtime (to get '002' instead). I tried this: [code] MyLength = 3 print "%0" + str(MyLength) + "d" % 2 [/code] but I … Software Development python | |
so i find the period or whatever the sentence ends in. Then I create a substring from that and delete the part which contains the end character. Then i keep count of it. Software Development c++ | |
Hello, I am trying to write a GUI front (with tcl/tk) for a python module. Unfortunately the module takes parameters and I don't know how to call a python module with parameters without going into interactive mode (I'm running Debian) I can get tcl to run a test module with … | |
i was able to create a shortcut name dynamically, now i need to link it to executable of my software. to do that i need to know where the software has been installed. So the question is how to get installation folder in custom installer class? Thanks. Software Development | |
typedef std::list<LDAPCtrl> CtrlList; typedef CtrlList::const_iterator const_iterator; please help me in understanding the above typedef statements as we know that typedef syntax is, typedef <attributes> datatype aliasname Thanks. Software Development c++ | |
Hi All, I am using the following code to write data into an excel sheet: [CODE]# Open the Output Spreadsheet objExcel = win32com.client.Dispatch("Excel.Application") # Creating object to write to Spreadsheet self.xlApp =Dispatch("Excel.Application") # Creating Workbook self.Wkbk = self.xlApp.Workbooks.Add() # Get sheet count intShtCnt=self.Wkbk.Worksheets.Count # Creating worksheets wsObjReport = self.Wkbk.Worksheets.Add() # … Software Development python | |
Hello all, I am trying to connect to sqlserver on godaddy but facing so much trouble with the connection strings. I wanted to use C# but wasnt successfully in making a connection. when i simply copy-pasted their vb-script connection strings sample.. it worked. I tried to modify vb to c# … | |
//main [code] #include <iostream> #include <cstdlib> using namespace std; #include "libro.h" int main() { test ab; cout<<"enter width limit"; int length; cin>>length; ab.alternate(length); } [/code] //implementation [code] #include <iostream> #include <cctype> #include <cstdlib> using namespace std; #include "libro.h" int test::alternate(int width) { //for odd, 3 char-ellipsis if(width%2==1) { keep=width-3; } … Software Development c++ | |
I need help please. this cgi program works fine only if the user puts in more than 66 chars..i chopped the lines into 66 chars each so they would fit in the textarea the problem is that record comments() works perfectly for writing multiple lines and the \n char in … | |
I found this question in some programming contest.. Given are N squares with side 1. How many "different" rectangles can one form using these squares? Two rectangles are considered different if none of them can be rotated and moved to obtain the second one. During rectangle construction, you can neither … Software Development c++ | |
is there anyway to check if pocket pc is connected to desktop via activesync? Software Development | |
here is the question: when you have a file you can open properties of that file and set "Copy to Output Directory" to "Always Copy",however, when you want to do the same thing for a folder, there is no option for copying. all there is rest to create that folder … Software Development | |
yeah i deploy the application using start button in VS, then application runs ok, then to debug it i run it again without any code change, it gives "Value does not fall within the expected range" error. Do you know why? Software Development | |
HI All, Another Question: I have created another program that queries the StockTracker database for all users and the stocks held by each user. The program compiles, but at run-time i get the error: [COLOR="Red"]"Exception in thread 'main' java.sql.SQLException: Column not found at sun.jdbc.odbc.JdbcOdbcResultSet.findColumn<JdbcOdbcResultSet.java:1833> at sun.jdbc.odbc.JdbcOdbcResultSet.getString<JdbcOdbcResultSet.java:395> at StockByUser.main<StockByUser.java:43>"[/COLOR] I am … | |
Hey guys, Has anyone here ever used python to produce data files which can be immediately read by excel? I thought at first if I just tab-delimited my data, I could copy and paste an entire data file into excel. This is not the case. When I take a tab … Software Development python | |
Hi, We are new to Visual Studio 2008, barely a month into a C++ course, and are currently working on a few personal projects. We have successfully created a console application with Visual Studio but are not sure on how to get the program to run outside of Visual Studio. … Software Development c++ visual-studio | |
the error is on line 32 of my main program //interface file [code] #ifndef STREXTRA_H_INCLUDED #define STREXTRA_H_INCLUDED #include <iostream> using namespace std; class search { public: int find(unsigned char mystring,char letter); int find(char mystring[],string word); }; #endif // STREXTRA_H_INCLUDED [/code] //implementation [code] #include <iostream> #include <cstdlib> using namespace std; #include … Software Development c++ | |
Sequencer sequencer = MidiSystem.getSequencer (); can any 1 tell ...What's going on in this code .... Software Development java | |
Hi, i am making downloader, and I want to use diferent progressbar for every link (like ff downloader)... I made treemodel [CODE]treemodel = gtk.TreeStore(gtk.gdk.Pixbuf, str, gtk.ProgressBar)[/CODE] and i put in components with this [CODE] def insert_row(self, model, parent, type_image, file, pbar): myiter = model.insert_before(parent,None) model.set_value(myiter,0,type_image) model.set_value(myiter,1,file) model.set_value(myiter,2,pbar) return myiter[/CODE] my … Software Development python | |
Hello all, I am new and I was hoping someone could please help me out. My problem is, I am trying to design a C program to read in a text file containing values, and output these values in binary form. the text file "values.txt" looks like this: 139 <tab> … Software Development c file-system | |
My goal is to write a function that takes a number and returns the number of solutions for that number, a form along the lines of f(a) = x_0 + x_1 +...+ x_n = a. where n can be any number such that n < a. Another restriction that I'm … Software Development python | |
This is my final assignment before the semester is over. For this program I am supposed to create a switch within a loop. The switch works but the program will not loop. Can you please help me. [ICODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main(void) { double … Software Development c++ | |
Writting a program which involves tallying generated numbers. I'm having problems with the tallying part. It takes a number, and finds it in the second row of an array, and tallies (add 1) to the same position in the first row. Here's my extracted code: [CODE=C]#include <stdio.h> void tally(int number, … Software Development c | |
Hi As the title suggests I'm having a problem compiling MFC based applications, this problem started immediately after installing the windows server 2003 platform SDK and now even when I try to compile a new MFC project I get the following errors: [CODE] c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C2146: … Software Development c++ microsoft microsoft-windows windows-server | |
After I've been running my program for a while, it freezes and gives me this error in the console: [COLOR="Red"]Exception in thread "Thread-4" java.lang.IllegalArgumentException: timeout value is negative at java.lang.Thread.sleep(Native Method)[/COLOR] It gives me a line to where the error occurs, which is the same line where it says "try": … Software Development java | |
how to create a table using date data type i am getting error during creating table create table mrf(fr date); error: cannot find data type date | |
Hi I created C# project ,but there is problem,the problem is if I click on close button in right side upper corner in windows application while program is running ,then it's close,but I cant compile it in second time because its giving error massage "your Test10.Exe is already running",but there … Software Development c# | |
I'm a little stuck on this particular piece of code that I'm working on. I'm supposed to check the contents of 1 text file (original), and compare it with another text file (filter) to see if there's any words that matches up. What I have now is a so-called working … Software Development python | |
[code=python] def prints(value, ..., seps='', ends='\n', files=sys.stdout): print(value, sep=seps, end=ends, file=files) print = prints [/code] Would this permently overwrite print or just overwrite it while my program is running? Software Development python | |
Hi, I am pretty new to python and I have a really noobish question: What does %s mean Software Development python | |
I need help with my homework. The first part is to create two arrays that are random. Afterward I need to creat afunction that finds the Minimun and Maximum of the two arrays. Here is my code: #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int int main(void) { … Software Development c++ | |
its in the num=="-". [code] #include <iostream> #include <cstdlib> using namespace std; int main() { cout <<"enter the problemset and number""\n"; //problems represents name and numbers string problems; char quote; char num; string number; //gather name if(cin.peek()=='"' || cin.peek() == ''') { cin >>quote; getline(cin,problems,quote); } else { while (!isdigit(cin.peek()) … Software Development c++ | |
Hi :) I want to start creating windows applications. Can you tell me what editor is best to do this & [B]if I can just start coding right away or do I need to download libraries etc [/B]to do it? I am using Eclipse is this the best editor to … Software Development c++ | |
Hello, please help me in such a stiuation I have a stored procedure that insert a new record after checking that this record does not exist.... TODO: I need to lock the row after the select statment executed on a specific row to ensure that no changes will occure between … Software Development vb.net | |
I'm trying to learn wxPython. Unfortunately when I came to China in Jan I had to leave the nice wxPython book in Canada because it was too heavy for my suitcase. So I humbly ask you to bear with my ignorance. As practice (and because I have a practical use … Software Development display file-system python | |
| |
I need help on two assignments that are due: 1. Initializing the elements of an array a1 and size n randomly, so that its elements have values between [1-45]. 2. Initializing the elements of an array a2 and size n randomly, so that each element is between 0 and 50 … Software Development c++ | |
Hi all, I'm learning how to format strings. I've made the following code, but the console screen just comes up blank. [code=c#] static void Main(string[] args) { DateTime ci = DateTime.Now; //instance of datetime Console.WriteLine("{0:D}", ci); string info = "Fred Savage- SSN: 143-14-8756 Phone: (281)414-3424 Email: fsavage@blah.com"; string format = … Software Development regex | |
How would I round a number to the nearest multiple of 10? Software Development python | |
![]() | Hey guys, I have some code here which checks the last three characters in the list: [CODE]site_list= ['C', ':', '\', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 's', ' ', 'a', 'n', 'd', ' ', 'S', 'e', 't', 't', 'i', 'n', 'g', 's', '\', 'S', 'r', 'a', 'v', 'a', … Software Development python ![]() |
Consider this code [code=c++] class A{ int i; public: A(){ cout<<"default constructor\n"; } ~A(){ cout<<"default destrutor\n"; } /* uncommenting this causes error A(A& obj){ i=obj.i; cout<<"copy constructor\n"; } */ }; A fun(){ A b; cout<<" address of b = "<<&b<<endl; return b; } int main(){ A a=fun(); cout<<" address of … Software Development c++ |
The End.