775 Posted Topics
Re: In the changes you made did you check if you have a closing bracket for the public class? | |
Re: If it doesn't give any syntax or compile error then could you post a sample output of the program and then post the desired output so we can pinpoint which line is causing this | |
Re: What have you coded so far?, Which part of it are you having problems with? | |
![]() | Re: > but I don't want to have to copy and paste and slightly change the coordinates of each one you mean you wan't them to have the same dimensions but positioned in different parts of the applet right? > I want to basically copy and paste the creature I made … ![]() |
Re: make a nested loop the outer loop used to simply traverse every element of the array and the inner loop for pairing the array index from the outer loop with every element from the array that comes after the specified index | |
Re: one way is to store the values after the index containing 0 to an index before it, but you need to be aware of the last index of the array that has a value A better approach would be using stack or queue | |
Re: > but i dont understand why i need y=y*10 and y+x %10 if you'd want to convert it you need to understand how the code works using the while loop first My advice would be to trace the code by printing out the value of x and y in the … | |
Re: Do you have a specific question/problem about coding that you'd want help with? | |
Re: the variable grades has no value thus the error states that it hasn't been initialized | |
Re: >How about changing ones username to something less public/ searchable? Mine is my first and last name and I really don’t want/ need this to be so available; especially when I don’t even want membership on this website. that could be done by an admin > I am frustrated. > … | |
Re: use %lf in scanf to read doubles also use parentheses instead of using the sharp symbol for the argument of main, scanf and printf | |
Re: I'm not sure if visual studio supports a deprecated library like conio.h and it's functions like getch(), try removing them also use int main instead of void main | |
Re: > Thanks but that didn't work That's probably your compiler specific req. in using parentheses for that condition, even without those extra parentheses the program compiled/runned fine in my linux gcc | |
Re: how would you insert a node in the tree given a pet name? Is choosing if to move to the left and right child alphabetical by the name of the pet? as my opinion on knowing the root you could simply make a pointer for the first node of the … | |
Re: > I tried a lot to understand the spacing procedure in pascal triangle.. but it all went to vein!! do you mean the spacing between the integers on every line? you need to be more specific on how you need the triangle to look like, does it require you to … | |
Re: [Is searching the web for a sample too hard for you?](http://lmgtfy.com/?q=edit+and+delete+text+file+java) >can you give me the code ? that would be spoonfeading you and you'll learn nothing in the process if you need specific help with your code, then post that here, explain the problem then we'll help | |
Re: > assigning a variable I'm a bit confused by this statement, isn't it supposed to be *assigning a value to a variable* > Is it possible to initialise a variable multiple times in C prog No, it's not necessary, why do you need to initialize it every time? > initialise … | |
Re: here's a few options I could think as of the moment: 1. use a conditional for the rest of the code in the function, e.g. void display(int a, int c, int g, int f1, int f2) { int i = 0; //or you could use a boolean while(f1==0&&f2==0) { cout … | |
Re: [have you tried to search the web for them?](http://lmgtfy.com/?q=C%2B%2B+loop+exercise) | |
Re: @Vish0203 > after copying, cur_node and new_node become same isn't it??? not the current node but it's next node, and not really "same", its only used to allocate a memory for the next node @hwoarang69 @line 29 > while(cur_node != NULL) make that while(cur_node->next != NULL) otherwise you're iterating to … | |
Re: duplicate Article at: [http://www.daniweb.com/software-development/c/threads/421165/.write-a-c-program-to-keep-records-and-perform-statistical-analysis-for-a-c#post1796859](http://www.daniweb.com/software-development/c/threads/421165/.write-a-c-program-to-keep-records-and-perform-statistical-analysis-for-a-c#post1796859) | |
Re: the structure should be before main not inside | |
Re: is the starting java read me thread suppose to show in the whole software development forum and not just inside the java forum? | |
Re: could you post the output and tell what you wanted it to look like | |
Re: correct the parameters of the display function to match the one in main and it's function prototype | |
Re: > can you explain how to chack all the char inside the array without check only the first and it says equal use a counter or a boolean, if one of the letters is not equal return false or change the value of the counter, and later use that boolean … | |
Re: > But i am unable to convert this int back to a word. eg one + six = seven. how about using the array filled with the words where the integer answer will be a counter to get the position/index of the word counterpart of the number | |
Re: how are the functions being called, could you post the main function? > how can I do it so that when there are no exits available, the program just says "type q to quite", and skips the 'Type the first letter of the next step or direction you want to … | |
Re: initialize the value of variable nchar | |
Re: correct the brackets of the functions otherwise you can't tell when does a functions start and end | |
Re: > Cars D = (Car2) car you don't have a Cars class, don't initialize with a class that doesn't exist | |
Re: include the header string.h for string functions like strcmp as a sidenote I'd suggest that you avoid using *goto*, instead you could use simpler methods like a switch condition | |
Re: * you haven't created yet a variable grade > float TestAverage = (test1 + test2 + test3)/3; > float LabAverage = (lab1 + lab2 + lab3)/3; > float NotesAverage = (notes1 + notes2 + notes3)/3; * there's no need to redeclare their data type > cin << TestAverage + LabAverage … | |
Re: > if(cur_node->age < ag && cur_node->next->age > ag) you have no condition if the age is equal to ag, etc | |
![]() | Re: you probably missed a semicolon or bracket on another line, could you post the rest of the code (better if it's the whole code) ![]() |
Re: duplicate thread at [http://www.daniweb.com/software-development/cpp/threads/420931/declaration-syntax-error-and-declaration-missing-can-someone-fix-this](http://www.daniweb.com/software-development/cpp/threads/420931/declaration-syntax-error-and-declaration-missing-can-someone-fix-this) | |
Re: @ line 139 - use %c since it's character and not a string also *don't* forget the & to save it to the address of ans @ line 197 - ^same problem with the address next check the brackets and make sure you have all the corresponding closing brackets also … | |
Re: > if i want to make x the constant or in c u call define.,how can i go about? before main, `#define x 2.55` | |
![]() | Re: So is there a problem you need help with? ![]() |
Re: Back in the old forum there used to be a list of admins and mods Also Can I ask if you know what happened to Narue? | |
Re: what's the specific problem that you need help with? > Input is the address of a folder containing images read either of these [http://docs.oracle.com/javase/tutorial/2d/images/loadimage.html](http://docs.oracle.com/javase/tutorial/2d/images/loadimage.html) [http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter06/images.html](http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter06/images.html) > Output should be a jframe displying first image in a folder when i scroll mouse or press right arrow key then next image should … | |
Re: > 12/12/2012 then the date for tomorrow displays a list of dates could you post a sample output of the code I'm unable to duplicate the problem since I got only one date for the output when I entered 12/12/2012 | |
Re: you need to be more specific about the problem your having is there a specific error in your code or do you need suggestions on how to get started | |
Re: What have you coded so far? is there a specific problem you need help with? | |
Re: Is there a specific problem or question about that we could help you with? | |
Re: If you just need suggestions on how to get started then I suggest you read about structures and file i/o in C other than that if you have a specific problem or error with your code then you could post it here then we'll help | |
Re: @ the function > for(int i = 0; i > nrEle ; i++){ > for(int j = 0; j > nrEle; j++){ what's the value of nrEle that you passed to the function? if the value nrEle is **less than** the value of i and j then it will loop … | |
Re: > i need to display the numbers 1 to 9 randomly but they cannot be repeated! you could save the random number in an array, when you create a new random number check the elements of the array if the random number generated is already given then create a new … | |
Re: Sorry but we can't do your homework for you If you have specific questions or problems on any of the following then you can post your pseudocode here and that's where we'll help you |
The End.