775 Posted Topics

Member Avatar for mk.hashmie

[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

Member Avatar for jumbowat
0
78
Member Avatar for umsungun

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 …

Member Avatar for umsungun
0
217
Member Avatar for Jimakoss

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

Member Avatar for WolfShield
0
314
Member Avatar for scheppy

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

Member Avatar for scheppy
0
306
Member Avatar for Valjeann

[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

Member Avatar for Ninci
0
211
Member Avatar for nickliutw
Member Avatar for nickliutw
0
5K
Member Avatar for Zacksonfiya

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]

Member Avatar for Mandirigma
0
279
Member Avatar for Thermalnuke

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

Member Avatar for stultuske
0
256
Member Avatar for pwolf

[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

Member Avatar for pwolf
0
466
Member Avatar for coolbeanbob

[QUOTE=khajvah;1741529] Try to download a torrent.[/QUOTE] Just make sure that what your downloading is not illegal :)

Member Avatar for coolbeanbob
0
315
Member Avatar for swissknife007

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

Member Avatar for DeanMSands3
0
843
Member Avatar for vinnyoodles

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

Member Avatar for cms271828
0
299
Member Avatar for Airshow

Yep I can see the sponsor badge when i hover over your avatar so I'm positive that your payment got through

Member Avatar for Airshow
0
196
Member Avatar for DarkPyros

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?

Member Avatar for Moschops
0
305
Member Avatar for ananyaholla

I think that you should have posted this in the[URL="http://www.daniweb.com/web-development/jsp/24"] JSP forum[/URL]

Member Avatar for peter_budo
0
596
Member Avatar for swissknife007

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]

Member Avatar for peter_budo
0
675
Member Avatar for fishsticks1907
Member Avatar for Lerner
0
105
Member Avatar for mehnihma

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

Member Avatar for zeroliken
0
281
Member Avatar for myrongainz

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

Member Avatar for zeroliken
0
201
Member Avatar for mikeshadow

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

Member Avatar for mikeshadow
0
506
Member Avatar for jade_91

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

Member Avatar for DavidKroukamp
0
103
Member Avatar for history

> #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++) > …

Member Avatar for peter_budo
-1
81
Member Avatar for PrimePackster

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

Member Avatar for PrimePackster
0
258
Member Avatar for sync101

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

Member Avatar for WaltP
0
191
Member Avatar for Topherman

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 …

Member Avatar for raptr_dflo
0
1K
Member Avatar for timmy568

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

Member Avatar for timmy568
0
231
Member Avatar for ThaiAmL

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

Member Avatar for ThaiAmL
0
1K
Member Avatar for raj236712

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

Member Avatar for WaltP
0
583
Member Avatar for mackieben04

Don't forget to include break; in your cases otherwise it will continue to run the statements case after case

Member Avatar for mackieben04
0
220
Member Avatar for YAMNA MIDHAT
Member Avatar for ChrisPadgham
-2
165
Member Avatar for dedenfk
Member Avatar for krejar

Make sure to use parentheses in the equation to follow the right sequence of operations

Member Avatar for krejar
0
190
Member Avatar for PrimePackster

Don't use gets() -->[URL="http://www.gidnetwork.com/b-56.html"]Article explaining why not[/URL] Try to use fgets() instead

Member Avatar for PrimePackster
0
184
Member Avatar for mohamed moamen

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

Member Avatar for mohamed moamen
0
114
Member Avatar for Lowchernhwee

Your post is currently in the [B]c[/B] forum You should have started your thread at the [B]C#[/B] forum

Member Avatar for zeroliken
0
148
Member Avatar for rotten69

Did you check the [URL="http://docs.oracle.com/javase/tutorial/java/data/numberformat.html"]API[/URL]?

Member Avatar for rotten69
0
109
Member Avatar for moonstar3910
Member Avatar for roxin_phoenix
0
123
Member Avatar for mrprassad
Member Avatar for Narue
0
155
Member Avatar for caswimmer2011
Member Avatar for Zvjezdan23

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

Member Avatar for Zvjezdan23
0
546
Member Avatar for jot121
Member Avatar for hfx642
0
136
Member Avatar for DazedanConfused

[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

Member Avatar for Zvjezdan23
0
346
Member Avatar for gdubz

[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

Member Avatar for Zvjezdan23
0
227
Member Avatar for Ararat

[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

Member Avatar for WaltP
0
149
Member Avatar for dennysimon
Member Avatar for laklaker

Use the Random() to generate numbers from 1 to 9 then check if the number has already been used

Member Avatar for DavidKroukamp
0
238
Member Avatar for OVOXO

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

Member Avatar for dmanw100
0
121
Member Avatar for gourav1

Did you download the source code and check(view/edit/test) the contents to see how it works?

Member Avatar for stultuske
0
375
Member Avatar for terence193

Maybe this solved thread can help you out [URL="http://www.daniweb.com/software-development/c/threads/102057"]passing file pointer around[/URL]

Member Avatar for terence193
0
254
Member Avatar for Despairy

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

Member Avatar for Despairy
0
120

The End.