132,726 Archived Topics
Remove Filter ![]() | |
Hi I have Borland Jbuilder 2006 Enterprise installed on a Microsoft Windows Vista Home Premium OS. I was trying to make the font bigger (in the preferences menu) but something happened and now the font is very small, too small to even click on a button. (I'm not talking about … Software Development java microsoft-windows windows-vista | |
Hello once again everyone. I would like to know if anyone could assist me on how to insert text from a JFormattedTextField and an item from a JComboBox and place them into a JTextPane. If the user enters an item name like Shoe in the JFormattedTextField and then selects an … Software Development java | |
I was looking at the code snippets, specifically "Petals around the Rose” and I wanted to see how it runs, so I copy, pasted and saved the file in my text editor as Petals and now I am trying to figure out how to run the code. As always I … Software Development python | |
I am upgrading a VC++ 6.0 project to Visual Studio 2008. It uses STL extensively. It compiles fine on Visual Studio 6, but produces the following error in VS2008: [icode]error C2440: 'initializing' : cannot convert from 'const int' to 'MyStruct *'[/icode] The error is trapped in the STL functional header … Software Development c++ visual-studio | |
I'm doing a project for college. It's not too complicated but it involves a lot of data access on a linked list. Does anyone have any tips for designing an intuitive command line gui? I'm doing things like: [CODE=C] while (current !=NULL) for (i=1;i<10;i++) printf("%d *Name: %s\n",i,current->data.name); current=current->Next; switch (get_char()) … Software Development c gui linked-list | |
I am trying to learn Visual C++, particularly the GUI components, so I tried to make a simple program where a button is displayed to a frame and when the button is pressed, a cout statement is invoked which displays a message to the console saying that the button has … | |
i am writing a code for a stack within stack...or nested stack...whatever.. in the code..and the mainstack is a stack of substack, which in turn, is a stack of integer data.. i thought of using class template for both the stacks - mainstack and substack..but am confused with how to … Software Development c++ | |
I'd make a basic C rpg game and I want to save data such as Exp, name, gold, ect. How can i do it in C? I went to c++ forum and saw it but fstream doesn't work on C. thank You Software Development c | |
I have a function that recives as one of the parameters a function pointer. If i want to pass a class method as that function, how do I do it? I tryed like this: [code] class C { public: SetVector( vector<UTF16> ); }; //function prototype void function( const string sToPlace, … Software Development c++ | |
i understand how to create a socket and assign a port to a socket. But how can i make a for loop to auto assign 21 ports to it? need some helps!!! Software Development c++ | |
How can we type cast a double number to long. I am getting wrong value, when i am trying to type cast it to long. [code=c] int main() { int s=9; double minuttakst=0.019000; int takst_enhed=60; double antal_minutter, beloeb; antal_minutter = (double) s / (double)takst_enhed; beloeb = ((double)((long)(((antal_minutter * minuttakst) * … Software Development c | |
I need help immediately to solve the following question: can somebody suggest how to code the following? Write functions OpenFiles and MergeAndDisplay: OpenFiles syntax: ifstream *OpenFiles(char * const fileNames[], size_t count); Parameters: fileNames - a pointer to the first element in an array representing the names of text files to … Software Development c++ | |
All my communication using this delegate and function are great between forms, but this thread for receiving compiles and all, but then throws this error. I have posted the important sections of my code. If you think I need more, let me know. Thanks. I am getting a Cross thread … Software Development c++ | |
Hi everyone, I am new to Python, I am stuck with this problem. "If your initially deposit $10000 into the account, and earns 6% interest per year, to meet your monthly expense, at the beginning each month you withdraw $500, how long the account will be depleted? if you withdraw … Software Development python ![]() | |
Hello, I have a program that generates several 1-dimensional arrays that I would like to conduct data analysis on. I was wondering if there was some sort of python tool (or module, or anything) that could write these arrays to a column of a spreadsheet ( in OpenOffice formatting). Is … Software Development python ![]() | |
While executing programs with large lists ,i am encountering an error message: Index error:List index out of range The program works well with small lists..Can anyone suggest me some efficient methods to handle this problem?or Is there any other efficient datastructure other than lists and dictionary to serve the purpose … Software Development python ![]() | |
Hi , I want to add new windows form in the present windows application. Which should be used to get some details from user and then i want those information back into my main form. Please help me to do this. I tried but iam able to show those in … Software Development | |
Forwarn I am a newbe to the coding word! I am writing an application to open a 'machine code' file, in .txt format, to edit a value, save and close the file to the same directory. I have been successfull using a listbox to show all files, with the correct … Software Development file-system vb.net | |
[code=c] int main() { int antal_sekunder=9; double minuttakst=0.019000; int takst_enhed=60; double antal_minutter, beloeb, beloeb1; antal_minutter = (double)antal_sekunder / (double)takst_enhed; beloeb1 = ((antal_minutter * minuttakst) * 10000.0) + 0.5 ; //This is used for rounding up to 4 decimals. printf("\n beloeb1 = %lf", beloeb1); printf("\n (long)beloeb1 = %ld",(long) beloeb1); beloeb1 = … Software Development c | |
Hi! I don't have access to office on the server. Does anyone know an open source way to generate an xls file for download? Or is there any way of generating a file that upon download will auto open into excel? Thanks ramil Software Development open-source | |
I am wwondering when is best practice to use pointer. [CODE]class Pen{ .... }; int main(int argc, char *argv[]){ Pen myPen; Pen *myPen = new Pen; } [/CODE] These are 2 ways to create myPen object. But what's the main diff between them? When to use it as pointer and … Software Development c++ | |
Hi, Please let me know if anybody knows that how to get schema information of a table (e.g. columns name,data type, key columns.. etc) using c++.I don't want to use system tables query and things like that.I was searching on the net and found CIndexes and other classes but not … Software Development c++ | |
[code] //pg 368 #1 /* void initialize (double& h, double& r) { h=0; r=0; } void getHoursRate (double& h, double& r) { cout<<"please enter how many hours you worked. "; cin>>h; cout<<endl; cout<<"please enter your rate. "; cin>>r; cout<<endl; } double paycheck (double h, double r) { double overTime, finalAmount=0, … Software Development c++ | |
Im developing a Issue Tracker Application in struts,I have one link 'view issue' which displays all the issues as a report, for each record one update link will be there, if we click on update link it has to go to that particular record page with details from the database. … Software Development java | |
Hi there i've just known how to make an exe file now what am asking is how to change the icon of the exe from the default one to one of you choise like in the one cd access program. Software Development visual-basic | |
I am just posting in the hopes that somenone can explain a problem I seem to be having with Turbo C++. My application basically has two forms (Form1 and Form2). Form1 is the main form and Form2 is created dynamically, as the result of a button click event, from Form1 … Software Development c++ | |
Is there any limit on the value that progressbar hold. Software Development vb.net | |
hey I want to input a string that contain spaces such as "My name is Shankhs"; i initialized a string str; then cin>>str; but str is not taking words after spaces as if spaces are acting as a delimiter... i tried gets,getline but they does not seem to work for … Software Development c++ | |
Hi, Could anyone please check my sample code? I am a beginner in C++. This code is for file comparison. Whenever I run it, the compiling result is always "Usage: compiles <file1> <file2>". I think something is wrong. Please give me some suggestions how to go through the code. Best … Software Development c++ file-system | |
Hi, I need solution to this immediately. Can somebdy suggest what needs to be done in the following program: Write functions OpenFile and DisplayColumns: OpenFile syntax: void OpenFile(const char *fileName, ifstream &inFile); Parameters: fileName - a pointer to the name of the file to be opened inFile - a reference … | |
The problem is with this line inCustomerDetails[i].getCustomerProduct(productName, productID, unitCost, quantityPurchased, x); data.txt 5 Angie Ang S1234567 Y 4 Choco P0001 5.50 2 Rice P0002 10.00 1 Bread P0003 2.00 1 Chicken P0004 7.50 1 program code [code=cplusplus] #include <iostream> #include <fstream> #include <string> #include <algorithm> using namespace std; class Product … | |
Hi, Iam trying to put username and password in some dat file(ADMIN.DAT)from changeLogin page and getting/retreiving username and password from another page from ADMIN.DAT file.... My problem is username and password details are getting stored in dat file in readable text format NOT IN BINARY.. Writing into file part is … Software Development file-system visual-basic | |
I'm having a little trouble with some code. I'm writing a library management program. I need to be able to input title, author, isbn, etc. in the program. When the program asks for the isbn it behaves as expected. When I enter any words the program terminates, but if I … Software Development c++ | |
Hi, I'm new around here & newish to VB 6.0 as well! :cheesy: I'm using VB 6.0 to create a random access file, which has 2 fields per record . I know that all the records must be of equal length, but am wondering if there is a practical limit … Software Development visual-basic | |
Lists have the append() function to add an item to the end of the list. Is there a similar function to add to the end of dictionaries? Update() doesn't seem to work. Example: >>> a = {'a':'a'} >>> b = {'b':'b'} >>> c = {'c':'c'} >>> a {'a': 'a'} >>> … Software Development python | |
I need to make a program that outputs a random number between 1 and 10 every half of a second. Right now i dont know how to generate random numbers or use a timer so i need lots of helf here. Software Development c++ | |
i can write to the file with no issues, but cant read. i have defined the file to append so as not to overwrite data. then i write to it [B]log_file.writelines(lines)[/B] but the reading wont work?? [B]log_file.readlines(lines)[/B] and thought i could just use log_file = open('%s' % os.path.join(logfile_path, file), 'a+r') Software Development python | |
I've got a question...we all know double arrays a[100][100], but how to change it into linked list or like" linked list to linked list" that we could transfer data like in a double array a[i][j]? 12345.... 2 3 . . . Ideas? Graph>weighted>minimal tree>neighborhood list(yes normally matrix, but i need … Software Development c linked-list | |
I am having a problem trying to divide a number. So in my in my program I have a number and I want it to divide it by 10. The problem is that the result is going to be decimal. I run my program I put the number it divdes … Software Development c++ | |
Question: Write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes). I have Followed my example code, and come up with 3 classes. Clock, which sets the outines for drawing clock objects, ClockViewerFrame … Software Development java java-swing | |
I want to delete a Folder that consist of .txt Files. I am trying with this code below but the member :: Delete says that it only can emty an emty folder but this folder contains .txt files. So I wonder what other technique could be used ? [code] System::IO::Directory::Delete( … Software Development c++ | |
Hello, I've got a question how to change this function, because it should read f.e. two lines: 33333n5rr door 3333is closed 3333333 n5rrr [COLOR="Red"]nanana[/COLOR] tt4tt [COLOR="Red"]wall[/COLOR] t6tt6t then transform to: nrr dooris closed nrrr tt[COLOR="red"]nanana[/COLOR]tt t[COLOR="red"]wall[/COLOR]tt[COLOR="red"]wall[/COLOR]t (writing word instead of a digit was: nice ttt5555ttt //to: ttt[COLOR="red"]nice[/COLOR]ttt,deleting digits in first … Software Development c | |
I need help with a RetailStore class. The class is supposed to do this Design and implement a class named RetailStore that holds data about an item in a retail store. The class should have the following private data members: 1. name - a string that holds the name of … Software Development c++ | |
I am wondering if there is a way to read an audio file to determine when the beat is greater than a given Hz? Such as every time the bass drum hits it will tell me. I do not have any code yet, I know how to play a simple … | |
Hi All, I have a question and can't seem to find a answer anywhere. A normal function can void or return a object. [CODE] public void CoolFunction() { [INDENT]//Some Code[/INDENT] }[/CODE] I know you can do this. [CODE] public int ReturnOneObject() { [INDENT]return intNumber[/INDENT] }[/CODE] What I can't find or … Software Development | |
This code Gets the last Write Time from a .txt file. My Question here. [B]1.[/B] When doing that operation. Will this file be opened or is the file closed ? [B]2. [/B]If the file was opened will the file Close automatically after the Check ? [code] CurrentSourceTime = System::IO::File::GetLastWriteTime(SourcePath); [/code] … Software Development c++ |
The End.