199,114 Archived Topics
Remove Filter ![]() | |
though the maortgagae cals works correctly the answers are not i columns [code] import java.io.*; import static java.lang.Math.*; import java.util.Scanner; import java.text.DecimalFormat; import java.text.NumberFormat; /** * @(#)AmortWeek3.java * * AmortWeek3 application * * @author * Week 3-Service Request SR-mf-003 * Change Request 1 * Display breakdown of monthly payments * … | |
here is my xml file i need help in creating an XSLT file to display it as HTML i a browser, the resulting output should deal with as many jobs as are returned and be simpla and clear to view in a table structure [CODE]<?xml version="1.0" encoding="UTF-8"?> <!--XML for XSLT--> … | |
Im planing to have several Methods that will display the question and the answer choices to their coresponding labels and cmdButtons. But somehow i get the error message "void is an invalid type for the variable" when i want to create my method below of my code (i commented the … | |
Can anyone tell me what's wrong with my program below? I'm creating a program that writes every character(byte) from a buffer to a FILE until the number of bytes written is equal to the size of the buffer. [CODE] char *next; int character; int byteswritten = 0; next = buf; … | |
Hello every one i have a text file containing following data(it is a config file for another program): [pos] 100 [lastsave] 10 How do i replace the value of [pos] i.e 100 with 200?? Thanks BattleX | |
while i was learning about global variables I did some trials and found one problem. Here goes my code. [CODE]int cows = 10; //global variable void farm1() { int cows; cout<<"in farm1, cows="<<cows<<endl; cows++; } int main() { //cout<<"in main, cows="<<cows<<endl; farm1(); //cout<<"back in main, cows="<<cows<<endl; } [/CODE] Here line … | |
me doing attendance project in vb... i need to send automatic SMS from e-mail to phone number...... please help me .... and post some sample codings tooo... | |
So I writed a complete software, and I included one custom file in the installer to hold some settings the program will need to run. The thing is that the program will need to write to this file when the user changes settings. When I run the program from Visual … | |
[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; //Types and Arrays string word[16] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDS", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; char guess[50]; static const char Y= 'Y'; static const char N= 'N'; char ans; … | |
hi all, I am trying to make a prog. which will download image from a web site.But the problem is the dynamic nature of the web site. The url is like [url]http://www.site.com/image.aspx?id=445[/url] If i wanna access image 1,2 or anything i can change the id and i can view the … | |
Hello, I am a begginer in VB.NET programming and would like to know some most likely simple things to help me out on my next project. What I would like to know how to do is; Make my application remember an activation serial Make a user login with a 'New … | |
i am using a template which is working fine with mozilla, but it shows allignment problems with safari, is there any code to make templates cross - browser compatible. | |
Hi. I have a form contain 10 checkbox. how to count total checkboxes that has been checked? i search over the internet but not found any solution. please help me. i found a code, but when i apply it on my project it says "Unable to cast object of type … | |
Hi, I am working on a form which is as follows - +---------------+----------------+--------------+-----------------+---------------+ |Item_Code |Item_Name |Quantity |Rate |Amount | |[ COMBO BOX ] |[ COMBO BOX ] |[ USER INPUT ]|[ Auto Fill after| [ CALCULATED ]| |Generate Field2|Generate Field 1| |selecting f1/f2 | | +---------------+----------------+--------------+-----------------+---------------+ The user can either … ![]() | |
Hi. I have a div which contains dynamic content populated with AJAX (user has two select boxes to filter query results) However when filtered results extend past the initial height of the div in question, the div remains the same size and the results overflow out of my content area. … ![]() | |
I am having problems accessing a variable from one class to another. [CODE] class Player(pygame.sprite.Sprite): def rotateShip(self, rotAmt): radians = self.rotation * math.pi / 180 [/CODE] I am trying to use the variable radians from class Player to another class. radians only exists in 'rotateShip'. Thanks for your help in … | |
Hi I have a join query which I use for a report ok I have a query to give me results for a report that will give me all the stores that sold policies from a group during a period. It works however I cannot get it to give me … | |
(1,1) (1,2) (1,3) (2,1) (2,2) (2,3) (3,1) (3,2) (3,3) (1) (2) (3) (4) (5) (6) (7) (8) (9) | |
I've implemented a version of the String class (named Str) and I was implementing the getline fucntion of the getline function that's what I got [CODE]void* getline(std::istream& is, Str& s){ s.clear(); char c; if(is){ while(is.get(c)) s.push_back(c); return s.begin(); } return NULL; } [/CODE] I used void* so I would be … | |
hi.. im an amateur in java and im having problems in switch statements.. i would appreciate if you would help me solve this problem.. [B]Problem:[COLOR="Red"] Write a java program that will let the user input 2 colors and display the result color..[/COLOR] [/B] [COLOR="Green"][B] This is what i come up … | |
![]() | I am doing a servlet program that connects to a MSACCESS database,retrieves data and redirects the user to another page. I find the following error java.sql.SQLException: General error Login.java accesses esql.java which retrieves data from MSACCESS server. PLease help!!! My Servlet code: Login.java [CODE=java] import java.io.*; import java.sql.*; import java.io.*; … ![]() |
here is my code: [CODE]//if any of errprLists is not equal to 0, then initialWieght equals newWeight if(errorList[0]!=0 || errorList[1]!=0 || errorList[2]!=0 || errorList[3]!=0) { for(int i=0; i<row; i++) { initialWeight[i] = newWeight[i]; } } //break the loop if all errors equal 0 //--------------------------------------------------------------------------- else if(errorList[0]==0 && errorList[1]==0 && errorList[2]==0 … | |
I'm having some difficulty figuring out how to delete the objects I new'ed during run-time. I'm using a heterogeneous collection. Simplified Example: [CODE] const int SIZE = 4; myBase* objs[SIZE]; objs[0] = new myChild1(); objs[1] = new myChild2(); objs[2] = new myChild3(); objs[3] = new myBase(); //I tried: for(int i … | |
I'm getting a segmentation fault at this line. So far, my program has classes. A blahpod with class of songs in them. Then there is the node class. I call the operator= which is supposed to put one pod into another. It looks like so [CODE]bobcatPod bp2( bp1 );[/CODE] That … | |
[code] std::string headerInfo = " "; //Verify stream is still in good condition if(streamReader->good()) { streamReader->ignore(fileSize, ':'); //work arounds =) v------------v streamReader->getline(&headerInfo[0], sizeof(headerInfo), '\n'); } else { //Error } return headerInfo; [/code] The first parameter of getline wants a char* to store the data, so instead of creating an array … | |
Hi all, I can't figure out how to select a child node when I already know its parent [Index] and the child's [Index] itself. Imagine a treeview like this: + Parent[0] |--- Child [0] |--- Child [1] + Parent[1] |--- Child [0] |--- Child [1] |--- Child [2] So how … | |
![]() | Hi everyone. I am trying to build a script where a user of my website can download files. I have a problem. My site has two different user types, Free and Premium at the moment the only protection I have on the script is to check whether the user is … |
Hi everybody. I'm very new in programming languages and I have this project that from an input text file writes the frequency of the lemmas in the output file. I need to modify this and to make it work for an directory with text files as an input. I think … | |
Hello all, I would like your help on chunking a multidimensional array, which appears to be a complex job. The array has the following structure: name["rows"]["key1"] = some String; name["rows"]["key2"] = some String; name["rows"]["key3"] = some String; name["rows"]["key4"] = some String; name["rows"]["key5"] = some String; ... name["rows"]["keyN"] = some String; … | |
I found this somewhere on some website. Would you care to decode it, like explain why, when, and how they used the codes? The only part I didn't get is how did they get "largest_1" and "largest_2" by doing this. I see that it loops to find it but does … | |
I am doing Yahtzee and I need help creating a hold function. can anyone help me? | |
i have a winform, and i added class, but when i added it, i got mistakes on the static classes i have inside. basically, it converts the code automatically to a form once it is located inside WinFormApplication1 and i dont know how to interact between the code and what … | |
[CODE] Rectangle ^ClientResolution = gcnew Rectangle(); ClientResolution = Screen::GetBounds(); float CurrentWidth = 1366 ; float CurrentHeight = 768; float RatioWidth = ((float)ClientResolution->Width / (float)CurrentWidth ); float RatioHeight =((float)ClientResolution->Height / (float)CurrentHeight); this->Scale(RatioWidth,RatioHeight); [/CODE] error C2661: 'System::Windows::Forms:: Screen::GetBounds' : no overloaded function takes 0 arguments Any help would be much appreciated. | |
Hi this is an assignment for my computer science lab. It is weird because if I compile and run with my c compiler from ubuntu gcc4.4, it works perfectly. But if I compile with the university's server (I connect with SSH) it messes up The main purpose of the program … | |
Hi everyone, I am pretty new to SQL and I would like to know how can I add a prefix or postfix to all records in one field. Example: I want to add "PK-" before all barcodes in my database. | |
any time a number is present in a word inflate its value by 1........ for eg, input anyone up four tennis output anytwo up five elevennis | |
Hey guys, I'm having a little bit of trouble here. I have a variable called Latest1 and it's value is some HTML and PHP code. I have a function that does document.getElementById().innerHTML = Latest1; So when that happens, it runs the HTML code but for some reason it doesn't run … | |
I have this problem i had to do for school and im a little confused on what i should put in my first while loop for my program. Thanks for any help pointing me in the right direction! Heres the problem. [url]http://img546.imageshack.us/img546/7454/problemfk.jpg[/url] and heres the code i have so far. … | |
Is there any function that allows me to completely remove and [I]deallocate[/I] all contents of a std::map? The functions [icode]clear()[/icode] only removes all elements, it doesn't free any memory. | |
Currently I'm having an issue with a homework problem although I'm not asking for the answer. I Just want to see if anyone is able to help me trouble shoot my issue... Issue: - ArrayPointer.cpp: In function ‘int* duplicate(int*, int)’: - ArrayPointer.cpp:62: error: expected `;' before ‘list’ - Line 6 … | |
Hello I have created a Regex to remove invalid characters in a string: Here it is: [CODE] Regex replace_invalid_caracters = new Regex(@"[\\|/|*|+|-|%|=|^|@|#|$|!|~|`|?|<|>|:|(|)|{|}|;|,|_|]"); [/CODE] The thing is that then I use it in a method to remove this invalid characters. It manages to remove all invalid characters except for "-". I … | |
Hi, I am trying to write a small program that would permute a list of binary numbers to the nth bits. Some reason, the code is not compiling. Also, I am using Visual Studio C++ 2010 Express. When i attempt to compile a code, it doesn't highlight where the errors … | |
i really need help with this program i am finding a saddle number of a 2-d array which is the min value in a particular column and maximum value in its row.......and my error with the code is arrayindexoutofboundexception eg input num=4 7 6 9 10 5 3 4 6 … | |
i get this error when add database source...anyone help me...[ATTACH]19437[/ATTACH] | |
In c# programming if we include function call within the button click with definition more than 20 lines..........does it improves the performance (speed) of the program when compared with writing that 20lines within the button click function ............... | |
I've this very stupid litle problem. I want to populate a combobox with numbers ranging from 00 to 99. But when I ad them with a loop as an integer the first ten numbers apear only with one digit. I wonder, how can I ad a second digit to them … | |
![]() | I am using borland compiler 3.0,is there any way such that the output window will close on its own after the required functions has been completed by the program? |
Hello Everyone, I used to have a post function that works but it suddenly says: aborted when I run firebug on it and I dont know how I can fix it. I am using servlets in a netbeans IDE and would like to know how to fix it. Once it … | |
Hey peeps, I want to simply compile this program but i keep getting the error message: java.lang.ArrayIndexOutOfBoundsException Any help? :) [CODE] import java.util.ArrayList; import org.htmlparser.util.*; import org.htmlparser.*; import org.htmlparser.tags.*; import org.htmlparser.filters.*; public class you { static String s; static ArrayList <String> filter(String s,ArrayList <String> m) { ArrayList <String> m1= new … |
The End.