Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~4K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Tags

15 Posted Topics

Member Avatar for davy_yg

The CSS should be: [CODE] body { background: url("background.jpg"); } [/CODE] I've put a semi-colon and double quotes.

Member Avatar for geneh23
0
118
Member Avatar for FloridaJoe55

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!!

Member Avatar for FloridaJoe55
0
180
Member Avatar for DmytriE

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]

Member Avatar for DmytriE
0
129
Member Avatar for hsiaoyk901201

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

Member Avatar for Anirudh Rb
0
217
Member Avatar for chezkaty

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 …

Member Avatar for Anirudh Rb
0
135
Member Avatar for meli123

No code can do that..it's a totally crazy idea. I'd love to know if you find a way to do that.

Member Avatar for doug65536
-1
286
Member Avatar for Jared1337

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 …

Member Avatar for Eagletalon
0
1K
Member Avatar for Anirudh Rb

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

Member Avatar for Fbody
0
85
Member Avatar for johnnyboyslim

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

Member Avatar for metronomu
0
161
Member Avatar for kittu.kishore
Member Avatar for chezkaty

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

Member Avatar for Narue
0
177
Member Avatar for edchem9

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.

Member Avatar for Anirudh Rb
0
186
Member Avatar for XodoX

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

Member Avatar for Anirudh Rb
0
161
Member Avatar for meli123

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 …

Member Avatar for Anirudh Rb
0
283
Member Avatar for hiyatran

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 …

Member Avatar for Anirudh Rb
0
97

The End.