Search Results

Showing results 1 to 40 of 110
Search took 0.01 seconds.
Search: Posts Made By: s_sridhar
Forum: C++ Jul 20th, 2009
Replies: 5
Views: 460
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
Both IE and Firefox.
Forum: Geeks' Lounge Jun 30th, 2009
Replies: 29
Views: 1,560
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
post the code in the appropriate forum. This is a Community introduction site.
Forum: IT Professionals' Lounge Jun 27th, 2009
Replies: 3
Views: 417
Posted By s_sridhar
I'll vote for computer engineering.
Forum: Geeks' Lounge Jun 27th, 2009
Replies: 32
Views: 2,368
Posted By s_sridhar
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
Posted By s_sridhar
campfire means your thread is running hot, with a huge number of views.
Forum: Geeks' Lounge Jun 27th, 2009
Replies: 38
Views: 2,593
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
Ok, Ok, Everyone screwed me. But, I felt that printf would be easier to format.
Forum: C Jun 24th, 2009
Replies: 7
Views: 551
Posted By s_sridhar
Forum: C++ Jun 23rd, 2009
Replies: 11
Views: 465
Posted By s_sridhar
"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
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
Could you be a bit more specific :).
Forum: C Jun 18th, 2009
Replies: 4
Views: 656
Posted By s_sridhar
Forum: C Jun 18th, 2009
Replies: 4
Views: 656
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
It is the users who write the code and they sometimes may be wrong.
Forum: Computer Science Jun 17th, 2009
Replies: 6
Views: 438
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
what is this???
for(int i = 0; i , index; i++)
{
total += dataItem;
}

Why that ','
Forum: C Jun 17th, 2009
Replies: 6
Views: 469
Posted By s_sridhar
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
Posted By s_sridhar
I said that because he defined marks beforehand and didn't take it as input.
Forum: C++ Jun 17th, 2009
Replies: 1
Views: 544
Posted By s_sridhar
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
Posted By s_sridhar
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
Posted By s_sridhar
Well, post your code first.
Forum: C++ Jun 16th, 2009
Replies: 24
Views: 496
Posted By s_sridhar
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
Posted By s_sridhar
Move through converting each blocks character sets into integers.
Forum: C++ Jun 16th, 2009
Replies: 24
Views: 496
Posted By s_sridhar
take it as string, and define another integer variable and store it over there appropriately.
Showing results 1 to 40 of 110

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC