775 Posted Topics

Member Avatar for shean1488

did you enable your java plug-in in your browser? I tried the program in HTML and got it to work...

Member Avatar for shean1488
0
99
Member Avatar for Reverend Jim
Member Avatar for skoon

make a method that calls itself by incrementing or decrementing the value passed to it will you be using threads here for the repaint?

Member Avatar for NormR1
0
148
Member Avatar for london-G

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 …

Member Avatar for london-G
0
87
Member Avatar for ilovephil

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 …

Member Avatar for ilovephil
0
184
Member Avatar for Nawaf15

[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 …

Member Avatar for Eagletalon
0
366
Member Avatar for thorpntell

@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 …

Member Avatar for rubberman
0
152
Member Avatar for uzii305

[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 …

Member Avatar for uzii305
0
376
Member Avatar for hey.howdy

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]

Member Avatar for zeroliken
0
98
Member Avatar for Oriden

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 …

Member Avatar for zeroliken
0
153
Member Avatar for ilovephil

[QUOTE]for example i can only enter DIGIT[/QUOTE] using if else statements?

Member Avatar for ilovephil
0
282
Member Avatar for jonajonlee

Try it like this: [CODE]if (series == 'A' || series == 'a')[/CODE] and do the same with the conditionals of b and c

Member Avatar for jonajonlee
0
164
Member Avatar for ilovephil

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

Member Avatar for zeroliken
0
126
Member Avatar for zu007

[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

Member Avatar for zeroliken
0
94
Member Avatar for a_sd

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

Member Avatar for WaltP
0
139
Member Avatar for shean1488

[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 …

Member Avatar for 117
0
203
Member Avatar for needjavahelp

[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]

Member Avatar for zeroliken
0
470
Member Avatar for andreanah1

Could you post the code here or at least the important parts concerning the problem and also the error messages

Member Avatar for andreanah1
0
238
Member Avatar for chirag_mittal

[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, …

Member Avatar for chirag_mittal
0
469
Member Avatar for CodeMonkeyJunk

>>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

Member Avatar for CodeMonkeyJunk
0
185
Member Avatar for Valiantangel

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 …

Member Avatar for NormR1
0
257
Member Avatar for ilovephil

[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?

Member Avatar for Ancient Dragon
0
210
Member Avatar for luislupe

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) = …

Member Avatar for luislupe
0
250
Member Avatar for vinod tik

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

Member Avatar for flagstar
0
284
Member Avatar for Vampiricx3

It depends on the culture and social norm of the company your going to work for

Member Avatar for BruceVA
0
204
Member Avatar for RonKevin

Could you wrap the code between [TEX][CODE][/CODE][/TEX] tags it's hard to read the code without proper indentation

Member Avatar for RonKevin
0
135
Member Avatar for shean1488

you declared the function's data type as void in the function prototype yet you declared it as a char

Member Avatar for zeroliken
0
96
Member Avatar for antenore

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]

Member Avatar for zeroliken
0
320
Member Avatar for str91

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 :-/

Member Avatar for zeroliken
0
139
Member Avatar for noobies

What have you coded so far? Will this be using a gui or is it only console presentation of the values?

Member Avatar for NormR1
0
196
Member Avatar for M09

What do you mean by "give"? After a quick google search you can see that they're available on amazon

Member Avatar for M09
0
267
Member Avatar for YiJun

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]

Member Avatar for YiJun
0
2K
Member Avatar for DanOath

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(" ")

Member Avatar for zeroliken
0
401
Member Avatar for Thermalnuke

make that a do while loop, it expected that the while loop is a part do loop

Member Avatar for Thermalnuke
0
97
Member Avatar for frivolous

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]

Member Avatar for zeroliken
0
298
Member Avatar for mohy93

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

Member Avatar for WaltP
0
215
Member Avatar for Mushy-pea

[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 :)

Member Avatar for stultuske
0
313
Member Avatar for jouj

Actually being able to code it without the help of an IDE is a better way to nourish your knowledge in java programming :)

Member Avatar for NormR1
1
170
Member Avatar for xanashadow
Member Avatar for jbennet
0
52
Member Avatar for a.muqeet khan

Ok then, now could you please answer thines01's question so we can help you further

Member Avatar for a.muqeet khan
0
168
Member Avatar for <mono>

[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

Member Avatar for zeroliken
0
226
Member Avatar for FraidaL

array indexes start at 0 and it's always 1 less than the size shown for example array[9] has elements 0-8

Member Avatar for FraidaL
0
238
Member Avatar for Prisms

[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]

Member Avatar for Prisms
0
213
Member Avatar for skilly

[QUOTE] Will I.T. survive?[/QUOTE] If most of the people in this forum survives it will ;)

Member Avatar for skilly
0
104
Member Avatar for gujinni

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, …

Member Avatar for gujinni
-1
209
Member Avatar for shean1488
Member Avatar for stultuske
0
138
Member Avatar for faithful4ever

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]

Member Avatar for zeroliken
0
133
Member Avatar for madhukesh

[URL="http://www.daniweb.com/software-development/cpp/threads/67837"]C / C++ FAQ's and Practice problems[/URL]

Member Avatar for zeroliken
0
54
Member Avatar for scottd82

Is this a simulation (like in a terminal or GUI based) or is this the actual programming for a product?

Member Avatar for zeroliken
0
164
Member Avatar for vired

The End.