266 Posted Topics
Re: Inline functions are used to eliminate overheads which occur in case of calls made to normal functions. But it is a significant trade-off only when the function is restricted to 2-3 lines of code. Otherwise, the advantage is nullified by the large size of the code that is repeatedly pasted … | |
Re: [url]http://www.devx.com/tips/Tip/12583[/url] Google for more stuff on similiar lines. | |
Re: [QUOTE]a.out [/QUOTE] What is that? Use code tags & re-post the code along with the errors you are getting.. | |
Re: [QUOTE]i want to define a function that calculates the " integral" of a function [/QUOTE] Not an easy job to define that for [I]any[/I] given input function if you are a newbie.. | |
Re: A peice of humble advice for devilofangel You may have not known this before but it is considered (very truelly so) a malpractice and a cheap way to increase the no. of posts to post content in multiple posts. I learned this the harder way by losing my reputation. So … | |
Re: [QUOTE]Did you see the watermark at the back of the edit window? [/QUOTE] I can't see any watermark. Perhaps, you were suggesting him to include the error statements inside his post along with the line numbers. | |
Re: [QUOTE]i am not sure how to do it in C[/QUOTE] Look up in your book. [QUOTE]is it the same in Java?[/QUOTE] There are minor differences between the break statements used inside switch-case in C and Java. Otherwise, it is similiar. | |
Re: Minimising the distance travelled by the finger would simultaneously increase the number of hits that you have to make with the finger. Frankly speaking, I don't think this project has any practical application, unless it is a compulsory question given for your homework. | |
Re: Welcome. Use code tags. Read this before posting. [url]http://www.daniweb.com/forums/thread78060.html[/url] | |
Re: I had a decent start with The Complete Reference: Java 2 by Herbert Schildt... But somewhere, Herb has some misconceptions. (As quoted by someone over here in one of my previous threads. Probably it was jwenting).. That apart, it is a good starting point, especially if you are having a … | |
Re: [QUOTE]I don't want anybody else to steal it[/QUOTE] That can happen even if you PM someone ;). Anyways, I'd be glad to help. | |
Re: [QUOTE]What about a program that is waiting specifically for a letter or number, you know, you press the number or letter and then it presents the next one to type in??[/QUOTE] Hey friend, please present your problem clearly. Otherwise, how would we be able to help you?? | |
Re: After that, you could go for bingo, reversi, go, poker etc. | |
Re: Search for your problem before posting. It is likely that someone might have faced the same problem earlier. | |
Re: I think you've not learnt the basics yet... First the value of LHS expression is evaluated and then it is assigned to the variable on RHS... So, first X+20 (50) is evaluated & then it (50) is assigned to X. The procedure simply results in incrementing the value of X … | |
Re: [QUOTE]How can I create a path? [/QUOTE] Functions related to handling directories are predefined in a header file named dir.h. Try using them. | |
Re: [QUOTE]I THINK SO!!! [/QUOTE] I think you are right. Although the use of goto is discouraged, one can use it over here just as an answer to this problem. | |
Re: You may define the maximum number of attempts made, say N. Then if the user guesses correctly in M guesses, then assign (N-M) to score. Here, better the guessing power, higher will be the value of (N-M). [QUOTE]I am just confused as to how to write the code to print … | |
![]() | Re: Use code tags :D [QUOTE]the problem is that i want a series of integers and passes them one at a time to function even.[/QUOTE] If you mean that you want to implement the same algorithm for a series of numbers, use arrays. If you want to pass them one at … ![]() |
Re: This is your first post, but now onwards, use code tags to display your code in the posts. | |
Re: [QUOTE]I have had another idea to approuch this.[/QUOTE] That is similiar to what I suggested to you over here [url]http://www.daniweb.com/forums/thread98034.html[/url] | |
Re: [QUOTE]first u should know [U][B]something[/B][/U] about that so refer it first and share your [B][U]ideas[/U][/B].[/QUOTE] Differing a bit over here, you must be very much clear about the basics and you must be specific regarding what doubt/s you have. | |
| |
Re: [QUOTE]compiler does not let me put a const int value into the int pointer 3 dim array[/QUOTE] I don't think there should be any problem with that, i.e. if you have diagonised the bub correctly. | |
Re: [QUOTE]There are already so many softwares for it, what would be so special with yours ? [/QUOTE] Correct. Also, you are very vague in your ideas. | |
Re: >a[10]=360/a[x] Didn't understand why. >int a[[B][U]30[/U][/B]]; //array called a which has [B][U]100[/U][/B] integers How 100? | |
Re: while(ptr >= arr) { cout << *ptr << endl; ptr--; } must be modified to [CODE]ptr=arr; while(ptr <= arr+2) { cout << *ptr << endl; ptr++; }[/CODE] | |
Re: Hey, I am in full agreement with Sturm. There must be a feature so that members can be banned. I think that atleast you should have a look at these threads and take necessary actions. [url]http://www.daniweb.com/forums/thread97972.html[/url] [url]http://www.daniweb.com/forums/thread97983.html[/url] Regards, -Jishnu. | |
Hey, what does the following code do? [CODE]#define _ -F<00||--F-OO--; int F=00,OO=00; main() { F_OO(); printf("%1.3f\n",4.*-F/OO/OO); } F_OO() { _-_-_-_ _-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_ _-_-_-_ }[/CODE] I found this interesting question from [URL="http://www.techfest.org/archives/tf07/wired_logic/codemaestros/code.c"]http://www.techfest.org/archives/tf07/wired_logic/codemaestros/code.c[/URL] | |
Re: Hey you are not a newbie; how could you post it in the C forum?! Considering that you are talking about C++, the problem you are facing can be eliminated by using friend functions. | |
Re: This is the limit, he is repeating the same thing over here. Some one responsible at DaniWeb should have a look at this. [url]http://www.daniweb.com/forums/thread97983.html[/url] | |
Re: How dare he?! This does not make sense at all! He is reposting the question I had asked some time back in a separate thread. Does he think the people at DaniWeb are fools ?? He is filling the C and C++ forums also with silly questions. Hopefully he will … | |
Re: Arguments of strcmp() should both be char pointers. In your case, the first argument is a char, which causes this error. | |
Re: zandiago is right. You are having so many questions in C, C++ & Java at a time. And half of them are ill-framed, the other half insisting others to do your homework. | |
Herbert Schildt in The Complete Reference Java 2 says,"Because it is static, it must access the members of its enclosing class through an object. That is, it cannot refer to members of its enclosing class directly. Because of this restriction, static nested classes are seldom used." Can we use static … | |
Re: >pappping what is that? | |
Re: The question itself is wierd. Why do you want to use a linked list for adding two longs when you can do the same without using it? | |
Re: You can do something like this: [CODE]if(printf("Hello")) { }[/CODE] | |
Re: [QUOTE]I finally figured out command line arguments[/QUOTE] [QUOTE]what do I put in the num1 = strtoul(argv[]) to take the number entered in the command line prompt? [/QUOTE] A contradiction! | |
Re: What kind of a way is this to give thread titles ?! | |
Re: [QUOTE]//Jkd1.6.0_02[/QUOTE] Just a very very minor point. It should be [CODE]//Jdk1.6.0_02[/CODE] JDK is Java Development Kit. Jkd is different, they are my initials! | |
Re: Don't expect anyone to write the entire code for you. Post your own efforts. In case you post your code, use code tags. This way you won't get any help. | |
Why does the JVM initialise the data fields with default values if no constructors are defined in any class? What is the need for such a procedure of calling the default constructor? | |
Re: >Uhm, do you know if a similar titled The C++ Language is as good? Yes. Besides it, refer The Complete Reference C++ by Herbert Schildt. | |
[CODE]#include<stdio.h> int main() { for(;0;) printf("Hello"); return(0); }[/CODE] This code should not give any output, but it is printing Hello once. I'm using TC++ 3.0. Is something wrong with the compiler? | |
Re: >Or if it doesn't ,what does a programming platform mean to be? Check your grammar. >Did it mean than it can work both in Windows and Linux. Yes, it does. | |
Re: You found the algorithm. That is enough. Go ahead. | |
Re: You will get help once you post your efforts. But what you are asking is just primary searching which is a very very basic concept. I don't think you will need anyone's help for this[B] if[/B] you try it on your own. |
The End.