266 Posted Topics

Member Avatar for hugvc333

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 …

Member Avatar for Jishnu
0
100
Member Avatar for ravisen22

[url]http://www.devx.com/tips/Tip/12583[/url] Google for more stuff on similiar lines.

Member Avatar for Jishnu
0
63
Member Avatar for chaosatom333

[QUOTE]a.out [/QUOTE] What is that? Use code tags & re-post the code along with the errors you are getting..

Member Avatar for Nick Evan
0
117
Member Avatar for sa-al

[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..

Member Avatar for Jishnu
0
85
Member Avatar for devilofangel

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 …

Member Avatar for Jishnu
0
141
Member Avatar for adiaforos

[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.

Member Avatar for Jishnu
0
117
Member Avatar for uber_noob

[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.

Member Avatar for Jishnu
0
97
Member Avatar for mickinator

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.

Member Avatar for mickinator
0
284
Member Avatar for cs378

Welcome. Use code tags. Read this before posting. [url]http://www.daniweb.com/forums/thread78060.html[/url]

Member Avatar for Ancient Dragon
0
123
Member Avatar for learning2java

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 …

Member Avatar for jwenting
0
98
Member Avatar for Dio1080

[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.

Member Avatar for Black Box
0
119
Member Avatar for everyday

[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??

Member Avatar for Ancient Dragon
0
88
Member Avatar for alleli
Member Avatar for sathishkumar.e

Search for your problem before posting. It is likely that someone might have faced the same problem earlier.

Member Avatar for Duoas
0
134
Member Avatar for cameron.kay

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 …

Member Avatar for WaltP
0
102
Member Avatar for pedro martinez

[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.

Member Avatar for WaltP
0
92
Member Avatar for boyz

[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.

Member Avatar for WaltP
0
119
Member Avatar for CaitlynCraft

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 …

Member Avatar for WaltP
1
1K
Member Avatar for johny112

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 …

Member Avatar for johny112
0
223
Member Avatar for summersa

This is your first post, but now onwards, use code tags to display your code in the posts.

Member Avatar for arumugam4all
0
163
Member Avatar for johnnyjohn20

[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]

Member Avatar for vijayan121
0
109
Member Avatar for adikesan

[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.

Member Avatar for rajusankar28
0
124
Member Avatar for boyz
Member Avatar for Ancient Dragon
0
269
Member Avatar for cursedbyfreud

[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.

Member Avatar for cursedbyfreud
0
169
Member Avatar for BigBen747

[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.

Member Avatar for WaltP
0
180
Member Avatar for johnnyjohn20

>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?

Member Avatar for Jishnu
0
304
Member Avatar for IRSSRI

while(ptr >= arr) { cout << *ptr << endl; ptr--; } must be modified to [CODE]ptr=arr; while(ptr <= arr+2) { cout << *ptr << endl; ptr++; }[/CODE]

Member Avatar for Jishnu
0
109
Member Avatar for Sturm

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.

Member Avatar for Jishnu
1
86
Member Avatar for 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]

Member Avatar for Jishnu
0
218
Member Avatar for boyz

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.

Member Avatar for vijayan121
0
105
Member Avatar for boyz

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]

Member Avatar for Ancient Dragon
0
244
Member Avatar for boyz

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 …

Member Avatar for Ancient Dragon
-3
288
Member Avatar for emilio

Arguments of strcmp() should both be char pointers. In your case, the first argument is a char, which causes this error.

Member Avatar for Ancient Dragon
0
115
Member Avatar for boyz

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.

Member Avatar for Phaelax
0
93
Member Avatar for boyz
Member Avatar for Jishnu

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 …

Member Avatar for lookof2day
0
332
Member Avatar for Jicky
Member Avatar for boyz

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?

Member Avatar for WaltP
0
102
Member Avatar for boyz
Member Avatar for Jishnu
0
79
Member Avatar for jrice528

[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!

Member Avatar for Duoas
0
115
Member Avatar for boyz
Member Avatar for rxylion
Member Avatar for chetah

[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!

Member Avatar for Jishnu
0
82
Member Avatar for Sylvie.Georges

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.

Member Avatar for Sylvie.Georges
0
104
Member Avatar for Jishnu

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?

Member Avatar for Jishnu
0
319
Member Avatar for scru

>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.

Member Avatar for Narue
0
82
Member Avatar for Jishnu

[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?

Member Avatar for WaltP
0
98
Member Avatar for rectifier

>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.

Member Avatar for jwenting
0
196
Member Avatar for gauthamnaggg
Member Avatar for john_mark386

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.

Member Avatar for Jishnu
0
106

The End.