199,114 Archived Topics
Remove Filter ![]() | |
Hi, I'm new to java and I have a homework. Below is my working code, however, I would like to have a loop in order to return to the menu for user's input. package mortgagecalc_cr2; [code] import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * * @author adr1817 */ public class … | |
[CODE][/CODE]Hi, I hve some problem with inline attachment file.i already done with attached file,but when receiver receive the email,it not same like attached.for example like below. in the attach file: age total 12 - 15 5 16 - 20 8 21 - 25 10 when receive it becomes like that: … | |
is there any code that is the same as the distinct function of mysql to mssql? thanks in advance..^^ | |
is it possible, that when a user clicks an image, it will automatically add a row to the table? this is table.. | |
Hi, I want the db to return records which have either "bmw" or "audi". Below is my code but the db only shows records which have bmw. [CODE]SELECT * FROM `details` WHERE BRAND = 'bmw' OR 'audi'[/CODE] Thank you in advance. Cheers, Vishal | |
[ICODE]:-/[/ICODE]how to get output ths by loop 0 1 1 2 3 5 8 13 21 34 55[CODE][/CODE] | |
Hey all so im a bit new to python and I need to create a select sort function without any for or whiles but this is all i have so far any help would be greatly appreciated. [CODE]def selection_sort(list): l=list[:] sorted=[] while len(l): lowest=l[0] for x in l: if x<lowest: … | |
Alright, I'm working on a project at the moment where I am trying to take a map and populate it with user input through a function. I under stand the basic way of populateing it by simply having something like... [CODE] typedef map< string, string> strMap; strMap["key"] = 'value'; [/CODE] … | |
My code is giving a wrong output for the 3rd pair of vectors im finding the dot product of, although the first two are correct. (outputs - 0, 3, -3(should be 1))... I just cant find wahts wrong, i was guessing something to do with the -1 in the b … | |
How do I do it? I tried sorting the keys: [CODE]keys = dictionary.keys() keys.sort() return map(dictionary.get, keys) [/CODE] But it didn't work. | |
My application freezes randomly with no error output. I've been beating my head over it's code and don't want to continue working on it until this problem is resolved. I'm thinking it's a synchronization problem. I've attached the source code. Any help would be greatly appreciated. | |
Hello, thanks for reading my thread. I'm still new to web development so I appreciate your help in advance. Here is the issue I am having: In my project, I have a index.php page with a sidebar menu and a div id called “content”.The user can select different menu items … | |
Could some one tell me how can I redirect one page to multiple urls in new tabs using just php(no java). Ex: User access [url]www.mysite.com[/url] and he is redirected in 2 new tabs in [url]www.myothersite.com/info.html[/url] [url]www.myothersite.com/checkitout.htlm[/url] and the initial tab with [url]www.mysite.com[/url] refreshes and is [url]www.myothersite.com[/url]. Thanks | |
[B]$? in linux gives the exit status of the recently executed command , as i have learnt. suppose i give a cd command at the terminal and if such a directory or file is not present, echo $? following it gives me 1. but, when the same is run via … | |
I'm very sorry for my bad English. Here is my problem. [CODE] class A { public: virtual int runAlg() = 0; //pure virtual }; class B: public A { public: int runAlg() { //this is runAlg of B } }; class C:public B { public: int runAlg() { //here, I … | |
I have never used STL sets before, but I have used some other STL stuff. I am having trouble with upper_bound. I have a class I defined, and I have a (STL set) set of pointers to different instantiations of the class. i compare using a comparison function, which takes … | |
Hi, Basically I'm trying to tie in 3 different classes by using definitions in one class (reference) in another class(library), and then use the function that uses that object in another class(menu). I realize that I could just dump it all in any one of them and be done with … | |
I am writing a program that converts a hexadecimal number to a decimal number (without using the std::hex and std::dec stuff), and at one point need to change from a double to an int.. However when large numbers, such as 5,726,623,060.00000 are entered, they all get changed to -2,147,483,648 after … | |
Suppose I have the following collection of "word" elements: [CODE] <word> <id>1</id> <text>My</text> </word> <word> <id>2</id> <text>name</text> </word> <word> <id>3</id> <text>is</text> </word> <word> <id>4</id> <text>Joe</text> </word> [/CODE] Given an integer ID value, in order to find the corresponding TEXT, I can do this: [CODE] <xsl:key name="word-by-id" match="word" use="id"/> return key('word-by-id', … | |
![]() | I am trying to write a program to add large numbers with stacks. However, I do not know how to get each digit on to a stack individually. This is what I mean: For example, take the input 3784. How do I get the 3, 7, 8, and 4 as … ![]() |
The assigment sounds like this : Write a C++ program that request and displays information as show in the following example of out: What is your first name? Betty Sue What is your last name? Yew What letter of grade do you deserve? B What is your age? 22 Name: … | |
I am slow when it comes to understanding c++ and I don't understand the errors it gives I don't have much time, so please help me #include <iostream> #include <string> #include <fstream> using namespace std; // add other includes if needed //--------- class header - DO NOT MODIFY --------------// class … | |
I'm having a problem solving part of a C# question from a beginning course. If anyone can help, I would appreciate it. The problem and code follows: When the user clicks the Quit button, display a message box that says "I'm going home." Then when the user clicks OK on … | |
This probably isn't the best place for this sort of thread, but it's the most popular board on the web development forums and I suppose it's semi-related to PHP so... I've made a few small scale desktop apps with C# and Java (including a few games through XNA) but now … | |
Hi, well i take lots of time figuring this out. I need a program that tells me the coordinates of a word that is in other array, what I have gotten is the y coordinate "the column", but I need to do the case for a bidimentional array get the … | |
I have an arraylist that hold an array of object each which contain a "name". how can I sort the arraylist by name alpabetically? | |
Can i run my asp.net pages in AIX?? If so, how?? Thanks. | |
Hi! I'm new to Android OS and all this stuff. So, I tried to develop a HelloAndroid api as it is described [URL="http://developer.android.com/resources/tutorials/hello-world.html"]here[/URL]. However, when I try to Run the HelloAndroid, the error message occurs. It is also strange that by selecting Run->Run, the "Android Application" option does not appear … | |
I return to the embrace of allegro and the setup of it in VS2008 is so troublesome, can someone please help me? I followed a video in youtube, and for future, I type the action into a text file, here it is: [QUOTE]1) Copy the contents of E:\Raymond\game programming\allegro-msvc9-4.2.3\bin to … | |
hello all i hav a script when i print it's execution in some line there is #+ in the starting and somewhere there is #++.can anyone plz tell me about these | |
Hey guys! I am newbie to this, I'm in need for help in my C++ project, I seem to be getting this error and have no idea why it keeps saying the same thing, i created header and cpp files but this error is annoying me: projectnew.obj : error LNK2005: … | |
So, I need to let a Visual Basic application connect to my XAMPP MySQL server. I set up the .Net/SQL Connectors, XAMPP, and all that other good stuff. When I try to connect to the server using 192.168.1.2 (my static IP) it will work. When I try to connect to … | |
Hi everyone, I am doing a C++ project for school in the UNIX lab that requires inheritance. My main program is calculating linear regression for some plotted points and I'm inheriting a linear system solver from another program. The linear system solver is suppose to print the solved values to … | |
Hello, I am trying to work on a program which is like this: There are several offices and each office is open on different times on different days. User inputs desired day and time and I have to return every office which is open on day and time user provided. … | |
I used the simple script from this website and it seemed to work ok except no mail gets sent. I know this script was used for at least two christmases to send mail. Is there a process that I need to run on the server to enable it to send … | |
Ok it's all about to create 4 class Class a , class b derived from a and c derived from b and test class Speed is an instance variable in class b and c. The method are : Start() -a method of all class to print the message"hee" override the … | |
I have this rather stupid litle excel issue which somehow just doesn't go away by itself; I'm creating a excel chart from three rows of information data. Each row has a header, so far so good. The first row exixt of calender data and I planned it to use them … | |
Hey Everyone, I have some code here that I am trying to make. I made a two dimensional array that stores a high temperature and a low temperature then displays the average, but I am having a hard time getting it to display the Highest and lowest amount in the … | |
Hello, i am new in c programming it is just the second month i i deal with. I am really confusing about what i have to do with this exercise pls don't lough on me I hope for some help. That's what i have to do.. I have to modify … | |
I am just trying to make a php edit script using a combo box or any other method. But I am not sure how to write a script when selecting a sportsid and fetch the related data at the same time. [CODE] $sql = "SELECT * FROM sports WHERE sport_id=2"; … | |
Hello, im really stuck at the minute. im trying to create a pattern (that is shown below) and this is all that I can get. im not very good with python, but im trying. any help would be appreciated. the actual size of the whole thing has to be 100x100 … | |
I have a project that has four classes descending. Person is the first class, CollegeEmployee,and Student are classes that descend from the class Person. The class Faculty descends from CollegeEmployee and has a Boolean field that indicated whether the Faculty member is tentured, as well as methods that override the … | |
Dear All , The question is quite simple for all of you . I have a binary file . A description for this file says that : "first 2 bytes in the header is the number of records" I have opened this file and loaded it into bytes by this … | |
hi can some one please help me i want to create a form that will send a custom email email to the emil address that the user inside how can i achieve this? for example the user put his name and email address the put the name and addresses of … | |
Hi. I recently created a PHP Comment snippet. I'm having one slight probleme though. The problem is that the comments stacks up to one big pile of comments. What I basically want is to divide the amount into smaller groups: Page: 1, 2, 3, 4, 5 each page with 5 … ![]() | |
Hi, I want the db to return records which have either "bmw" or "audi". Below is my code but the db only shows records which have bmw. [CODE]SELECT * FROM `details` WHERE BRAND = 'bmw' OR 'audi'[/CODE] Thank you in advance. Cheers, Vishal | |
hi. i need help for a problem. i have an array of double values in the main method. i am trying to create an object and pass the array to a different class using an overloaded constructor. i am having trouble with the syntax. please help, i need to use … | |
In the following two functions, why is it that the first one can see the outside variable but the second one can not? [CODE]name = 'Jack' def say_hello(): print ('Hello ' + name + '!') def change_name(new_name): name = new_name[/CODE] | |
Hello, I'm currently a student in college and to get right to the point - I'm having a problem with figuring out the logic of making the program. This is how I want my interface to look TOP - MasterMind : Probably JLabel CENTER - Where you set each guess … | |
Hello, I'd like to get people's opinion on the below. Let's say we want to create a constant mapping between int & String within our application. An obvious solution is to create an Enum with a getter() which returns the String based on a given int. However, we could also … |
The End.