190 Posted Topics

Member Avatar for nuch1311

[QUOTE=nuch1311;535654]Need help sorting the array to get the highest number.[/QUOTE] You do not need to sort to get the highest element. Sorting is expensive. Getting the highest element is easy. Just go through and keep track of the highest one seen so far.

Member Avatar for DangerDev
0
126
Member Avatar for ajithraj

This is in the wrong forum. This has absolutely nothing to do with Java. JavaScript and Java are completely unrelated. Please post in a correct forum.

Member Avatar for ajithraj
0
94
Member Avatar for lmike

i had the same problem. i went to internet options and deleted: temporary internet files, history, cookies and form data. that fixed my problem. hope this helps!!!

Member Avatar for bugmenot
0
611
Member Avatar for WatermelonX

[QUOTE=WatermelonX;514628]Okay so I've been getting A LOT of pos.tmp etc. files in my C: Drive and My Docs. I also have a Red X for the icon of my C Drive. I also have these "system messages": System Warning: Windows performed illegal operation. Your system files could have critical errors. …

Member Avatar for crunchie
0
191
Member Avatar for sanzle
Member Avatar for Derice

if "\" were the separator, you would do [code]str.split("\\\\")[/code] the reason is that the argument to split() is compiled into a regular expression; and characters which are special in regex need to be quoted the backslash is also the escape characters for strings in general, and needs to be doubled …

Member Avatar for Derice
0
239
Member Avatar for daviddoria
Member Avatar for bugmenot

OK, so heres my code, check it out, let me know what you think, I'm trying to embed a serpenski triangle into it, and the program isn't crashing but it isn't displaying and I'm not sure why, if you can tell me it would be greatly appreciated. Also, I need …

Member Avatar for bugmenot
0
178
Member Avatar for arkaprava

[CODE]attribute[] attr=new attribute[no_of_attribute];[/CODE] attr has no_of_attribute arguments [CODE] for(int i=0;i<no_of_entity;i++){[/CODE] i goes from 0 to no_of_entity [CODE] for(int j=0;j<no_of_attribute;j++){[/CODE] j goes from 0 to no_of_attribute j is never used [CODE] System.out.println("The name of the attribute="+this.attr[i].name);[/CODE] you access attr[i] but i might be bigger than the size of attr, which is …

Member Avatar for PoovenM
0
178
Member Avatar for Derice

Math.pow takes two floating-point numbers and returns a floating-point number maybe you want to convert it to an int first?

Member Avatar for javaAddict
0
89
Member Avatar for KimJack

on an unrelated note, you should look at System.arraycopy() to copy parts of arrays

Member Avatar for bugmenot
0
2K
Member Avatar for jdseader

there are two lines where you call that method; you caught the exception for the second one, but not the first

Member Avatar for jdseader
0
1K
Member Avatar for eena75

[QUOTE=mickinator;508762]Well the basic way of getting time in a program is to use long x = System.getCurrentTime(); which returns the current time of the computer in milliseconds. Anyone with a brain could figure it out from there! :p[/QUOTE] there is no such method in my Java API perhaps you are …

Member Avatar for mickinator
0
191
Member Avatar for abhi_elementx

[QUOTE=abhi_elementx;504559] [CODE]char* ar2 = new char(strlen(ar));[/CODE] [CODE]array[top] = new char (strlen(ele));[/CODE] [/QUOTE] oh my god, you are allocating one character, and then you are setting that character to the character that has the ASCII value that is the length of some other string look at it

Member Avatar for abhi_elementx
0
104
Member Avatar for snitch321

your code does not make any sense to declare a private field, you write "private <type> <name>;" so your line doesn't make sense because "System.out.printIn" is not a type and there is no name

Member Avatar for snitch321
0
121
Member Avatar for mrjoli021

how about #include <cstdlib> instead of #include <stdlib.h> and have using namespace std;

Member Avatar for Duoas
0
242
Member Avatar for snitch321

usually the idea of arguments is that you would use them in your method, so you need to give it a name

Member Avatar for snitch321
0
98
Member Avatar for freddiecool

[QUOTE=darkagn;503595]Hi freddiecool and welcome to DaniWeb, Not sure if this is your problem, but your variables should be initialised as private. ie: [code=java] private pryDialog pd = new pryDialog(); private int option = 0; [/code][/QUOTE] No, those are local variables inside the method. They do not have access modifiers like …

Member Avatar for freddiecool
0
235
Member Avatar for bis student

underneath, passing by reference involves passing the pointer to the thing being referenced; maybe this will give some insights into how it works so in the example from above, [CODE]void foo( int val ) { val = 1; } void foo2( int &ref ) { ref = 1; } int …

Member Avatar for twomers
0
128
Member Avatar for mir12
Member Avatar for wijitha

what does that even mean? integer is a type hexadecimal is a representation of integers it doesn't make any sense to "convert"

Member Avatar for Jishnu
0
120
Member Avatar for alsoumhi
Member Avatar for iamthwee
0
151
Member Avatar for kalpana_srini
Member Avatar for kilogul

that might not work well on filenames with spaces anyway, why can't you just do something like this? [code]rm -i *.psd[/code]

Member Avatar for eggi
0
112
Member Avatar for djJonno

so i am assuming that Pigeon is a subclass of Bird? I am not sure what methodA does; but it should probably return a Bird *, since that works for both Birds and Pigeons. the print() method should be virtual in Bird, if you want it to be able to …

Member Avatar for djJonno
0
92
Member Avatar for mrityunjay22

umm... have you used vi before? if not, there are other editors like emacs and nano etc. that might be simpler to learn anyway, vi has two modes, the command mode and insert mode. it starts in the command mode, where you can move around and do commands. the command …

Member Avatar for eggi
0
12K
Member Avatar for bugmenot

Hi, I have a linked list which I created in a function? I want to allow the user to enter a name for the linked list, and then after he/she can display the list by typing in the title. This is part of my code [code]struct llistt{ char str[100]; // …

Member Avatar for Narue
0
171
Member Avatar for ianmanzy

[QUOTE=ianmanzy;467987]Hi I am a newbie to this kind of thing as well as to this site and I need some help!!! I have come very close to making the new PS Eye (SLEH-00201) camera work on my laptop, but I really have no idea what I'm doing.[/QUOTE] [url=http://forums.ps2dev.org/viewtopic.php?p=60396]This guy[/url] has …

Member Avatar for jerseyboy
0
643
Member Avatar for badbloodyeyez
Member Avatar for Nick Evan
0
661
Member Avatar for u4umang2001

If that is your actual code it should be background-color:#9E0039; Change it to that and it should be kosher.

Member Avatar for SheSaidImaPregy
0
97
Member Avatar for Dani

The above poster is correct about money market funds in general (that they carry some small amount of risk as an investment). However, this is not the main problem with Paypal. The problem is, Paypal is NOT a financial institution, but they pretend to be one. There is no oversight …

Member Avatar for ddyrr
0
272
Member Avatar for BABSYOMMY
Member Avatar for bugmenot

I bought a new SATA Hard Drive, and I want it to be secondary to my first hard drive. After I connected the device to my computer, how do I install it so I could see it in the "My Computer" folder? I'm also having problems setting it up on …

Member Avatar for fren
0
185
Member Avatar for SiPexTBC

[INLINECODE] using System.Net.Mail; public static string sendMail(string theBody, string toEmail, string fromEmail, string subject, string aReturn) { try { MailMessage tempMess = new MailMessage(fromEmail, toEmail, subject, theBody); tempMess.IsBodyHtml = true; SmtpClient tempClient = new SmtpClient(); tempClient.Send(tempMess); return aReturn; } catch (Exception E) { return E.ToString(); } } [/INLINECODE] You need …

Member Avatar for Ramy Mahrous
0
108
Member Avatar for glowkazaf

It is client-side, and server-side. Client-side is things like javascript, its just logic on the clients side, as opposed to server side which is code that is executed on the server, and then dumps html back to the client, putting all the logic safely away from the user. Server side …

Member Avatar for bugmenot
0
52
Member Avatar for mr_fany

You need to load the image into an Image object and then do one of these [INLINECODE] Graphics g=null ; g = Graphics.FromImage(image.Image);[/INLINECODE] With that you can do all kinds of things, drawLine, drawText. And then just save it again.

Member Avatar for bugmenot
0
81
Member Avatar for Saroja

A template for asp.net is no different than a template for dreamweaver. You just need to be a bit more creative with it, converting input tags to the correct asp.net equivalent.

Member Avatar for kvishnu2007
0
150
Member Avatar for bhakti.thakkar

[code=c#] al = new ArrayList(); dt = myHelper.GetDS("SELECT name FROM sys.tables ").Tables[0]; foreach (DataRow r in dt.Rows) { al.Add(r["name"].ToString()); } foreach (string i in al) { DataTable proc = myHelper.GetDS("select * from " + i).Tables[0]; Tables.Add(dbToInsert(proc, i)); } private static string dbToInsert(DataTable proc, string name) { string insert = ""; …

Member Avatar for bhakti.thakkar
0
117
Member Avatar for mhdie

hey can some one help me to plz i lost my pw for adminisrtator and i am uesing a guest acc Administrator:500:58,B3,6F,DD,5E,9D,90,DE,5D,02,2B,0C,8D,0D,6C,5C,46: _A2,EC,D4,85,76,D0,80,C7,B0,CD,B1,9B,2F,39,F8,14,XX::: Password ispcl321

Member Avatar for ProgrammersTalk
0
197
Member Avatar for bugmenot

My monitor is being plagued by strange discoloration at the very top of the screen. Its a Samsung syncmaster 171N LCD. Does anybody recognize this problem/know anything I can do to fix/improve it? Buying a new monitor is out of the question, so I'd least like to know what is …

Member Avatar for dcc
0
95

The End.