775 Posted Topics
Re: use Double Buffering, here's a tutorial [http://www.javacooperation.gmxhome.de/BildschirmflackernEng.html](http://www.javacooperation.gmxhome.de/BildschirmflackernEng.html) | |
Re: >so,if i add listener,then the SAVE button will be ok? by okay, it means that when you'd add a listener you will execute whatever code you've written for the button's function whenever the button is pressed Check the API and Java tutorials, it'll save you a lot of time | |
Re: you haven't started the thread, add this on your start method Thread th = new Thread (this); th.start(); | |
Re: Could you tell us the problems, any error messages or runtime problem details plus thats not an Applet thats a Swing | |
I bet all Computer Science related courses would learn low level or machine level languanges in due time and in our university we used the portable 80x86 assembler NASM for our Assembly code So here's my experimentation on how to use "functions" and recursion using a Fibonacci Solver as a … | |
Re: how about dividing each element by the positive value of itself (other than the zeros) | |
Re: I didn't know that me and most of the people I know are nomophobic till I read this | |
Re: >still, having problems...phew Can't help you with just that, would ya mind posting more details | |
Re: add a space before %c to catch the enter key pressed scanf(" %c",&c); | |
Re: you can see why it doesn't work if you print out the values of the variables before the conditions then you can make the right adjustments | |
Re: check [win32 api](http://winprog.org/tutorial/) or [GTK+](http://winprog.org/tutorial/) for a tutorial | |
Re: add all of the scores using a loop with a condition that it must not exceed the number of scores then divide the total value by the number of scores it should look something similar to this for (int i = 0; i < TotalNumberofScores; i++){ Sum += Scores[i]; } … | |
Re: do you already know how to store values in a 2d 4x4 array? the trick in printing is using a nested for loop that prints the contents using the first index as the counter for the first one and the second index for the second loop while printing a newline … | |
Re: your condition at line 27 is causing this, if your input is valid it will always pass the loop condition thus printing the menu again | |
Re: you haven't declared n1 to n5 as a variable at main, next create or use a previous variable that would accept the value returned by the maxValue function | |
Re: in your loop at line 25 you dont need to iterate it 20 times but you use the input instead, use another variable to store the factorial | |
Re: use an array that increments its element depending on the value of the reference array/arraylist as you iterate over it the index of the counting array would depend on which value the current reference array has | |
Re: The error says it all, the actual and formal parameter for printout() at line 70 at names is wrong as it is an array | |
Re: could you repost the whole code ...why is there an *int maine()* on line 14? | |
Re: do you mean the data type [float](http://msdn.microsoft.com/en-us/library/hd7199ke(v=vs.80).aspx)? | |
Re: could you post that code so we may see | |
Re: I think it would be easier if you'd use an array or an arraylist to have a dynamic length and store a value for each index for the password | |
Re: >do you mean it is taking the input from the first or is skipping over taking in another value for the second variable? already answered by *Gonbe* it takes the '\n' input from the first variable although just have to point out that the first one stated (using fflush()) might … | |
Re: put the condition on line 15 in a loop that checks if the current input has already been used by a previous element, set the index of the array to the counter of that loop | |
Re: what's your question about it? possible solution I can think of right now is add the values and save to a variable as you push an element or when the stack already has a content, pop | |
Re: cout? why use a c++ standard output stream in a java program? use System.out.println() instead | |
Re: did you try printing out the contents of the array to see if anything is off or increasing the size of the puzzle by either a column or a row or both by all sides of the puzzle to see if it makes a difference in the results for example … | |
Re: what compiler are you using? check the sleep function from the unistd.h library if your using linux or windows.h for windows | |
Re: the row number should be odd so the condition in the inner loop that prints the number should have a limit of row*2-1 for the numbers use conditions that prints out the current row and by incrementing a counter until the odd number corresponding to that row is found then … | |
Re: Could you post the whole language including the constraints just by the current details, the solution would look linear like checking if the next set of input corresponds to the right word like 'h' then 'e' where it could end with just the word 'hello' or 'world', are there any … | |
Re: line 9: that should be scanf("%d", **&**(ptr[i]).value); | |
Re: try printing the new top of the stack and next input after every pop/push to have a general view of the problem and see if the current conditions would satisfy the current input and top of stack, | |
Re: have you searched the web for description and examples? | |
Re: divide the number by ten and hundred to get the value of each digit then use a loop that checks if the digit is odd or even by using the modulo operator (if the number is divisible by 2), if the remainder is 0 then it's even else odd | |
Re: yes there's a lot if you [search](http://lmgtfy.com/?q=factorial+C%2B%2B) | |
Re: you lost me at "apper"... could you discuss the problem in more detail | |
Re: Yes you could use C as the programming language medium for a graphics application and use gcc to compile it but you need to include the openGL header files such as gl/gl.h, etc. which aren't native gcc header files | |
Re: okay, what's your question about the problem | |
Re: > but this does not address that issue of browser compatibility. check the cross browser solution here [http://html5doctor.com/native-audio-in-the-browser/](http://html5doctor.com/native-audio-in-the-browser/) and a flash fallback for old browsers here [http://www.html5tutorial.info/html5-audio.php](http://www.html5tutorial.info/html5-audio.php) at the end of the article | |
Re: did you make sure caps lock isn't on or you have administrator privileges? | |
Re: shouldn't this be simple like using the <audio> tag or am I missing a point here? | |
Re: >Scanner console = new Scanner(System.in >Scanner console = new Scanner(System.in); Declare this only once and before the loop or the first use of input also post the complete code your working with >and if the book title is something like "animals" and if i type in animal it does not … | |
Re: A simple solution would be to place all the elements inside a division that has a fixed width | |
Re: Have you created an ER Diagram as a guide for creating the database? > So far, these are my tables that i make.but i think this is wrong.and i am confuse on this and what are the tables that i needed in the inventory system are those tables you posted … | |
Re: src="/images/pulpit.jpg" try the following * remove the first backslash " / ", that should be src="images/pulpit.jpg" * make sure that there is an image folder in the same directory as the html webpage * check for spelling errors * check if the image is really in jpeg format src="resources/100_0271.JPG" * … | |
Re: [QUOTE=adityatandon;1726809][B]For accepting a String :[/B] Cin works for accepting strings till a space is discovered. Instead of using cin.getline you can also use the gets() [available under string.h] function which accepts a string. It stands for 'get string'!! [B]To Find Length of String :[/B] Two ways : 1) Use strlen() … | |
Re: He's probably just doing a test run for some functions regarding the site to check for bugs etc. and this thread will probably be deleted as soon as he's done with whatever he's doing | |
Re: >can't we know who is downvoting or upvoting your posts? you can't only Dani or anyone who have access to the database can see which account upvotes or downvotes your post |
The End.