- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Know me, know life.No me, no life.
- PC Specs
- Windows Vista
15 Posted Topics
Re: The CSS should be: [CODE] body { background: url("background.jpg"); } [/CODE] I've put a semi-colon and double quotes. | |
Re: I think you have to maintain a stack to keep track of moves and pop it repeatedly when you have to backtrack. I worked on a similar problem and i did the same thing. Happy coding!! | |
Re: I think the bug is in line 12. [CODE=c]matrices = (int *) malloc(4 * sizeof(int));[/CODE] 'matrices' is a pointer to a pointer and you have typecasted whatever malloc returns to an int *. Try typecasting it into int **. [CODE]matrices = (int **) malloc(4 * sizeof(int));[/CODE] | |
Re: Is it always the whitespace character that is shown in place of the Team code?? (It would have been easier for me if you had used comments). Anyway, here's what i gather from the above program: Everything is fine until line 15. From here the control passes to the [B]rankTeams[/B] … | |
Re: The standard library function pow(x, y) returns the result when x is raised to y. The following function returns the number of digits in a number n. [CODE=c] int getNOOfDigits(int n) { int count = 0; while(n > 0) { count++; n /= 10; //Divide an integer by 10 and … | |
Re: No code can do that..it's a totally crazy idea. I'd love to know if you find a way to do that. | |
Re: Break the diamond into two and draw them seperately. --* -*** ***** This is the 'upper triangle' of the diamond. In this the number of '*'s in line [I]l[/I] are: [INDENT]2[I]l[/I] + 1[/INDENT] where [I]l[/I] starts from 0 onwards.(i.e. first line is line 0). and the number of spaces before … | |
How do I check whether the data members of two objects belonging to the same class are equal? Will the following code do or is it done in some other manner?? [CODE=C++] class Sample { int a; public: S(int x) { a = x; } int getA() { return a; … | |
Re: [QUOTE=johnnyboyslim;1649640] dataIn >> Title[sub] >> Year[sub] >> Length[sub] >> Media[sub]; [/QUOTE] this should be: [CODE=C++] dataIn >>Title>>Year>>Length>>Media; [/CODE] because when you say dataIn>>Title[sub]; it means: "extract character from the file and store it in the Title array at position sub". Anyway what are you trying to achieve with this program?? | |
Re: [CODE=c] //Here's a function that does the job. //Parameter n is the number to be reversed. //This function returns the reversed number. //Actually this function can reverse any digit numbers. int reverse(int n) { int rev = 0; //this variable stores the reverse of n while(n > 0) { rev … | |
Re: you should use if-else statements to solve this problem since switch case statements cannot be used to check whether a value lies in a particular range or not. | |
Re: You want to know how to extact the operators and operands from the string variable right? To do it iterate through every character in the string and check if it is a numeric digit. If it is, store it in a character variable and subtract the character '0' from it. … | |
Re: divide an integer by 10 and you will get the last digit of the integer as the remainder and the rest of the number as quotient. in C++ when you divide an integer by an integer you get an integer. For Example, when you divide 234 by 10, the quotient … | |
Re: When you use innerHTML the previous HTML inside the element is [B][I]replaced [/I][/B]with the new HTML. So, according to what you have written the contents of the element with id 'addedText' after the execution of the script will be [CODE]</tr></td></table>[/CODE] (It is quite evident that this HTML snippet will not … |
The End.