775 Posted Topics
Re: [QUOTE] i am having an error while executing this statment..[/QUOTE] That said if you want us to look deeper into the problem you can post your code and describe what the error is | |
Re: For the total sales count, total, and items create a counter where a value is added for every user input. [QUOTE]I was thinking about using a for loop but im clueless as to how i would incorporate it into my program[/QUOTE] It's hard to imagine how you want the program … | |
Re: [QUOTE=Jimakoss;1724984]guys and girls,I need you to explain to me some things! I dont know anything for the above languages and google doesn't help much. What do you believe for html5? sorry if I am asking for a lot.I need help[/QUOTE] There's always Google to help you out on the search … | |
Re: Here's an guide and example on [URL="http://docs.oracle.com/javase/tutorial/uiswing/events/keylistener.html"]How to Write a key Listener[/URL] from Oracle to give you more info about Key Listeners | |
Re: [QUOTE]all the browsers I use stopped working. Firefox, Google Chrome, Internet Explorer. For whatever reason all the sites I try and visit either get an error message[/QUOTE] post the error message from the browsers so we can get an idea of what's happening | |
Re: Could you post the current output of the program and then your desired output | |
Re: Maybe the 2 of you might get more help if you follow the instructions from this read me thread and wait for someone to read all of the required scanlogs to get professional help [URL="http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/134865"]http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/134865[/URL] | |
Re: There are lots of basic java examples and definitions of a term on the web if you try to search If you have problems in understanding or couldn't figure out an error in your code then you can ask here for help | |
Re: [QUOTE]# and determine if the number is divisible using the modulus operator.[/QUOTE] modulus returns the remainder of a number ex. [CODE]>>> 10%4 2 >>> 10%2 0[/CODE] if the answer is 0 then the number is perfectly divisible this should give you a hint if the number is prime | |
Re: [QUOTE=khajvah;1741529] Try to download a torrent.[/QUOTE] Just make sure that what your downloading is not illegal :) | |
Re: Yes there a link to "this" in his similar thread in the c++ forum [URL="http://www.daniweb.com/software-development/cpp/threads/407748"]http://www.daniweb.com/software-development/cpp/threads/407748[/URL] @OP are trying to make the program in c or c++? | |
Re: I think it would be better for the body to follow the snake head instead of only reacting to the key pressed by the user The snake head should have a front like method where you'll know the front of the circle by knowing where the snake is headed e.g. … | |
Re: Yep I can see the sponsor badge when i hover over your avatar so I'm positive that your payment got through | |
Re: Do you want the program to continue to run after the else if statement? You do realize that if the value of y becomes 0 it will exit the loop right? | |
Re: I think that you should have posted this in the[URL="http://www.daniweb.com/web-development/jsp/24"] JSP forum[/URL] | |
Re: Why would you want to create an animation with graphics.h which is a very old and deprecated library? Anyway here's a thread with a similar problem that talks about how the flag should have a wave like motion -->[URL="http://www.daniweb.com/software-development/c/threads/407089"]link to said thread[/URL] | |
Re: Exactly what part of the code are you having problems with? | |
![]() | Re: [CODE]if (input > 0 || input > 8 || input.hasNextInt())[/CODE] Like what stultuske said hasNextInt() can only be used in a scanner object ("in" in your code is a scanner object ) Also maybe you meant input < 8 But this method won't work for non numeric input How about … |
Re: [URL="http://www.daniweb.com/software-development/cpp/threads/407691"]Duplicate post[/URL] You should have properly indented the code on the first thread and posted on same thread instead of creating a new one (which by the way the formatting isn't any better than the first) | |
Re: [QUOTE=rohan121212;1739821]who told you that 121 is a prime number oh please besides the code i have written works perfectly fine and i have tested it a hundred times [/QUOTE] Please be reminded that the code you post should always be compatible with different (if not all) compilers for example main … | |
Re: [QUOTE=cOrRuPtG3n3t!x;1739817] also there is no 'or' statement in java use the '||' as an or operator i.e[code] if (closest.name= "Weston-On-Shore" ||closest.name.equals("Newbridge" or "Central")) {}[/code][/QUOTE] you made an obvious error here... "Newbridge" or "Central" :icon_wink: | |
Re: > #include<stdio.h> > #include<conio.h> > int main() > { > int i,j,k,cnt=0; > clrscr(); > > for(i=5;i>=1;i--) > { > for(j=1;j<=i;j++) > { > printf("*"); > } > for(k=i;k<5;k++) > { > printf("S"); > } > for(k=i+1;k<5;k++) > { > printf("S"); > } > if(cnt<2) > { > for(j=1;j<=4;j++) > … | |
Re: [QUOTE=Captain Jake;1737549]Thank You very much for your help. I will try to carry on from here. Still, is such an concept all that useless? Got the idea, when one of my colleague (No touch with C++), ran my program and was quiet confused with the matrix. So just wanted to … | |
Re: Do you or do you not want the user to enter an alphabet? Do you want the letter to be converted to its ASCII value or some other value or tell the user that he shouldn't enter a letter | |
Re: You need to remember that an array holds values in its elements from 0 to size-1 in the case of random[50] the values of the numbers can be stored from random[0] to random[49] [CODE]for(counter; counter<50; counter++)//did not use counter as the array index { if(min>random[50]);//the 50th element is reserved for … | |
![]() | Re: [QUOTE=timmy568;1737137]now it works fine but my println prints out twice. [CODE]boolean read = false; while(!read){ System.out.println("What is your desired border character (only the first character will be printed)?"); String run = sc.nextLine(); if(run.length() != 0){ draw(run.charAt(0)); read = true;[/CODE][/QUOTE] By "prints out twice" do you mean that after the inputting, … ![]() |
Re: [QUOTE=ThaiAmL;1738168]Hold on! I take that back - just a second. How's this? [CODE]Scanner input = new Scanner(System.in); roman = input.nextInt(); roman = roman.toUpperCase(); roman = roman.trim();[/CODE][/QUOTE] I was gonna reply how to properly do it but it seems you got the gist of it :) You can try it to … | |
Re: [QUOTE=raj236712;1727381]i want to create shapes like circles,rectangles and others with the help of c language programming.basically i want to make the sign of matrix in my program.how can i do this?[/QUOTE] Please be clear in describing as rubberman said, Do want to create/show shapes graphically? Try using [URL="http://www.winprog.org/tutorial/"]Forger's[/URL] [QUOTE]the sign … | |
Re: Don't forget to include break; in your cases otherwise it will continue to run the statements case after case | |
Re: you can only use break; in a loop not just in an if statement | |
![]() | Re: Make sure to use parentheses in the equation to follow the right sequence of operations ![]() |
Re: Don't use gets() -->[URL="http://www.gidnetwork.com/b-56.html"]Article explaining why not[/URL] Try to use fgets() instead | |
Re: [QUOTE=mohamed moamen;1735745]i'm use Netbeans i create JframForm and add a panel to it ,and create new jpanel and add components to it like buttons & textboxs ,finally I'm add the panel 2 to panel 1 but the components of panel 2 not appear and their is no errors. "how i … | |
Re: Your post is currently in the [B]c[/B] forum You should have started your thread at the [B]C#[/B] forum | |
Re: Did you check the [URL="http://docs.oracle.com/javase/tutorial/java/data/numberformat.html"]API[/URL]? | |
Re: [QUOTE]public void addListener (Connect2listener)[/QUOTE] It has no identifier | |
Re: Here's a suggestion Why not use a modern compiler instead of carrying the burden of an old compiler? | |
Re: And why would you want to create a virus? | |
Re: Why do you need to convert the integer array to a string array? can't you use an if statement for the original array already | |
Re: use println statements to check the values of max1 to 3 at the loop ![]() | |
Re: [QUOTE=Zvjezdan23;1735942]So a class is just like a struct???????[/QUOTE] Nope, there's a visible difference between a structure and a class structs have default public members and bases and classes have default private members and bases. Read some articles regarding classes and structures | |
Re: [QUOTE]data from a user as a string of number or letters and store each char on a different array[/QUOTE] a loop that will copy the current value of the array depending on its index to another array with the same index | |
Re: [QUOTE]i want the last string output to look like this: abc def instead of abc_def..please help[/QUOTE] How about using [URL="http://www.cplusplus.com/reference/clibrary/cstring/strtok/"]strtok[/URL] and set "_" as a delimeter | |
Re: Use the Random() to generate numbers from 1 to 9 then check if the number has already been used | |
Re: [QUOTE=OVOXO;1735161] The array is {1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10} How would I assign these values randomly in a 5 row and 4 column array? [/QUOTE] If the values are already defined in an array you could use the Random() to generate numbers from 0 to 19 and then assign the value from the current … | |
Re: Did you download the source code and check(view/edit/test) the contents to see how it works? | |
Re: Maybe this solved thread can help you out [URL="http://www.daniweb.com/software-development/c/threads/102057"]passing file pointer around[/URL] | |
Re: [QUOTE]i have the solution but i dont understand it... thats worse... [/QUOTE] You can always post the whole code if you need additional help or you can study it by yourself :) |
The End.