User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 373,878 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,976 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 247
Search took 0.02 seconds.
Posts Made By: hammerhead
Forum: Software Developers' Lounge Jun 10th, 2008
Replies: 4
Views: 402
Posted By hammerhead
Re: Final project

>>I wonder why kids are too lazy to even come up with their own project ideas.

I think that most of them are not lazy but stuck with the wrong branch. Here in India most of the parents want their...
Forum: Software Developers' Lounge Jun 10th, 2008
Replies: 1
Views: 300
Posted By hammerhead
Re: newbie

How about taking a good book and reading.
Forum: Software Developers' Lounge Jun 10th, 2008
Replies: 18
Views: 829
Posted By hammerhead
Re: Exam Prep Approaches and Question Databases

My coding is done equally on paper and on the computer. Its much easier to do the math on paper before finally typing the program.
Forum: Geeks' Lounge Jun 10th, 2008
Replies: 57
Views: 2,116
Posted By hammerhead
Re: 2008 US Presidential Poll Part 2

Aren't older people supposed to be wiser and all? I dont see how age is relevant. If things go the way they are in India, we might have a 81 year old Prime Minister next time.
Forum: Geeks' Lounge Jun 9th, 2008
Replies: 46
Views: 1,443
Posted By hammerhead
Re: Relaxing while coding

I prefer to eat while coding. I usually have a pack of chips or peanuts with me. Often some juice or cold drink also helps.
Forum: Software Developers' Lounge Jun 8th, 2008
Replies: 18
Views: 829
Posted By hammerhead
Re: Exam Prep Approaches and Question Databases

Some colleges here have open book exams to discourage students from last minute cramming. A person can bring any number of books with him into the examination room. The questions however are such...
Forum: C++ Jun 4th, 2008
Replies: 14
Views: 516
Posted By hammerhead
Re: count digits

@Deepak
Do not give away the solution. Read the last point of this link http://www.daniweb.com/forums/thread78223.html

Also posting C code in C++ forum is not a good idea that too without code tags.
Forum: Community Introductions May 29th, 2008
Replies: 8
Views: 201
Posted By hammerhead
Re: Introduction

Welcome to the forum :)
Forum: DaniWeb Community Feedback May 29th, 2008
Replies: 8
Views: 531
Posted By hammerhead
Re: Clear browser cache

Excellent change Dani, but I cannot see the dropdown for Geeks' Lounge->Posting Games.
Forum: C++ May 25th, 2008
Replies: 3
Views: 123
Posted By hammerhead
Re: stuck

Typecasting worked for me

if(i % 2 == 0) s -= 1/(float)(i*i);
else s += 1/(float)(i*i);
Forum: Software Developers' Lounge May 24th, 2008
Replies: 2
Views: 391
Posted By hammerhead
Re: How to become a programmer?

If you can come up with sloutions of problems.
If you know for what values will your program fail.
If you understand the ethics of coding.
Forum: Geeks' Lounge May 24th, 2008
Replies: 7
Views: 256
Posted By hammerhead
Re: Drug testing in schools

They are pretty much useless if they do nothing else other than to boost up ones 'hard drive' temporarily.
Forum: C++ May 21st, 2008
Replies: 10
Views: 276
Posted By hammerhead
Re: recursive function to use on linked list?

>>but howcome my version didnt classify as recursion when it did indeed call the function inside itself?

I didn't think it did because it does not fall into the conventional definition of...
Forum: C++ May 21st, 2008
Replies: 10
Views: 276
Posted By hammerhead
Re: recursive function to use on linked list?

I dont think your code classifies as recursion. Neither does it satisfy the question


This is what I would do to check if a link list is sorted using recursion

bool sorted(node *curr)
{
...
Forum: DaniWeb Community Feedback May 19th, 2008
Replies: 21
Views: 1,020
Posted By hammerhead
Re: Sorry, reputation.

Not necessarily, one can always see the "last edited by Narue/Ancient Dragon, Reason:Added code tags" text. I see that too often.
Forum: DaniWeb Community Feedback May 18th, 2008
Replies: 21
Views: 1,020
Posted By hammerhead
Re: Sorry, reputation.

>>Especially Peter_budo he is always adding code tags to newbie posts.

Depends on the forum you post on. Ancient Dragon and Narue do excellent job on the C++ one.
Forum: Geeks' Lounge May 16th, 2008
Replies: 44
Views: 1,817
Posted By hammerhead
Re: Panopticon (who is watching you now?)

Quote from wikipedia


there are traffic lights in many places. But at times they do not work because of power failures or some other reason. There are many crossings where traffic lights are yet to...
Forum: Geeks' Lounge May 16th, 2008
Replies: 44
Views: 1,817
Posted By hammerhead
Re: Panopticon (who is watching you now?)

>>Is the world becoming a Panopticon?

Maybe Europe or North America, but definitely not the world. The first step here would be to install functioning traffic lights. Cameras come after that.
Forum: C++ May 15th, 2008
Replies: 3
Views: 122
Posted By hammerhead
Re: Iteration vs recursion

@ Ancient Dragon, the recursive function is incorrect. foo(x) has to return int. The correct version would be


int foo(int x)
{
if(x < 10)
{
x = x + 1;
return foo(x);
}
Forum: C++ May 15th, 2008
Replies: 5
Views: 133
Posted By hammerhead
Re: help me please I try to make a arithmetic calculator but i have 3 errors

You have declared variables x,y,z as members of the class and also as parameter values of the function arith_ex
do something like this

void Calculator::arith_ex(int x,int y,int z)
{
...
Forum: C++ May 15th, 2008
Replies: 10
Views: 217
Posted By hammerhead
Re: comparing matrices function

For two matrices to be equal, the dimensions of both matrices have to be equal and the corresponding values should also be equal. I would follow niek_e's method to compare two matrices.
Forum: Geeks' Lounge May 15th, 2008
Replies: 24
Views: 970
Posted By hammerhead
Re: Top 3 anime series/movies

I dont know if it can be classified as anime or not, but I like Avatar.
Forum: Community Introductions May 14th, 2008
Replies: 8
Views: 279
Posted By hammerhead
Re: Greetings everyone!

Welcome to the forum :)
Forum: Software Developers' Lounge May 14th, 2008
Replies: 4
Views: 622
Posted By hammerhead
Re: best website for practising programming

You may want to try Topcoder (topcoder.com/tc)
Forum: C++ May 13th, 2008
Replies: 4
Views: 154
Posted By hammerhead
Re: linked list insertion problem

Insert line 20 inside the while loop and add the statement prev=prev->link; at the end of the loop.
Forum: C May 11th, 2008
Replies: 23
Views: 958
Posted By hammerhead
Re: Learn C as a second language?

Perhaps I did not make my statement clearly. I agree with jephthah that assembly should be learned after C/C++ . I dont have much experience at microcontroller programming but I did try my hand at...
Forum: C++ May 11th, 2008
Replies: 10
Views: 200
Posted By hammerhead
Re: help

For Q14

The else is binded to the second if statement, but note that the second if itself will be executed only if the first 'if' holds true. Its like saying
if(condition)
{
if(condition)
{
...
Forum: C++ May 11th, 2008
Replies: 10
Views: 200
Posted By hammerhead
Re: help

Lets take Q3, you have to know that void means that the function does not return any value. That means that option C is incorrect and A is perfectly valid. Option B is where one might get stuck, but...
Forum: Techies' Lounge May 11th, 2008
Replies: 98
Views: 5,350
Posted By hammerhead
Re: Hacking Question?

Google for the term social engineers or search wikipedia, I did not post a link because I thought it might violate forum rules.

It is the art of fooling someone to believe something you are not. You...
Forum: C May 11th, 2008
Replies: 23
Views: 958
Posted By hammerhead
Re: Learn C as a second language?

I have to agree with jephthah, I have programmed AVR and 8051 both in C. Though there is option to program in assembly but when sometimes it becomes difficult to learn the instruction set especially...
Forum: Computer Science and Software Design May 11th, 2008
Replies: 7
Views: 630
Posted By hammerhead
Re: Research in Computer Architecture

Take a good book on computer architecture and start reading, once you have finished a chapter start reading the refrences given at the end of the chapter. Most of them will be papers from IEEE or ACM...
Forum: C++ May 11th, 2008
Replies: 7
Views: 267
Posted By hammerhead
Re: Expandable Array Problems

An alternative could be using link list if you want to do it without STL. That way your first issue would be solved, but still the best way would be using vectors.
Forum: C++ May 11th, 2008
Replies: 10
Views: 200
Posted By hammerhead
Re: help

What is there you cannot understand? If you expect someone to hand out the answers then you are wrong.
Forum: C++ May 11th, 2008
Replies: 3
Views: 141
Posted By hammerhead
Re: Pointer Question

You have created Node<K> *root; before defining the class Node. Declare it after the class. Furthermore I dont think you can use Node<K> n; outside the class. You will have to specify a valid class...
Forum: Geeks' Lounge May 11th, 2008
Replies: 31
Views: 1,919
Posted By hammerhead
Re: The Stupid Test -- Are you stupid???

The result is the same no matter what options you choose. It seems anyone who bothers answering the questions is considered stupid by the system.
Forum: Geeks' Lounge May 11th, 2008
Replies: 31
Views: 1,919
Posted By hammerhead
Re: The Stupid Test -- Are you stupid???

Where did they ask for email? All I got was "You are Stupid".
Forum: DaniWeb Community Feedback May 10th, 2008
Replies: 10
Views: 1,634
Posted By hammerhead
Re: Can't see the scrollbar

Have you tried a different browser, I use opera and the scroll bar is distinct from the background.
Forum: Software Developers' Lounge May 10th, 2008
Replies: 49
Views: 3,425
Posted By hammerhead
Re: How long have you been programming?

>>What would you consider an experianced programmer?

My answer would be someone who knows his math and can see the thin line between programming and mathematics.
Forum: Computer Science and Software Design May 10th, 2008
Replies: 15
Views: 1,363
Posted By hammerhead
Re: Online education?

>> but I don't think there is anything wrong with an online degree as long is it comes from an accredited college.

People are not crazy to spend four years of their lives getting a degree. It is...
Forum: C++ May 10th, 2008
Replies: 6
Views: 290
Posted By hammerhead
Re: Function to return two values

No you cannot. But you can pass the variables by reference so that the changes are reflected in the original variables. For example

void test(int &a,int &b)
{
a=a+1;
b=b+1;
}

int main()
{
Showing results 1 to 40 of 247

 
All times are GMT -4. The time now is 3:51 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC