775 Posted Topics

Member Avatar for ocw91

use .equals when comparing Strings instead of == though I think it would have been more appropriate if the data type of choice is an int rather than a String

Member Avatar for ocw91
0
181
Member Avatar for dany12

There are lot's of exercises in the web if you search right try this it has an exercise included in every chapter [URL="http://www.javacoffeebreak.com/books/extracts/javanotesv3/index.html"]Introduction to Programming Using Java Version 3.0, Summer 2000[/URL]

Member Avatar for dany12
0
303
Member Avatar for theQube

[QUOTE=rushikesh jadha;1726102]I Think Net Bean is great other than notepad it also allows you to compile,debug and run you code with few clicks.[/QUOTE] Don'y reply from a thread created in [COLOR="Red"]2003![/COLOR]

Member Avatar for zeroliken
0
274
Member Avatar for puppycrazy

use .equals() when comparing strings rather than == try to read this link for more info [URL="http://www.ensta-paristech.fr/~diam/java/online/notes-java/data/expressions/22compareobjects.html"]Java: ==,.equals()[/URL]

Member Avatar for puppycrazy
0
357
Member Avatar for shibu2all

[QUOTE]I have understood the logic behind this, but i am facing problem with the coding thing.. i am not able to get it properly..[/QUOTE] If the problem is in the code then post the code so we may help

Member Avatar for mridul.ahuja
0
159
Member Avatar for jayjey

It would be a lot easier if the code is wrapped in code tags :( [QUOTE]return playAgian;[/QUOTE] If the function is a Boolean try to return either true or false

Member Avatar for gevorg1808
0
200
Member Avatar for farhanakram

Try to check / test first / (temporarily remove) each statement in the function to pinpoint which line causes the program to give a segmentation fault either that or post the complete program

Member Avatar for farhanakram
0
6K
Member Avatar for YAMNA MIDHAT

graphics.h was a library in the [COLOR="Red"]16[/COLOR] bit world where it is used for doing graphics in DOS with Borland C++ 3.x (In short it is an old & unsupported library nowadays ) ...maybe that's where your problem starts try using [URL="http://www.winprog.org/tutorial/"]Forger's[/URL] for making a window

Member Avatar for zeroliken
-2
203
Member Avatar for Sherif1410

[QUOTE=Sherif1410;1724476]Thank you for your answer. I had read the international code in the previous two links. These do not solve the problem. I submit my JAVA code, so please if any one can update it and return the solution? That is exactly what I need. Thanks to all Sherif[/QUOTE] post …

Member Avatar for ~s.o.s~
0
8K
Member Avatar for Srinivas0

continue; causes a while or for loop to begin again at the top of the loop. Do you need to decrement the value of ctr to have another value?

Member Avatar for Srinivas0
1
542
Member Avatar for Majestics
Member Avatar for madmhan84
Member Avatar for jhellr13

[QUOTE]can you at least tell me if I should use a while or for loop? It can go either way[/QUOTE] Either loop will be fine as long as you use them correctly [QUOTE]for (int i = 0; i < grades.length;i++)[/QUOTE] I think you should use (count) as a counter to …

Member Avatar for NormR1
0
1K
Member Avatar for Ismatus3

[QUOTE=Ismatus3;1722405]Hello fanniecarnes , glad to communicate with you here :) , do you use Python ?[/QUOTE] You could check their profiles to know where they like to post

Member Avatar for Ismatus3
0
138
Member Avatar for terence193

try using [URL="http://www.cplusplus.com/reference/clibrary/cstdio/fscanf/"]fscanf[/URL] when reading a file, you can use google if your not familiar on using fscanf

Member Avatar for zeroliken
0
93
Member Avatar for tejaspandey

[QUOTE]exp.txt is created which is empty.[/QUOTE] Since "ch" has no value you don't write anything in the file

Member Avatar for Gaiety
0
148
Member Avatar for R32@

If you don't pass on the first "if" statement then "p" will have no value making it uninitialized

Member Avatar for R32@
0
112
Member Avatar for JerryRong

[CODE]for( int j = 0; j < 100; j++);[/CODE] in line 4 there should be no semicolon [COLOR="Red"];[/COLOR] there

Member Avatar for DavidKroukamp
0
122
Member Avatar for programing

[QUOTE=songokute;1722763]Oh, firstly, im sorry if i did not write clearly coz i dont speak English! In your code, the largest number depends on the memory and the maximum number of int type! And about "exist", as i know, fibo sequence start with i = 0, so i think fibo(-1) = …

Member Avatar for stultuske
0
600
Member Avatar for programing

> for ( int i=0;i<=size;i++){ > if(array[i]==array[i].length-1) > System.out.print("plindrom "); > else > System.out.print("not plindrom "); > try to check the values of array[i] and array[i].length-1 at the loop to know what your program is doing

Member Avatar for .:n'tQ-boy:.
0
202
Member Avatar for SubzeroX6

He's right the longer the code the harder it is to pinpoint the problem So for now I'll post a simple tutorial relating your problem [URL="http://javacooperation.gmxhome.de/PlatformGameBasicsEng.html"]platform tutorial [/URL]

Member Avatar for NormR1
0
330
Member Avatar for jackmaverick1

Are you still having problems on the collision? Maybe this tutorial ca help ya [URL="http://forum.codecall.net/java-tutorials/15969-double-buffering-movement-collision-detection.html"]collision tutorial[/URL]

Member Avatar for JamesCherrill
0
125
Member Avatar for JavaPrograms

Maybe you should check if the next largest number being checked in the next loop is less than the current largest number

Member Avatar for rickypounting
0
2K
Member Avatar for joankim

[QUOTE]for(double x = Math.pow(b, 2)..[/QUOTE] that's because as it loops it keeps replacing the value of x from double x = Math.pow(b, 2) maybe remove it from the loop ;) you should have posted this in the java forum cause your problem is using a specific language(java) directly...maybe a mod …

Member Avatar for joankim
0
953
Member Avatar for omer620

Print out the values of the array containing the string using a loop the number of letters that would be shown would depend on the current value of the counter

Member Avatar for omer620
0
193
Member Avatar for joankim

Since there's no limit in grades I suggest using a while loop instead of a for loop then stop the loop when a non-grade character is input

Member Avatar for zeroliken
0
144
Member Avatar for Jenna1994

Next time wrap your code in code tags and properly indent it You should make an inner loop work according the number showing at the outer loop Pseudo: [CODE]for(int i=0;i<7;i++){ //outer loop if(i==0 || i==1){ //condition used to tell which loop to use for(int j=0;j<numberofstars;j++){ //inner loop used to print …

Member Avatar for zeroliken
0
108
Member Avatar for manou324
Member Avatar for Hussam Alahmadi

[QUOTE=Hussam Alahmadi;1719958]in this assignment make the program read 10 integers and store them in an array. Then, pass this array to a method that finds the largest integer in the array, and counts its occurrences. Your method should return a string of the form largestNumber?????? > occurrenceCount. Then in the …

Member Avatar for stultuske
0
143
Member Avatar for roona

The problem is in c, unlike java, has no support for a GUI You [I]could[/I] make your program work as c has a support for structures and linked lists but you'd have no choice but to remove the use of windows and buttons if your gonna convert it to c

Member Avatar for zeroliken
0
218
Member Avatar for CReza

[QUOTE=CReza;1720641]I have to write persian (farsi) characters to a text file, but after writin when I open the file ,it's contents are unreadeable in persian and ther is some special characters pleaseeeeeeeeeeeeeeeeeeeeeeee help :-([/QUOTE] Don't hijack another person's thread start your own

Member Avatar for v3ga
0
179
Member Avatar for mangatmodi
Member Avatar for v3ga
0
154
Member Avatar for lohath
Member Avatar for L7Sqr
0
130
Member Avatar for matrixcool

try to trace the program on the loop containing k as the counter the value of check must be still equal to true cause after that loop you break the statement before that and then you break the statement before that...until you break the while loop

Member Avatar for zeroliken
0
2K
Member Avatar for janvi.dodia

[QUOTE=Riyasdeen;1720335]Kindly send the code. I need the code to transfer bulk of files from clinet to server. if you have the code means ,please share it with me. Thanks in advance[/QUOTE] 1.your hijacking a thread (start your own) 2.the thread your hijacking/reviving is from 2 years ago (necroposting) 3.we don't …

Member Avatar for zeroliken
0
1K
Member Avatar for iamcreasy
Member Avatar for kikic

[QUOTE=v3ga;1719475]Wrap code in code tags[/QUOTE] You know you could have also said to properly [URL="http://www.gidnetwork.com/b-38.html"]format[/URL] the code cause it's still hard to read

Member Avatar for Begginnerdev
0
195
Member Avatar for Jenna1994

Printout a welcome message Make a loop containing your question then ask if the user wants to continue then make the loop run while the user inputs yes otherwise the loop will stop ending the program We're willing to help you as long as your willing to help yourself post …

Member Avatar for stultuske
0
206
Member Avatar for bonett09

Y and N have no values if you want to check if the user used either then compare it to the letter itself e.g. [CODE]if(query == 'Y')[/CODE] also [CODE]printf("That will be $%d, confirm? (Y/N)\n", price*numofbees);[/CODE] price is a float, &d is used for integers use %f

Member Avatar for WaltP
0
138
Member Avatar for ben25x

[QUOTE=ben25x;1719345]Hello, I've been having a lot of trouble with a variable type called "float64". I'm trying to create a do{}while loop to make the number count up each time. data is also defined as an array. [CODE]float64 data[1]; int i; do{ for(i=0;i<1;i++) { data[i]=data[i]+.01; if(data[i]>9.99) data[i]=-9.99; } }while('0'=='0');[/CODE] Any guidance …

Member Avatar for ben25x
0
129
Member Avatar for Jenna1994

[QUOTE]i have to make it with stars[/QUOTE] you could use loops that prints out asterisks

Member Avatar for zeroliken
0
56
Member Avatar for naz1234

[QUOTE=naz1234;1719287]hmm sory what do you mean by code that isn't formatted.?[/QUOTE] There's a link posted on WaitP's post Anyway check the Values of Acent to Fcent...did you notice that their output is 0

Member Avatar for naz1234
0
172
Member Avatar for The 42nd

[CODE]double a;[/CODE] include this in the main function [CODE]printf("%.2lf\n", a);[/CODE] .(anynumber) represents the number of decimal places you want to output or just do the solution posted by WaitP to be exact

Member Avatar for Narue
0
243
Member Avatar for kkmfazil
Member Avatar for gourav1
-1
192
Member Avatar for happygeek

Is it wrong to laugh while reading this? :D Anyway the kid does have a point and maybe he'll earn some extra bucks from the right people

Member Avatar for jammerjoe
0
1K
Member Avatar for Captonmike

Is it showing a compiler error? post the errors Is it showing unwanted output? post the output Do you know how to properly format your code and wrap it it in code tags before you post? If yes then do so

Member Avatar for Captonmike
0
188
Member Avatar for irock_4you

"If" he has no problem with the code he posted then the remaining problems he wants suggestions must be from numbers 10,8,7,6,5

Member Avatar for v3ga
0
121
Member Avatar for Albion1
Member Avatar for Albion1
0
114
Member Avatar for whitech
Member Avatar for whitech
0
330
Member Avatar for chinee

Make a constructor in the Product class that returns a String and a Double only

Member Avatar for zeroliken
0
344

The End.