190 Posted Topics
Re: [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. | |
Re: 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. | |
Re: 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!!! | |
Re: [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. … | |
Re: 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 … | |
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 … | |
Re: [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 … | |
Re: Math.pow takes two floating-point numbers and returns a floating-point number maybe you want to convert it to an int first? | |
Re: on an unrelated note, you should look at System.arraycopy() to copy parts of arrays | |
Re: there are two lines where you call that method; you caught the exception for the second one, but not the first | |
Re: [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 … | |
Re: [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 | |
Re: 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 | |
Re: how about #include <cstdlib> instead of #include <stdlib.h> and have using namespace std; | |
Re: usually the idea of arguments is that you would use them in your method, so you need to give it a name | |
Re: [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 … | |
Re: 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 … | |
Re: [url]http://en.wikipedia.org/wiki/Shortest_path_problem[/url] | |
Re: what does that even mean? integer is a type hexadecimal is a representation of integers it doesn't make any sense to "convert" | |
Re: how about you just store it as an integer which when divided by 20 yields your number? ![]() | |
Re: that might not work well on filenames with spaces anyway, why can't you just do something like this? [code]rm -i *.psd[/code] | |
Re: 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 … | |
Re: 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 … | |
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]; // … | |
Re: [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 … | |
Re: 8 bit is to small to hold 16 bit, thats why they created 16 bit. | |
Re: If that is your actual code it should be background-color:#9E0039; Change it to that and it should be kosher. | |
Re: 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 … ![]() | |
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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: [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 = ""; … | |
Re: 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 | |
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 … |
The End.