No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm supposed to be making an inventory program with a logo. I can get the inventory part working fine in a jframe, and I can get the logo working fine in jpanel, but if I combine them it starts acting really weird. Every time I click a button, it generates … |
|
I have two quick questions: 1) What is the point of a static method? As far as I can tell, there is no data there that would be accessed by multiple objects as there is no data stored there at all... 2)What does it mean to have a const after … |
|
I was writing a code for class as follows: [CODE]import java.util.Scanner; public class Salary2 { public static void main(String[] args) { Scanner input=new Scanner(System.in); String name; float salary; float hours; System.out.print("What is the employees name?"); name=input.nextLine(); while (!name.equals("stop")) { System.out.printf("What is %ss salary per hour?", name); salary=input.nextFloat(); System.out.printf("How many hours … |
|
After having my nth pair of earbuds blow on me, I'm getting kind of tired of it. I'm not abusive but the ones I get ($20-$40 range) always break after a couple months. I'm ready to spend some good money on ones [I][U]that won't break[/U][/I]! Which ones have worked for … |
|
Re:
Us Long Islanders are bracing ourselves as we prepare for Hurricane Irene ... Some people on the south shore have already been evicted. How bad do you think it's going to be? I don't know what it is with natural disasters lately. So far this year we've been hit with … |
|
I've been having some trouble making the knights tour (getting a knight to go around a chessboard without touching the same square twice) work correctly. Right now the max amount of moves I can get out of it is 59. I can't figure out any reason why it shouldn't go … |
|
Do people here actually use the Daniweb Irc channel frequently? I was there a couple of days ago and it was totally empty... |
|
I'm currently using the fourth edition of Deitels "C++ How to Program", which I borrowed from the library. I'm interested in buying a copy of the textbook myself. If I buy a fifth/sixth edition will there be things that will be confusing? For example, are the concepts introduced in a … |
|
Re:
[CODE] cout<<"What HTH level are you (1,2,3): "; cin>>hthLevel; switch(hthLevel){ case 1:out<<"Hand to hand level= 1"<<endl;break; case 2:out<<"Hand to hand level= 2"<<endl;break; case 3:out<<"Hand to hand level= 3"<<endl;break; default: cout<<endl<<"Incorrect"; }[/CODE] Need to know how to loop this so if 1,2 or 3 is entered it continues but if an … |
|
Is there any easy way to view the full content of multidimensional arrays in VC++ 2010 in the debugger (or some other way I suppose)? |