775 Posted Topics
Re: you could format the output similar to C like so: System.out.printf("Farenheit %.2f = %.2f Celsius",farenheit,celsius); | |
Re: 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 … | |
Re: 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 … | |
Re: > 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? ![]() | |
Re: 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 … | |
Re: 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 | |
Re: 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? | |
Re: 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) | |
Re: 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 | |
Re: you probably wanted to use a 2d array like char a[30][30]; | |
Re: Can you give more details of the problems are you having, error messages, etc? are you using the default software center program? | |
Re: @ 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 | |
Re: 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 | |
Re: check if the sites aren't blocked by your firewall and are allowed to store cookies on your computer | |
Re: 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 | |
Re: 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 | |
Re: 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) | |
Re: 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 | |
Re: 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 … | |
Re: 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 | |
Re: >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 … | |
Re: 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 | |
![]() | Re: try to use strcpy in assigning a value to chouseing_alphabet and strcmp in comparing the 2 string |
Re: 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 … | |
Re: variables r, p and tries are used but never assigned a value | |
Re: 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 | |
Re: which linux distribution are you referring to? if it's ubuntu I suggest [Wubi](http://www.ubuntu.com/download/help/install-ubuntu-with-windows) | |
Re: 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 … | |
Re: 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 … | |
Re: multiply the variables where the values are stored | |
Re: 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 … | |
Re: It makes the sorting, searching, manipulating a list a lot easier like implementing binary search trees, AVL, heaps, graphs, search algorithms. | |
Re: 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++) | |
Re: Control Panel -> System and Security -> Windows Update ![]() | |
Re: > 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 … | |
Re: > 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 … | |
Re: 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 … | |
Re: Did you [Search the web](http://lmgtfy.com/?q=C+local+variable+) first for its definition and uses? | |
Re: 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 | |
Re: I think its python, its a bit easier to learn the language and write the code compared to Java and C++ | |
Re: 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. | |
![]() | Re: 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? |
Re: how about making/putting functions in a header file and calling that in another program | |
Re: 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 | |
Re: 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 | |
Re: 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 | |
Re: 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++); { |
The End.