Forum: C++ Jul 20th, 2009 |
| Replies: 5 Views: 460 inputarray[0] means first element of input array. That's not a set at all. Union means recurrent elements must be ignored in the second and nonrecurrent elements are added to the set. |
Forum: C++ Jul 19th, 2009 |
| Replies: 5 Views: 460 You must check whether all elements present in B is present in A or not. Union is just not copying two arrays in a single array, you must check for duplicates. |
Forum: C Jul 12th, 2009 |
| Replies: 9 Views: 815 Postfix expression is used to aid the order of evaluation of a mathematical expression.
When higher level programming languages came into existence one of the major hurdles faced by computer... |
Forum: C Jul 8th, 2009 |
| Replies: 16 Views: 858 Loop through and convert the group of characters next to c's,v's,m's ..... into integer datatype, take each character and change ascii value or perhaps use atoi function and multiply by powers of... |
Forum: Geeks' Lounge Jun 30th, 2009 |
| Replies: 61 Views: 4,004 |
Forum: Geeks' Lounge Jun 30th, 2009 |
| Replies: 29 Views: 1,560 Even my handwriting was poor (my teacher used to compare it with Gandhi's handwriting) but somewhat legible, among students i was called an intelligent 'kid' |
Forum: C Jun 28th, 2009 |
| Replies: 4 Views: 326 Switching contents is not recommended as it becomes tiresome when the contents of the node are huge.
Check out this one, http://alumnus.caltech.edu/~pje/llmsort.html |
Forum: C Jun 28th, 2009 |
| Replies: 5 Views: 364 Inside a loop use if condition to check the level, and proceed as long as the list exhausts.
for eg.
/*Inside a loop */
if(node->level==1)
list1->next=node
The loop terminates when... |
Forum: Python Jun 27th, 2009 |
| Replies: 1 Views: 260 post the code in the appropriate forum. This is a Community introduction site. |
Forum: IT Professionals' Lounge Jun 27th, 2009 |
| Replies: 3 Views: 417 I'll vote for computer engineering. |
Forum: Geeks' Lounge Jun 27th, 2009 |
| Replies: 32 Views: 2,368 Brilliant, but not quite enough
User: Do you know about me?
Cleverbot: Why would I want to?
User: Because I'm chatting with you. Will you chat with strangers?
Cleverbot: And i'm doing the... |
Forum: Geeks' Lounge Jun 27th, 2009 |
| Replies: 1 Views: 325 campfire means your thread is running hot, with a huge number of views. |
Forum: Geeks' Lounge Jun 27th, 2009 |
| Replies: 38 Views: 2,593 He didn't want his nose to be in the same shape as his father's. |
Forum: C++ Jun 24th, 2009 |
| Replies: 5 Views: 381 Use file concepts if it is not the translation you are looking for. http://www.codersource.net/cpp_file_io.html |
Forum: C++ Jun 24th, 2009 |
| Replies: 11 Views: 465 Ok, Ok, Everyone screwed me. But, I felt that printf would be easier to format. |
Forum: C Jun 24th, 2009 |
| Replies: 7 Views: 551 |
Forum: C++ Jun 23rd, 2009 |
| Replies: 11 Views: 465 "cout" doesn't support any specific formatting. You can use printf defined under stdio. Use a corresponding qualifier. |
Forum: Geeks' Lounge Jun 18th, 2009 |
| Replies: 15 Views: 1,214 what was the best moment of your life so far??
common start sharing ur memories here!!! :) |
Forum: C Jun 18th, 2009 |
| Replies: 7 Views: 551 I never said this is functional. Just to give him an idea to start. |
Forum: Geeks' Lounge Jun 18th, 2009 |
| Replies: 1,552 Views: 201,569 I have always admired the ability to bite off more than one can chew and then chew it. |
Forum: Geeks' Lounge Jun 18th, 2009 |
| Replies: 1,552 Views: 201,569 Nothing splendid has ever been achieved except by those who dared believe that something inside them was superior to circumstances. |
Forum: Computer Science Jun 18th, 2009 |
| Replies: 4 Views: 341 What else do you want? It is fairly good. But what you'll get includes the root. So subtract by 1, you'll get the size of the subtree. |
Forum: Computer Science Jun 18th, 2009 |
| Replies: 9 Views: 572 Divide the numbers continuously by 2 until you get 0 as the quotient. The net remainder you get is a binary number. |
Forum: C Jun 18th, 2009 |
| Replies: 7 Views: 551 To start with this routine must do, build on it.
function
{
sum+=function(string[i+1])*pow(base,i);
return sum;
}
This is not a functional code, work on it. See the pattern and try it... |
Forum: C++ Jun 18th, 2009 |
| Replies: 5 Views: 381 Could you be a bit more specific :). |
Forum: C Jun 18th, 2009 |
| Replies: 4 Views: 656 |
Forum: C Jun 18th, 2009 |
| Replies: 4 Views: 656 This should help.
for(i=0;string[i]!='\0';)
{
for(j=0;j<3;j++,i++)
{
tempstring[i]=string[j] /*this seperates into 3s, tweak this and you'll get necessary output each time tempstring is... |
Forum: C++ Jun 17th, 2009 |
| Replies: 5 Views: 239 Here you have not created any structure variables, a structure variable is created as follows, struct moviedata variablename. If you more structure members, include them in the structure definition.... |
Forum: C Jun 17th, 2009 |
| Replies: 6 Views: 469 It is the users who write the code and they sometimes may be wrong. |
Forum: Computer Science Jun 17th, 2009 |
| Replies: 6 Views: 438 Hey you want people to send you the entire code?? You must know your talents, your abilities and do accordingly :). |
Forum: Computer Science Jun 17th, 2009 |
| Replies: 9 Views: 572 Yeah, obviously they can recognise only two states on or off. But it may undergo radical changes in future. Read about quantum computers. :) |
Forum: C++ Jun 17th, 2009 |
| Replies: 4 Views: 627 what is this???
for(int i = 0; i , index; i++)
{
total += dataItem;
}
Why that ',' |
Forum: C Jun 17th, 2009 |
| Replies: 6 Views: 469 Your 3rd line is wrong. It must be fp=fopen("/usr/lib/htmlexamples/default.html", "r");
because fp is the pointer to the string not fopen, you somewhat muddled it. Or otherwise you can have it... |
Forum: C Jun 17th, 2009 |
| Replies: 8 Views: 489 I said that because he defined marks beforehand and didn't take it as input. |
Forum: C++ Jun 17th, 2009 |
| Replies: 1 Views: 544 You are recursively traversing the tree right. In each stage you must push the element into a particular queue based on its level. So if the depth of the tree is 3, you'll have 3 queues.
... |
Forum: C Jun 16th, 2009 |
| Replies: 2 Views: 243 I'm not sure, but maybe it is a convention that global variables are allocated memories in the first few slots. |
Forum: C++ Jun 16th, 2009 |
| Replies: 5 Views: 214 Well, post your code first. |
Forum: C++ Jun 16th, 2009 |
| Replies: 24 Views: 496 don't need to complicate things, simple logic will be fine, take a string convert it into numbers.................... |
Forum: C++ Jun 16th, 2009 |
| Replies: 24 Views: 496 Move through converting each blocks character sets into integers. |
Forum: C++ Jun 16th, 2009 |
| Replies: 24 Views: 496 take it as string, and define another integer variable and store it over there appropriately. |