Forum: Software Developers' Lounge Jun 10th, 2008 |
| Replies: 4 Views: 402 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 Re: newbie How about taking a good book and reading. |
Forum: Software Developers' Lounge Jun 10th, 2008 |
| Replies: 18 Views: 829 |
Forum: Geeks' Lounge Jun 10th, 2008 |
| Replies: 57 Views: 2,116 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 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 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 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 |
Forum: DaniWeb Community Feedback May 29th, 2008 |
| Replies: 8 Views: 531 |
Forum: C++ May 25th, 2008 |
| Replies: 3 Views: 123 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 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 |
Forum: C++ May 21st, 2008 |
| Replies: 10 Views: 276 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 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 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 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 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 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 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 |
Forum: C++ May 15th, 2008 |
| Replies: 10 Views: 217 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 |
Forum: Community Introductions May 14th, 2008 |
| Replies: 8 Views: 279 |
Forum: Software Developers' Lounge May 14th, 2008 |
| Replies: 4 Views: 622 |
Forum: C++ May 13th, 2008 |
| Replies: 4 Views: 154 |
Forum: C May 11th, 2008 |
| Replies: 23 Views: 958 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 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 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 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 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 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 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 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 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 |
Forum: Geeks' Lounge May 11th, 2008 |
| Replies: 31 Views: 1,919 |
Forum: DaniWeb Community Feedback May 10th, 2008 |
| Replies: 10 Views: 1,634 |
Forum: Software Developers' Lounge May 10th, 2008 |
| Replies: 49 Views: 3,425 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 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 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()
{ |