775 Posted Topics
Re: did you enable your java plug-in in your browser? I tried the program in HTML and got it to work... | |
Re: it's *cough* *almost* as good as Google ;) | |
Re: make a method that calls itself by incrementing or decrementing the value passed to it will you be using threads here for the repaint? | |
Re: and after would be collision detection with the platforms when it detects the position of a platform it should stop the downward motion a good example for this is a mario game though deprecated here's a good example/tutorial I used as a base for my game a long time ago … | |
Re: You've been here for a long time already yet you still didn't put the code between [TEX][CODE][/CODE][/TEX] tags the reasons WHY you should do this is that it preserves the indentation for easier reading and puts lines of code that help us point out a particular line to comment on … | |
Re: [QUOTE]how can I display the whole equation to make it easier for the user to follow through? instead of just showing the final result? [/QUOTE] you could display the process by printing out a similar statement to the formula in the loop or you can assign the values used in … | |
Re: @line 14 y1 is not yet initialized so y2 won't have a value @ the while loops the value of y1 or y2 doesn't change so there won't be a chance to exit the loops [QUOTE]Doing that, and matching up the braces (my editor does that nicely)[/QUOTE] @rubberman you mean … | |
Re: [QUOTE=stultuske;1782870]well, you have two Strings: 1. your original word 2. a String the same length as your original one filled with *'s. you print the second one. whenever you guess a char, you verify with the original String if the char is in there, and if so, check the indexes … | |
Re: This can easily be answered with a wee bit of google search and the first result answered the question precisely [URL="http://www.cplusplus.com/doc/tutorial/functions/"]http://www.cplusplus.com/doc/tutorial/functions/[/URL] | |
Re: you could try reading the text then put the inputs in a 2D array then choose from there [QUOTE]Is there a way to have each question followed by a list of four possible answers all in a text file that can be added to at any time and pull them … | |
Re: [QUOTE]for example i can only enter DIGIT[/QUOTE] using if else statements? | |
Re: Try it like this: [CODE]if (series == 'A' || series == 'a')[/CODE] and do the same with the conditionals of b and c | |
Re: is this a duplicate thread with the one I posted at [URL="http://www.daniweb.com/software-development/c/threads/418149/1783115#post1783115"]http://www.daniweb.com/software-development/c/threads/418149/1783115#post1783115[/URL]? Your asking the same question | |
Re: [QUOTE]it's result is correct but it return the value 0 [/QUOTE] that's because of the return 0 statement at the end of the function, return the variable you need instead | |
Re: Could you post your code and post your question in a detail manner Anyway here's my suggestion according to your i/o, just loop through the array and make a conditional if a value is already given | |
Re: [QUOTE]But my output is just JFrame(Even color did not get changed)[/QUOTE] make a frame instance and add components to it Something like this: [CODE] JFrame frame = new JFrame("FrameDemo"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //3. Create components and put them in the frame. //...create emptyLabel... frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);[/CODE] Here's the link where I got this … | |
Re: [QUOTE]And like the user is supposed to draw them? [/QUOTE] See the Graphics 2D class... then check this [URL="http://docs.oracle.com/javase/tutorial/2d/advanced/user.html"]http://docs.oracle.com/javase/tutorial/2d/advanced/user.html[/URL] and maybe this for the overview [URL="http://docs.oracle.com/javase/1.3/docs/guide/2d/spec/j2d-intro.fm.html#62980"]http://docs.oracle.com/javase/1.3/docs/guide/2d/spec/j2d-intro.fm.html#62980[/URL] | |
Re: Could you post the code here or at least the important parts concerning the problem and also the error messages | |
Re: [QUOTE]But,the problem is that i can't go on writing all 360 cases for 360 values of an angle. what I'm seeking is a solution for shortening the program length by somehow testing the condition in the case... Is there any way of doing that??[/QUOTE] that's where if else conditions shines, … | |
Re: >>int min = total [0]; there's not gonna be a value less than 0 why don't you set min as the first value of the array after the array is filled | |
Re: the random() method from the Math class returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0. try using one of the the [URL="http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Random.html"]Random class[/URL] methods instead Here's an example: [URL="http://www.javapractices.com/topic/TopicAction.do?Id=62"]http://www.javapractices.com/topic/TopicAction.do?Id=62[/URL] EDIT: Just noticed that you solved it on your own, congrats … | |
Re: [QUOTE=ilovephil;1782183]how about returning books using CHAR not int it is poissible?[/QUOTE] I don't see any books... variable in the code And if you meant the similar variable, which function are you talking about? | |
Re: you need to assign every element one by one try something like this: [CODE] //initialize dynamic array double ** similarities; int i, j; similarities = (double **) malloc (5 * sizeof(double*)); //then check if it can't allocate enough memory for( i = 0; i<5 ; i++){ *(similarities + i) = … | |
Re: How did you install it? Did you use Wubi(installed alongside windows) or did you partition the hard drive I think its a lot easier to remove if Ubuntu just runs with your current system | |
Re: It depends on the culture and social norm of the company your going to work for | |
Re: Could you wrap the code between [TEX][CODE][/CODE][/TEX] tags it's hard to read the code without proper indentation | |
Re: you declared the function's data type as void in the function prototype yet you declared it as a char | |
![]() | Re: Here's a similar thread that should answer all of your questions present and future [URL="http://www.daniweb.com/community-center/daniweb-community-feedback/threads/121348"]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/121348[/URL] |
Re: What does this [QUOTE]hwo to write total of 10 first setences (C languege) [/QUOTE] have to do with this... [QUOTE]-1,+2/3,-3/5,+4/7,-5/9,... [/QUOTE] your not gonna get much help if you can't post in english clearly :-/ | |
Re: What have you coded so far? Will this be using a gui or is it only console presentation of the values? | |
Re: What do you mean by "give"? After a quick google search you can see that they're available on amazon | |
Re: this link should should give more info about Integer.parseInt [URL="http://www.roseindia.net/java/beginners/entervaluesfromkeyboard.shtml"]http://www.roseindia.net/java/beginners/entervaluesfromkeyboard.shtml[/URL] | |
Re: Try to iterate over the value of n in the second loop instead of i then use an if else statement if the value of j is less than or equal to i print only the value of j else print a space(" ") | |
Re: make that a do while loop, it expected that the while loop is a part do loop | |
Re: make a program that reads the metadata of the selected mp3 file Here's a link that might help; [URL="http://stackoverflow.com/questions/1645803/how-to-read-mp3-file-tags"]http://stackoverflow.com/questions/1645803/how-to-read-mp3-file-tags[/URL] | |
Re: Fix those ending brackets with the loops(starting from the [B]do[/B](while...)) and next time properly indent your code and put it in between [TEX][CODE][/CODE][/TEX] tags so we can check the code properly | |
Re: [QUOTE] Programming certifications actually hurt candidates on a resume[/QUOTE] really? are you saying that based on experience or maybe observations I know that experience beats certifications but would including certifications actually make your resume worse? Since I'm still a student I'm a bit curious about this :) | |
Re: Actually being able to code it without the help of an IDE is a better way to nourish your knowledge in java programming :) | |
Re: my guess it works pretty much like an AI in a video game | |
Re: Ok then, now could you please answer thines01's question so we can help you further | |
Re: [CODE]}while(scanf(" %d ", &length)<200 || scanf(" %d ",&length)>4000);[/CODE] that should be length<200 || length>4000 [QUOTE]im trying to add a input validator[/QUOTE] the simplest thing I can think of are using if-else statements | |
Re: array indexes start at 0 and it's always 1 less than the size shown for example array[9] has elements 0-8 | |
Re: [QUOTE] I am currently trying to use the .compare() but it doesn't seem to be working can someone help me out it would be much appreciated.[/QUOTE] which part are you trying to compare? Did you check already how compare works? if not this link might help [URL="http://www.cplusplus.com/reference/string/string/compare/"]http://www.cplusplus.com/reference/string/string/compare/[/URL] | |
Re: [QUOTE] Will I.T. survive?[/QUOTE] If most of the people in this forum survives it will ;) | |
Re: Can you answer these first [QUOTE=stultuske]first, you'll need to check for yourself, how deep and correctly you're willing to go: for instance: 2 + 6 * 3 = ? will you use the correct order? meaning 2 + 18 or are you 'content' starting off with first getting everything done, … | |
Re: int i = 0; shouldn't be in the loop, try placing it in line 21 | |
Re: here's an article explaining why you shouldn't use gets [URL="http://www.gidnetwork.com/b-56.html"]http://www.gidnetwork.com/b-56.html[/URL] | |
Re: [URL="http://www.daniweb.com/software-development/cpp/threads/67837"]C / C++ FAQ's and Practice problems[/URL] | |
Re: Is this a simulation (like in a terminal or GUI based) or is this the actual programming for a product? | |
Re: @ line 133 you misplaced the ending bracket |
The End.