64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for anand01

Hi all when i run the following code [CODE]TreeSet<Integer> s = new TreeSet<Integer>(); TreeSet<Integer> subs = new TreeSet<Integer>(); for(int i = 606; i < 613; i++) if(i%2 == 0) s.add(i); subs = (TreeSet)s.subSet(606,true, 630,true); s.add(629); s.add(630); System.out.println(s + " " + subs); [/CODE] the O/P is [606, 608, 610, 612, …

Member Avatar for anand01
0
131
Member Avatar for UNDER-18 FG

Hey, everyone~ Being the second time posting here, I'll try to make it simple but clearly as possible :) So, my assignment this time is about writing a C program to print the following star patterns: [CODE] * * * * * * * * * *[/CODE] So, here is …

Member Avatar for YAMNA MIDHAT
0
284
Member Avatar for Clawsy

I want to use jw player on my site but when i start it with F5 with visual studio, i can see the page but the player is a WHITE BOX and if i right-click it it says Movie not loaded. I checked all paths, and i also use Firebug …

Member Avatar for amit28it
0
240
Member Avatar for trektrak

Hello, I need help on this... I try to insert image from mysql into my php table.... but the output inside the image table are unknown characters [CODE]�Sm��.�l1�ZQm�M�Խok�*����5l��0P9���f�����I� �$A�3tu4Z��Jǽ�_t/�&��[�{Ro������;�� �:��I%�y�ҩ?u\�t_��Ǡ]�����N�>�B��z�9���ҥ��=hƬկdw��~��hY4�E����f%����MC�� 1���I�P@zP&r����j���֩��k޺8�a�p��bSMyt���Co�Q$��?�ZF*�S�9����حR����������x�h�9$�J \�m,[�6�^C��ct�q�U%��K$%�8����4����le�niX���\B �!s9n�;�1��F~t�䎪:�E�+�7R[���"! �1ZݞzQ�>(�zSxѹ 5�⺞��mG%��֦�k �����/��9]_�4���!4 ���}���hI�����

Member Avatar for niranga
0
5K
Member Avatar for UNDER-18 FG

Hey, everyone~ Being the second time posting here, I'll try to make it simple but clearly as possible :) So, my assignment this time is about writing a C program to print the following star patterns: [CODE] * * * * * * * * * * [/CODE] So, here …

Member Avatar for mrnutty
0
333
Member Avatar for ninjatalon

Can someone please help me on getting a formula round off to the next highest .25. example: 2.35->2.50 2.26->2.50 2.24->2.25 2.51->2.75 I can't use the Round function because if I have 2.26 then it will round off to 2.25 which is unacceptable. I have been using the Ceiling function but …

Member Avatar for ninjatalon
0
195
Member Avatar for Dakot

hello , i want to cin n numbers then to sort the positive numbers in one array, the negative numbers in another array , then to print positive array. So let me explain , i run the program , i enter the 9 , then enter 1 2 3 4 …

Member Avatar for Dakot
0
155
Member Avatar for pote86

The following is my code for login function. I save the password as MD5 but inside the url after logged in it shows the full word instead of showing MD5. I'm still very new to Java EE and any help I can get will be very much appreciated. [CODE]<%@ page …

Member Avatar for pote86
0
2K
Member Avatar for nick6987

i am having trouble with lets say i do not have any test scores and enter -1 there is an error of dividing by zero. [CODE]import java.util.Scanner; public class myarray { public static void main(String args[ ]) { Scanner kbd = new Scanner(System.in); //total number of quiz scores possible in …

Member Avatar for nick6987
0
2K
Member Avatar for Coderunner

Hello, I hope somebody can help me out here ... I'm having a problem with error code while searching a word in a flat file. My flat file[CODE]|~|20091105213652|~|05 november 2011 - 21:36|~|John|~|18 cm|~|text 1|~|text2|~|text3|~|text4|~|text5|~|text6|~|No|~|John.jpg|~|xxx.xxxs.xxx.xxx|~|extra|~| |~|20091105213929|~|05 november 2011 - 21:39|~|Jeff|~|45 cm|~|text 1|~|text2|~|text3|~|text4|~|text5|~|text6|~|No|~|Jeff.jpg|~|xxx.xxxs.xxx.xxx|~|extra|~| |~|20091105220916|~|05 november 2011 - 22:09|~|Paul|~|15 cm|~|text 1|~|text2|~|text3|~|text4|~|text5|~|text6|~|No|~|Paul.jpg|~|xxx.xxxs.xxx.xxx|~|extra|~| |~|20091105221959|~|05 november …

Member Avatar for diafol
0
232
Member Avatar for just_starting

I am trying to write a program that 1. Lets the user write new students and there overall grade to the file, 2. Opens the file to view course info(student and their grade) 3. Shows course stats(mean and range for the class). Here is what I have so far, can …

Member Avatar for just_starting
0
189
Member Avatar for justlearnin

Okay, I am trying to extract text from a text box and redisplay it into labels. Specifically, when the user types in an address, say 123 W Elm, I want to click a button and have the "123" print in one label, the "W" to display in a second label, …

Member Avatar for justlearnin
0
126
Member Avatar for bluehangook629

I have a stored procedure that creates temporary table to populate return table. It works perfectly fine when I execute it on SQL management studio but when I try to import this sttored procedure, it give me an error Invalid object name '#TOTAL' which #TOTAL is the temp table that …

Member Avatar for bluehangook629
0
222
Member Avatar for newvbnetuser

I am trying to write a windows application in vb.net to import data from excel to sql server. I got "object not set to an instance of an object" error. The data actually have been inserted into the sql. The following is my code. I have a button when the …

Member Avatar for bluehangook629
0
330
Member Avatar for bluehangook629

I am trying to create keypress handler that will execute a line of code when Tab, Space, or Enter key is pressed or passed by the scanner gun while the control is in focus. I got it to work with space and enter key but with tab key, the cursor …

Member Avatar for bluehangook629
0
256
Member Avatar for sofia85

Hi, I'm trying to create a new file. In this file I want to add some results I have received from my code. Unfortunately I get a error message saying I can't combine str with list. So then I tried to make a string out of the list and ended …

Member Avatar for sofia85
0
99
Member Avatar for jetlife76

Hi guys, i was watching a video on youtube and noticed that the program the guy was using had a feature where it would pretty much suggest code as he typed. I remember something like this in visual basics and thought it would be cool to help me with PHP …

Member Avatar for jetlife76
0
121
Member Avatar for hughesadam_87

Hey everyone, I have a set of classes which, when instantiated, take up a lot of memory. I'm trying to write a program which can inspect class attributes and methods given a list of classes, without actually instantiating them. Let's say I wanted to see if the following class had …

Member Avatar for hughesadam_87
0
222
Member Avatar for YAMNA MIDHAT

i have made a program with this algorithm but its not working properly my code is given below can you help me to remove the errors [CODE] #include<stdio.h> #include<conio.h> void main() { FILE *f; char ch; int nalpha=0,nword=0,nno=0,nsc=0; f=fopen("abc.txt","r"); if(f!='NULL') { while(ch=getch(f)!=EOF) { printf("%c",ch); if((ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z')) nalpha++; else if((ch==' ')||(ch=='.')) nword++; …

Member Avatar for YAMNA MIDHAT
0
166
Member Avatar for powerdink

Hello all, I'm trying to inherit a "CarPanel" I created using arrays to draw various shapes in order to make a car. Now I am trying to essentially create a subclass that inherits that class, but add a Timer Action to move the car across the screen. I got it …

Member Avatar for JamesCherrill
0
509
Member Avatar for Griff0527

I would like to start this post off with, I am not looking for someone to do my homework for me. If I was looking for someone to "do it for me", I would go to one of the sites where you can pay someone to do your work for …

Member Avatar for Griff0527
0
1K
Member Avatar for hindu times

Hi there, This is following on from a previous solved thread. Basically, I have this code: [CODE]<td colspan="2" align = "center" style="color:#FF0000; font-weight:bold;">' . ((isset($_GET['error']) and ($_GET['error']=='recaptcha')) ? 'Error: The captcha was entered incorrectly. Please try again.' : '') . ' </td>[/CODE] I've now been told that the "Error: The …

Member Avatar for jpdeleon
0
340
Member Avatar for triumphost

Trying to re-write a php function to C++ using boost.. I have NOT seen code for this anywhere on the net. I thought it was useful and I need it for C++ but I need help.. definition of the function in c++ [CODE] void preg(string pattern, string subject, string &matches, …

Member Avatar for vijayan121
0
225
Member Avatar for jon4321

I've received the requirements to make a form that inserts into a database, and then allows the user to edit the information they inserted. So what the form would do is get registration information from the user, insert it into the appropriate tables, and then redirect to a page with …

Member Avatar for jon4321
0
116
Member Avatar for stereomatching

I like STL but the performance of the STL of visual C++ 2005 is not good enough, could I find some containers which looks like STL? Oops, I just found 1.48 release a brand new library--Container This library even support rvalue reference, so sweet. I love you, boost. Thanks

0
75
Member Avatar for schoolboy2010

Hi, I'm trying to use JavaScript to make a story out of randomly selected words from 4 arrays and then insert it into a textarea. It isn't working, can someone please tell me how to fix it.... there's an error somewhere I can't find. Thanks. HTML [CODE]<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> …

Member Avatar for niranga
0
476
Member Avatar for abelLazm

hello all i m new at using C1truedbgrid..... and feeling very uncomfortable in shifting frm datagridview to c1truedbgrid.... can you help me in doing so????? my question at this time is that i m using a checkbox column in c1truedbgrid nw in order to select all checkbox i placed an …

Member Avatar for vani reddy
0
2K
Member Avatar for Naik Dhiren

Hi, i am new to c#. i write a code as below.You see that i obtained columnname and dataType but How can i get size of field in Table ? Pls help me. foreach(DataColumn dc in ds.Tables[UpdateTableName].Columns ) { lFound = false; cNewName = dc.ColumnName; cNewType = dc.DataType.ToString(); Thanks a …

Member Avatar for mostnour
0
2K
Member Avatar for cguan_77
Member Avatar for cguan_77
0
226
Member Avatar for vlady

helo, I learn Classes and methods according to a manual "Think Python: How to Think Like a Computer Scientist" I am stuck on "Polymorphism" There is a part using built-in function sum. I don't know what to do... It should be connected to __add__ function, but still the code must …

Member Avatar for vlady
0
126
Member Avatar for tanha

I came again across "http://www.mysqludf.org/lib_mysqludf_str/index.php" and found the library useful but I could not figured out how to install and use them on WAMP Server version 2.0 with MySQL version 5.1.36 on Windows 7. I did followings steps but did not get the work done: 1. Created a directory named …

Member Avatar for tanha
0
885
Member Avatar for tanha

Hi, I would like to track students activities by the teacher and this is visible by the students parents "dependents" and therefore the parents could give comments to the activity issued by the teacher and the teacher could respond to parents comment too. So I designed the ER Diagram, but …

Member Avatar for tanha
0
152
Member Avatar for manish250

Hi all I have a interface built in jsp working fine in i.e6 but not visible in firefox and internet explorer 7. Ho to debug my jsp page .Please suggest

Member Avatar for manish250
0
465
Member Avatar for bmanzana

this worked a few times and now its not :( anny help would be greatly appretiated [CODE] #include <iostream> #include <string> using namespace std; string vowels(string str) { string vow = "aeiouAEIOU"; for(size_t i = 0; i <= str.length()+1; i++) { str.erase((str.find_first_of(vow)),1); } return str; } int main() { string …

Member Avatar for bmanzana
0
109
Member Avatar for jnmisa

I am also a New Learner, Base on the Request, This Simple Code would detect if a Number is Even or ODD number.... // This is to Detect Odd and Even Number [CODE] bool ValidateDegreeValue; // This is to Validate that the User Enter Number Data double DegreeValueNum; // This …

Member Avatar for jnmisa
0
172
Member Avatar for Rzink92

I have a tic tac toe board i am finding it hard to figure out how to change parts of the array that contains char. I am looking for a way to to ask the user to select a char to change in the the array and then once they …

Member Avatar for Rzink92
0
90
Member Avatar for asif49

I'm not really good with arrays and have had a go at this, but to no avail. I have a string called $str and another called $area. I need to split the string $str into an array of words (delimiter being spaces). This is the part I was able to …

Member Avatar for asif49
0
155
Member Avatar for sushlet

[CODE] ifstream in_gradebook; ofstream out_gradebook; in_gradebook.open("gradeBook.txt"); out_gradebook.open("gradeBook_edit.txt"); while (???) //while int is being read { in_gradebook >> score; out_gradebook << score << " "; sum = sum + score; } average = sum / 10.0; out_gradebook << average << endl;[/CODE] Here is a small snippet of the code I have …

Member Avatar for sushlet
0
246
Member Avatar for saurabh2007

If I am inside a folder and I use "/", it uses it for root directory so [CODE]<a href="/">test</a>[/CODE] links to [url]www.test.com/index.php[/url] For example, if i am in the file [url]www.test.com/login/index.php[/url] and I use "/" then it goes to root directory but if I am in [url]www.test.com/index.php[/url] which is the …

Member Avatar for saurabh2007
-1
87
Member Avatar for Ratte

I am developing an application that involves serial port communication (using an FTDI device) and an operation which takes 3 minutes on an XP box, takes 9.5 minutes on a Windows 7 box. The application should handle data at a rate of about 11 kilobytes/second. I know my application is …

0
84
Member Avatar for Ratte

I am designing an application which communicates with another device via a serial port. My application buffers the received binary data until the data is valid/of known format, does some processing and then writes back a response. I understand this model is known as the consumer/producer model. The issue I …

Member Avatar for Ratte
0
243
Member Avatar for fmnajp

I am new to Java and I am having trouble knowing if my array is populating when I click the enter button and printing out the data into the text area when I click the run reports button. When I put data in the text boxes the boxes are being …

Member Avatar for fmnajp
0
195
Member Avatar for DK58

Ok so my problem should have a fairly simple fix. My program takes the number of families and their income and prints the families that make less than 10% of the maximum income. Below is a sample run. Please enter the number of families: 5 Enter an income: 8500 Enter …

Member Avatar for DK58
0
98
Member Avatar for ndb1995

My problem is in the guessing method, I am not sure if the way I set up playing the game again works, (don't know if entering yes will work) and I'm not sure on how to call the main method to play again, and also I'm suppose to give the …

Member Avatar for ndb1995
0
200
Member Avatar for bluehangook629

I have a sql query with that adds numerical values from different table to find total for a shipment. When I execute this query, it works fine for the first record but rest of the records show null value when I know there are records present. SQL pros please take …

Member Avatar for bluehangook629
0
376
Member Avatar for Drugsxxx

Is it pasible to find all occurrences of strings "North" and "North-East" in some txt file and save number of occurrences in some variable??

Member Avatar for Drugsxxx
0
2K
Member Avatar for deraad

I'm making a feature like stated in the title that gives suggestions based on what terms exist in the database; I have a working example below that works for one term. such as "oranges", or "yellow bananas". However, I need it to work for multiple terms so if my database …

Member Avatar for deraad
1
241
Member Avatar for noobprogrammerr

[CODE]public List<EventEntity> GetCurrentUpComingEventsByEstate(string estName) { EventDBModelDataContext context = new EventDBModelDataContext(); var res = from e in context.EventEntities where e.estateName==estName && e.eventDate >= DateTime.Now select e; return res.ToList(); } [/CODE] [CODE] [OperationContract] [WebInvoke(Method = "GET", UriTemplate = "GetCurrentUpComingEventsByEstate?estateName={estName}", RequestFormat = WebMessageFormat.Xml, ResponseFormat = WebMessageFormat.Xml)] List<EventEntity> GetCurrentUpComingEventsByEstate(string estName); [/CODE] Hi guys, may …

Member Avatar for thines01
0
124
Member Avatar for auwi987

hi guy's i need some help. my project is an ATM simulator, to handle screen design i used panel for withdrawal, pin verification, balance etc. to explain further i have 1 panel for withdrawal a panel for pin verification etc. now idont know how to control those panel like if …

Member Avatar for auwi987
0
140
Member Avatar for evanescence

Hi! I have to write something like a multisim-like ([URL="http://www.ni.com/multisim/whatis.htm"]http://www.ni.com/multisim/whatis.htm[/URL]) software in VB.NET. My task is to make several custom controls, which the user can combine in order to create a circuit and test it after that. The problem is that I don't know how to make a control, looking …

Member Avatar for evanescence
0
102

The End.