775 Posted Topics
Re: [QUOTE]I am becoming annoyed at the amount of responses on this site saying (something along the lines of) "This thread is 5 years old, please leave it alone.".[/QUOTE] I am more annoyed about the replies 5 year old threads get... Because They're usually a question made by a newbie not … ![]() | |
Re: [URL="http://lmgtfy.com/?q=recursion"]Is searching too hard for you?[/URL] If you have a problem understanding a concept you could post that here and thats where we come in and help you understand or clarify things. | |
Re: It will give us a better idea if you could post your current code here or are you just asking for suggestions on this? | |
Re: TaxDeduc method does return a value but you dont seem to properly call the method itself instead in your main method the variable is assigned as a float these links should help you [URL="http://www.tutorialspoint.com/java/java_methods.htm"]http://www.tutorialspoint.com/java/java_methods.htm[/URL] [URL="http://www.wikihow.com/Call-a-Method-in-Java"]http://www.wikihow.com/Call-a-Method-in-Java[/URL] | |
Re: [QUOTE]get the error messages and post them here[/QUOTE] either that or post all of the contents of the codes | |
Re: Can you post the line 71 in your code | |
Re: [QUOTE=Ancient Dragon;1753100]Why? You (or another mod) is going to delete the post anyway, so why bother?[/QUOTE] The comment will stay in the reputation page of the profile as a bitter reminder of the sin the spammer committed | |
Re: You made Duplicate posts at the [C](http://www.daniweb.com/software-development/c/threads/410449") and [C++](http://www.daniweb.com/software-development/cpp/threads/410448) forums and I received 3 private messages from you with the very same topic You could have just made a single thread and waited patiently for a response from one our members @AD there's a [ at the end of your … | |
Re: that user hasn't logged back on since July 15, 2010 so good luck getting a reply | |
Re: So do you still have a problem about the code? | |
Re: [CODE] while (i >= 0) { if(i == 0) { list[i] = value; } else { list[i] = list[i-1]; list[i] = value; i--; } }[/CODE] once i becomes 0 at this loop its value will remain 0 because it will always pass the if statement which doesn't change the value … | |
Re: initialize the values of your strings like so [CODE]char string1[50] = ""; char stringInvertida[50] = "";[/CODE] then use fgets in receiving a input instead of using gets [URL="http://www.gidnetwork.com/b-56.html"]here's the reason why[/URL] | |
Re: the whole program is commented out... put */ at the line after the author | |
Re: If you started the thread, there should be a "Mark as Solved" link below the last post. though its ok if you don't really wanna mark this one as solved since me and the other member would get a +1 solved thread without actually helping you... but hey that's up … | |
Re: [CODE]char a[100000];[/CODE] maybe you meant to use an array of integers since your just using numbers? | |
Re: Didn't [URL="http://www.daniweb.com/community-center/it-professionals-lounge/threads/404871/1730284#post1730284"]this post[/URL] helped you already? | |
Re: use a counter for each task | |
Re: [QUOTE] I want the "Add To File" button to be full length (across the GUI)[/QUOTE] do you mean that you want to edit the button size? if so you can use this to change the button size ButtonName.setPreferredSize(new Dimension(buttonWidth, buttonHeight)); | |
Re: Put the numbers in a 2d array (if you haven't done this yet) then add each element according to their index using a loop and lastly divide it by the total number of items same method can be applied in getting the average of grades across or from up to … | |
Re: remove the semicolon ; on line 45 and write an else statement inside the [CODE]else if (genderType=='f' || genderType=='F')[/CODE] statement after the last else if statement inside it if you want a default output if the name's is not equal either the if and else if statements after it [QUOTE]i … | |
Re: [QUOTE]but I don't know how to loop back again to my "main screen" after an action has been done by the user. [/QUOTE] You could simply put the whole menu in a while loop that runs while choice is not equal to 4(the exit in your code) | |
Re: [CODE]public Thread1(String name, int len, String a[], String b[]) thr[0] = new Thread1( tt , baseLength, aa, bb);[/CODE] A String cannot be converted to a String[] by method invocation conversion | |
Re: you need to put the main method and all your methods inside your public class [CODE]private Container getContentPane() { throw new UnsupportedOperationException("Not yet implemented"); } } [/CODE] the last bracket here ends your public class and don't put ); after the end brackets *next time wrap your code in code … | |
Re: The ascii value of [COLOR="red"]E[/COLOR] is 69 and [COLOR="red"]A[/COLOR] is 65 so more or less the its like [CODE]printf("%s",p + 69-65);[/CODE] when simplified it will look like [CODE]printf("%s",p + 4);[/CODE] this will print out the characters from 2 up to 1 (2011) | |
Re: [QUOTE=ddm;1749513]This is my work but I believe I did it wrong 1 { 2 int rNumb[50]; 3 input (rNumb); 4 output (rNumb); 5 } 6 int input (int x[]) 7 { 8 int i = 0; 9 srand(time(0)); 10 for(int i=0; i<50; i++) 11 x[i] = rand()%100+1; 12 return x[i]; … | |
Re: [QUOTE=laklaker;1746309]Why so hard? :([/QUOTE] Actually stultuske's post is suppose to make the program a lot easier to handle and use which part are you having problems understanding? | |
Re: Do you want the name to be related to the product or service of the software company? :) | |
Re: Did you check the Oracle docs? [URL="http://docs.oracle.com/javase/tutorial/java/javaOO/nested.html"]http://docs.oracle.com/javase/tutorial/java/javaOO/nested.html[/URL] [URL="http://docs.oracle.com/javase/tutorial/java/javaOO/innerclasses.html"]http://docs.oracle.com/javase/tutorial/java/javaOO/innerclasses.html[/URL] | |
Re: is the image found in the same directory or in the right path? | |
Re: Could you explain your problem and your code more clearly... What exactly is the output you want to achieve? Can you give us an idea of what you want to do next or are you asking for suggestions for what to do next? | |
Re: at the function at Line 142 , the bracket after return 0; ends just the while loop resulting in main and other functions inside the function at said line | |
Re: you could also try to print out the value of i while incrementing it to see the changes that happens and its current value for yourself | |
Re: I suggest to deal with the errors netbeans found before trying to run it [QUOTE] @override[/QUOTE] Read this and maybe search google for more info [url]http://stackoverflow.com/questions/561365/what-is-override-for-in-java[/url] [QUOTE](btw i have no idia what static and final means)[/QUOTE] Still the same,If you doubt their purpose or use you can always search the … | |
Re: [QUOTE]Well, I keep moving the code blocks around. It does not work.How do I change the gallon variable since all I can do is Input number. Gallon does not have a specific value that is assigned to it.[/QUOTE] [CODE] printf( "Enter gallon used (-1 to end): " ); scanf( "%d", … | |
Re: [QUOTE]//Can I use new keyword with the abstract class? [/QUOTE] no you can't create an instance of them.Instead, you have to subclass them and create an instance of your subclass. Kinda like what you did | |
Re: [QUOTE]The players can play where other players have already played. I tried to use the switch statement at the bottom in method checkMove where if result == false, that spot is taken. But of course, anyone can see that that will not work. [/QUOTE] Use a loop instead of just … | |
Re: I am working on a project in c programming and relearning how to use malloc() | |
Re: And why aren't you allowed? well you could use a loop that only runs once but that would be bad programming even it solves the problem but hey | |
Re: Put the methods before your main and Declare the variable types in your methods | |
Re: [URL="http://www.daniweb.com/forums/announcement8-2.html"]http://www.daniweb.com/forums/announcement8-2.html[/URL] Sorry but this is not a forum where we provide code Make an effort and show your code if you need help with it | |
Re: Maybe this article on using a Toolkit method, getImage() might help you out [URL="http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter06/images.html"]Link to Article[/URL] | |
Re: Are you trying to make a number guessing game like program cause that's the only logical thing I interpreted from what you just posted | |
Re: [QUOTE]What method would I use in order to count the numbers in the output... Like how many 1's and how many 2's etc. etc.[/QUOTE] Wouldn't it be much easier if you add 1 to a counter exactly after the generated number [CODE]//your number generator code for (int i = 1; … | |
Re: following songokute's post, they're already in an array of strings(for every line that is) you could use a loop to check [CODE]for(int i =0; i < State.length ; i++) System.out.println(State[i]);[/CODE] | |
Re: [QUOTE]but sometimes it encounters segmentation error.[/QUOTE] On what part does the segmentation fault occur? | |
Re: It doesn't show any of those errors when I try to compile it in netbeans 7.1? maybe you could try printing it like this [CODE]System.out.println( "For the Department " + departName ); System.out.println( "With this number of employees " + employees ); System.out.println( "And with this average salary: " + … | |
Re: When you use a variable without passing it by reference to the function doesn't give it a new value when you return to main for example: [CODE]printf("The new salary is %.2f\n",sum);[/CODE] You never assigned a value to sum at main just because you assign a value to it from a … | |
Re: [QUOTE]"I WANT TO MAKE SOFTWARE![/QUOTE] What kind of software does he want to make? | |
Re: [QUOTE]but when I call the list function the names aren't right but the ID and mark data is correct. For the list function all I do at the moment is print each member in all the structures. [/QUOTE] Then could you post the list function | |
Re: [QUOTE]simple way to check if a JButton is not Enabled[/QUOTE] isEnabled() would return [B]false[/B] if the button is not enabled and true if otherwise Isn't that enough to know that the button is not enabled? |
The End.