775 Posted Topics

Member Avatar for aabbccbryanmark

you could format the output similar to C like so: System.out.printf("Farenheit %.2f = %.2f Celsius",farenheit,celsius);

Member Avatar for aabbccbryanmark
0
142
Member Avatar for aabbccbryanmark

Sorry but we don't give away codes here the rule states Do provide evidence of having done some work yourself if posting questions from school or work assignments. We can help you if you have specific questions on your code or if you need advice on what to do next …

Member Avatar for aabbccbryanmark
0
162
Member Avatar for sansai

there's a trailing "|" at the 2nd condition of your while loop at line 19 My guess is you'd want to use backslash instead > I am tring to get an array of word lengths. You need to add more details, do you mean the length of every word in …

Member Avatar for sansai
0
284
Member Avatar for shibu2all

> E A C K F H D B G there can be a lot of ways for the elements to be created in an inorder traversal from a tree which makes a lot of possible preorder or postorder solution is the root node/element given at least?

Member Avatar for iamthwee
0
118
Member Avatar for amelia.rox

enclose the whole code from main in a loop where the loop will break if the condition where the user enters n or N is entered example: int main(void){ char counter; do{ //rest of the code from main here //ask the user if he wants to continue and save the …

Member Avatar for amelia.rox
0
156
Member Avatar for khaled_jawaher

1. make sure you have JRE installed should be located at C:\Program Files\Java\jre6(or jre7) 2. open cmd prompt and navigate to the directory where the file is located 3. then type the command java -jar filename.jar (use your jar fileneme) or just double click the jar file

Member Avatar for stultuske
0
199
Member Avatar for askhari139
Member Avatar for neokwazz
Re: help

check the product key located at the cd where you bought your windows 7 or if it's preinstalled on a laptop check under it. ooor did you actually buy your version of windows 7?

Member Avatar for caperjack
0
205
Member Avatar for Delnith

check the links and comments [here](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/16748/want-to-learn-linux..some-help-required) and [here](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/258982/how-do-i-learn-linuxunix-in-a-week)

Member Avatar for JorgeM
0
138
Member Avatar for rithish

start with something like this: char array[3][20]= { "one", "two", "three" }; printf("%s, %s, %s\n", array[0], array[1], array[2]); for user input you can use a loop for every index

Member Avatar for zeroliken
0
591
Member Avatar for rithish
Member Avatar for zeroliken
0
216
Member Avatar for vibish

Can you give more details of the problems are you having, error messages, etc? are you using the default software center program?

Member Avatar for zeroliken
-1
57
Member Avatar for rithish

@ line 23: use the == operator at the 2nd and 3rd condition, that's suppose to be ch == 'e' and ch == 'i'. also did the program compiled without including the ctype and string libraries necessary for using tolower and strlen functions

Member Avatar for deceptikon
0
151
Member Avatar for rithish

use the strtok function and set space as the delimeter and save each to an array (use a 2d array in this case), count the number of tokens and divide it by 2 then print out the word with the same value

Member Avatar for zeroliken
-1
167
Member Avatar for rokstarrdude
Member Avatar for Mike+9
0
85
Member Avatar for rithish

Do you mean you want to write your own library for I/O or use macros for those existing functions? also fyi the latter is bad programming

Member Avatar for rithish
0
380
Member Avatar for amelia.rox

for a complete cout statement replace the semicolon with << next if you want to accept values for the Days array then use cin for each of the indexes for the if statements your missing the parentheses to hold the condition

Member Avatar for zeroliken
0
101
Member Avatar for rithish

This could easily be solved with the strrev function from the string library here's a [link with the answer](http://www.warpspeed.com.au/cgi-bin/inf2html.cmd?..\html\book\Toolkt40\XPG4REF.INF+275)

Member Avatar for rithish
-1
305
Member Avatar for jigar23

a C file always require a main function to execute as in the case of multiply.c also if your making a C program use the extension .c for your main file .cpp is for c++ programs

Member Avatar for jigar23
0
314
Member Avatar for techy23

for starters I'd recommend text based games like sudoku, tictactoe, etc which are terminal based and should be easy to make as for 3d games I'd usually go for C++ or Java because of the use of objects and ready made libraries but you could connect C with OpenGl for …

Member Avatar for WaltP
0
418
Member Avatar for anand01

check the [regex Pattern class](http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) and experiment with the constructs and matches method

Member Avatar for anand01
0
108
Member Avatar for rahul pareek
Member Avatar for on93

>how to do the total of value in the array ben[20] use a loop and make a variable where every element of the array will be added to it >have to use function or other ??????? do you mean you need to use a function for the adding process? then …

Member Avatar for dawidbrook
0
123
Member Avatar for rithish

Why didn't you use strcpy as stated in your title? Avoid using gets() try fgets instead, [article explaining why](http://www.gidnetwork.com/b-56.html). At line 15 your trying to output an integer even though "b" is a character array

Member Avatar for zeroliken
0
208
Member Avatar for 111100/11000
Member Avatar for Ancient Dragon
0
222
Member Avatar for AlitaMixx

In my opinion you need to use 3 different variables and store each digit in a separate variable, next convert each digit to an integer, multiply the first digit by 100, the second digit by 10 and add all digits together and save to a variable to get a 3 …

Member Avatar for GunnerInc
0
992
Member Avatar for rosechen
Member Avatar for Galbatorix
Member Avatar for Galbatorix
0
87
Member Avatar for softtech1011

This shouldn't be too hard. Just use a loop that divides a number by 2 with the condition that the number divided must not be less than 2 and use a counter that increments for every loop, then when the loop finishes print out the counter

Member Avatar for stultuske
0
291
Member Avatar for KMPS
Re: Help

which linux distribution are you referring to? if it's ubuntu I suggest [Wubi](http://www.ubuntu.com/download/help/install-ubuntu-with-windows)

Member Avatar for zeroliken
0
36
Member Avatar for capton

that's strange usually its only the root folder where you can't tamper with the files manually Does the shortcut key work or maybe the terminal command for copy paste work? I suggest to first check the folder's properties if you have the right permissions like read and write next try …

Member Avatar for zeroliken
0
306
Member Avatar for Lostelf

your logic is wrong in the findLowest function for example if ( lowest < s2) { lowest = s2; } means if lowest is less than the value of s2 you change the value of lowest to s2 even though s2 has a higher value than variable lowest ...try greater …

Member Avatar for rithish
0
380
Member Avatar for dppd
Member Avatar for on93

here's a pseudocode to give you a hint: x = 5 while the value of x is not equal to 0 y = 5 while the value of y is not equal to 0 if the value of y less than or equal to x print an asterisk else print …

Member Avatar for Tajinderpal
0
230
Member Avatar for georger55

It makes the sorting, searching, manipulating a list a lot easier like implementing binary search trees, AVL, heaps, graphs, search algorithms.

Member Avatar for zeroliken
0
109
Member Avatar for silvercats

line 42: try int answer(int **x**,int **y**) > now there is another problem . I don't get answers to 11xanything ,12xanything. help next change to the ff. at line 5: int mutab[12][12]; at line 10: for (int h=0;h<12;h++) at line 18: for (int i=0;i<12;i++) at line 31: for (int k=1;k<13;k++)

Member Avatar for silvercats
0
247
Member Avatar for adamu mohammed
Member Avatar for osamabin.idrees

> but i am confused that whether after learning java i should go for web ( html,css,jscript,php,mysql) for choosing it as my carrer or i should learn new java technologies to become a java developer? For a choice given which programming language to learn I guess learning both at the …

Member Avatar for zeroliken
0
170
Member Avatar for wallet123

> ideapad LENOVO laptop with Intel(R) Core(TM) i3 CPU m 370 @4.20GHz > and ram= 2.00GB if it's just for programming or computer science need then your specs is more than enough. Mine is about the same as yours though I'm using an acer laptop and I haven't encountered any …

Member Avatar for wallet123
0
283
Member Avatar for babaji1234

Did you happen to have a problem with your previous BIOS version that made you update it? In my experience people only update their BIOS if they happen to have existing bugs or if it was really recommended in a software update did you backup your previous bios? did you …

Member Avatar for zeroliken
0
194
Member Avatar for on93

Did you [Search the web](http://lmgtfy.com/?q=C+local+variable+) first for its definition and uses?

Member Avatar for L7Sqr
0
150
Member Avatar for poloblue

1. follow exactly the pseudocode to get your porgram to work (*you only need 2 loops*) 2. I suggest you use only while loops 3. include the j=0 at the start of your first loop as the counter for the number of asterisks you need to print every time

Member Avatar for poloblue
0
1K
Member Avatar for sneekula

I think its python, its a bit easier to learn the language and write the code compared to Java and C++

Member Avatar for Sanchixx
0
482
Member Avatar for hszforu

It prints out 0 because it takes noOfdigits, stores a copy then adds 1 and returns the copy. So you get the value of what it was, but also increments it at the same time. Therefore you print out the last value though it gets incremented.

Member Avatar for hszforu
0
123
Member Avatar for SalicBlu3

There's already lots of explanations floating around the web about malloc and realloc and how to properly use them [Example](http://lmgtfy.com/?q=realloc+C) You need to to be more specific, which concept are you having troubles with so we can help clarify some things?

Member Avatar for m4ster_r0shi
0
133
Member Avatar for Vish0203

how about making/putting functions in a header file and calling that in another program

Member Avatar for Sky_Flyer
0
194
Member Avatar for NetJunkie

I started when I was in college which is still recent The language I first learned was C and the first program I made is the Hello World program which was fun

Member Avatar for Reverend Jim
0
966
Member Avatar for prasanna123

actually it's undefined behavior see [this similar thread](http://www.daniweb.com/software-development/c/threads/405549/printf-and-incr-operators) for clarifications and read WaitP and Narue's comments

Member Avatar for Sokurenko
0
191
Member Avatar for Kerrai

could you give an example of which digit is chosen for leftPivot and median of three if it's an extreme(where the digits would be placed in a skewed pattern) then there's your problem... the wrong choice of pivot just my assumption

Member Avatar for Kerrai
0
456
Member Avatar for Jamblaster

What do you mean by doesn't pause correctly? The first one and second one works the same also at the first code there's a trailing semicolon on the for loop @ line 44 for(x=0;x<25;x++); {

Member Avatar for Jamblaster
0
211

The End.