199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for desert564

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 * …

Member Avatar for mKorbel
0
176
Member Avatar for muhile

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--> …

Member Avatar for xml_looser
0
189
Member Avatar for HelloMe

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 …

Member Avatar for HelloMe
0
4K
Member Avatar for shinsengumi

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; …

Member Avatar for shinsengumi
0
219
Member Avatar for battlex2010

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

Member Avatar for battlex2010
0
178
Member Avatar for subith86

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 …

Member Avatar for mike_2000_17
0
189
Member Avatar for karthiyayiniyp

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...

Member Avatar for trilok31
0
833
Member Avatar for RicardoE

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 …

Member Avatar for Momerath
0
198
Member Avatar for Khoanyneosr

[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; …

Member Avatar for Khoanyneosr
0
132
Member Avatar for debasishgang7

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 …

Member Avatar for debasishgang7
0
462
Member Avatar for m16piggy

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 …

Member Avatar for RenanLazarotto
0
207
Member Avatar for prateekmeharia

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.

Member Avatar for wulaishiwo
0
87
Member Avatar for zarifin99ska

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 …

Member Avatar for codeorder
0
2K
Member Avatar for anirban1087

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 …

Member Avatar for Pnorq
0
128
Member Avatar for petrakid

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. …

Member Avatar for Pnorq
0
1K
Member Avatar for progr

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 …

Member Avatar for Gribouillis
0
154
Member Avatar for fabzster

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 …

Member Avatar for fabzster
0
208
Member Avatar for code07

(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)

Member Avatar for Taywin
0
94
Member Avatar for mitrious

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 …

Member Avatar for mitrious
0
356
Member Avatar for Xan

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 …

Member Avatar for Taywin
0
916
Member Avatar for sanam_1
Member Avatar for jon.kiparsky
0
64
Member Avatar for vijiraghs

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.*; …

Member Avatar for vijiraghs
0
722
Member Avatar for gingerfish

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 …

Member Avatar for gingerfish
0
177
Member Avatar for pandaEater

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 …

Member Avatar for pandaEater
0
109
Member Avatar for Rimojenkins

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 …

Member Avatar for Rimojenkins
0
160
Member Avatar for LevyDee

[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 …

Member Avatar for LevyDee
0
103
Member Avatar for Sean87

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 …

Member Avatar for Momerath
0
536
Member Avatar for doctorphp

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 …

Member Avatar for chrishea
0
194
Member Avatar for Dee1004

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 …

Member Avatar for mKorbel
0
219
Member Avatar for ETbo

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; …

Member Avatar for Taywin
0
300
Member Avatar for Tinee

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 …

Member Avatar for Tinee
0
317
Member Avatar for Zvjezdan23
Member Avatar for WaltP
0
184
Member Avatar for NewOrder

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 …

Member Avatar for Momerath
0
391
Member Avatar for sheennave

[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.

Member Avatar for sheennave
0
217
Member Avatar for efronefron

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 …

Member Avatar for efronefron
0
288
Member Avatar for aPPmaSTer

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.

Member Avatar for aPPmaSTer
0
79
Member Avatar for desert564

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

Member Avatar for monarchmk
0
105
Member Avatar for mangopearapples

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 …

Member Avatar for mangopearapples
0
222
Member Avatar for mxrider

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. …

Member Avatar for ravenous
0
146
Member Avatar for tomtetlaw

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.

Member Avatar for Rashakil Fol
0
6K
Member Avatar for CanaznFTW

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 …

Member Avatar for floatingDivs
0
134
Member Avatar for MrCapuchino

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 …

Member Avatar for MrCapuchino
0
147
Member Avatar for mluu510

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 …

Member Avatar for mrnutty
0
143
Member Avatar for desert564

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 …

Member Avatar for desert564
0
95
Member Avatar for arezz09

i get this error when add database source...anyone help me...[ATTACH]19437[/ATTACH]

Member Avatar for arezz09
0
87
Member Avatar for Jessurider

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 ...............

Member Avatar for ddanbe
0
115
Member Avatar for Eekhoorn

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 …

Member Avatar for Eekhoorn
0
140
Member Avatar for anu07

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?

Member Avatar for WaltP
0
51
Member Avatar for omaiaa0p

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 …

Member Avatar for omaiaa0p
0
141
Member Avatar for burningflower

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 …

Member Avatar for JamesCherrill
0
218

The End.