- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 7
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Student
- Interests
- Robotics, C++, Gaming, Tennis
161 Posted Topics
Re: Extra Terrestrial | |
Re: Live life as if you are going to die tommorrow and learn as if you are going to live forever. | |
Re: Here is a nice tutorial I found for MASM 16 bit [URL]http://www.xs4all.nl/~smit/asm01001.htm[/URL] | |
Re: I usually initialize by using srand() function [CODE=c++]srand ( time(NULL) ); [/CODE] time() is in the header <ctime> or <time.h> i am not very sure. To generate random numbers from 0-50 use the % operator [CODE=C++]int random_numer= rand()%50;[/CODE] | |
Re: I dont know how I missed this thread, but here is an interesting article I came across some days back [url]http://www.nytimes.com/2008/03/29/science/29collider.html?pagewanted=1[/url] | |
Re: @Deepak Do not give away the solution. Read the last point of this link [url]http://www.daniweb.com/forums/thread78223.html[/url] Also posting C code in C++ forum is not a good idea that too without code tags. | |
Re: The only songs that make me angry are the ones people play at middle of the night at high volume. | |
Re: Number of colums in the first matrix have to be equal to the number of rows in the second one. If you have only a row or a column matrix i.e. two arrays, their lengths have to be equal in order for the multiplication to take place. | |
Re: There is a strrev() function in string.h for char array. I dont know enough to help you with your code but I suggest you to follow a different method for checking palindrome in a string. Instead of checking a string with a reverse string, make two pointers one at the … | |
Re: >>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. | |
Re: This question has been asked a million times on this site. Try searching for a change. Your project starts from deciding a project not just by simply coding it. Deciding a project involves lots of parameters to be taken into consideration such as feasibility, cost, difficulty, application etc and usually … | |
Re: I dont know if it can be classified as anime or not, but I like Avatar. | |
Re: inport() and outport() functions do work if you have opened the port. I use a software called Userport to do the same. Alternatively you could try inportb() and outportb(). Here is a tutorial on parallel port programming in C [URL="http://electrosofts.com/parallel/index.html"]Parallel port tutorial[/URL] | |
Re: Why would anyone here be interested in reading your report? Its your report that means that you have to do it. Asking for help is one thing but asking others to do your work is wrong. | |
Re: Stop begging for code. Do your own work and read this thread [url]http://www.daniweb.com/forums/announcement8-2.html[/url] | |
Re: Okay here is the pseudo code for hcf, credit to Euclid. [CODE] gcd(m,n) r<-(m MOD n); if r=0 then { return n } else { m<-n n<-r gcd(m,n) } [/CODE] Sorry if my pseudocode is not as per standard. | |
Re: The best part about Microsoft's OS is that they keep posting updates. Though I dont know much about vista but XP has proven to be very reliable for me. Lets see what SP3 brings us. | |
Re: One way to go about it would be to add counters for each datatype. Initialize the counters to the number of static declarations of the datatype and increment them by one whenever memory for that datatype is allocated dynamically. In the end you can multiply the counters to the size … | |
Re: I remember reading that an Indian gave such people 5 Lack rupees ( approx 12500 USD). The scammers were eventually caught but the guy's money was never recovered. | |
Re: [QUOTE=coolraj003;588434]One of the hackers used a whistle that came with a cereal box to make some long distance calls or something as the whistle made the exact same frequency noise as the phone company's voice modem would, he did end up in jail i think, or did he end up … | |
Re: [QUOTE=Ancient Dragon;623345]I'm 75% certain that I will vote for Obama. I don't want someone who is 7 years older than I am to be President. He needs to be in a nursing home, not the white house. Even French President Charic was only 62 when he was first elected as … | |
Re: If you started from a point, went 10km north then 10km west and finally 10km south and end up at the same point, where would you be? | |
Re: Though pisses would be a pretty strong word, here are the things that bug me 1. Small quick reply box 2. leet speak 3. People dumping thousand lines of code | |
| |
Re: 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. | |
Re: 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 so you need to find access to them as they are paid (try … | |
Re: >>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 kids to do engineering because it is a safe option, … | |
Re: 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 that only a person with complete understanding of the concepts is able to answer. I would suggest … | |
Re: You may want to try [url="topcoder.com/tc"]Topcoder[/url] | |
Re: Excellent change Dani, but I cannot see the dropdown for Geeks' Lounge->Posting Games. | |
Re: Typecasting worked for me [CODE] if(i % 2 == 0) s -= 1/(float)(i*i); else s += 1/(float)(i*i); [/code] | |
Re: They are pretty much useless if they do nothing else other than to boost up ones 'hard drive' temporarily. | |
Re: 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. | |
Re: I dont think your code classifies as recursion. Neither does it satisfy the question [Quote] bool isSorted(nodeType *L) [/quote] This is what I would do to check if a link list is sorted using recursion [CODE=C++] bool sorted(node *curr) { if(curr->next==NULL) { return true; } else if(curr->val>curr->next->val) { return false; … | |
Re: Didn't you write any programs in your course? If not, I suggest you start with downloading the compiler and writing a simple "Hello World" program. | |
Re: >>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. | |
Re: Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein | |
Re: Spend the day adventure sporting with my friends. [quote] 10 C and I am outside in a t-shirt. [/quote] 40C here and I am burning :( | |
Re: Have you tried a different browser, I use opera and the scroll bar is distinct from the background. | |
Re: You have declared variables x,y,z as members of the class and also as parameter values of the function [icode]arith_ex[/icode] do something like this [CODE=C++] void Calculator::arith_ex(int x,int y,int z) { if(z==' ') {cout<<"ERROR: Operator-operand imbalance."<<endl; } cout<<"Sonuc="<<x/y+z<<endl; } [/CODE] and call the function as [CODE=C++] hesap.arith_ex(5,4,3); //or any other values … | |
Re: @ Ancient Dragon, the recursive function is incorrect. foo(x) has to return int. The correct version would be [CODE=C++] int foo(int x) { if(x < 10) { x = x + 1; return foo(x); } return x; } [/CODE] | |
Re: 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. |
The End.