DJSAN10 28 Posting Whiz in Training

Could you please paste the entire code . What is 'theInput' ?

DJSAN10 28 Posting Whiz in Training

The result is undefined. Hence different for different compilers. That is what is given in the previous post.

DJSAN10 28 Posting Whiz in Training
DJSAN10 28 Posting Whiz in Training

since it would be in the same class file, he could just use
Java Syntax (Toggle Plain Text)

show();

Yes true

as for the other one, don't say: apart from -> that means, do both.
if he moves the main method to the Static_demo class and then tries to run the static_demo1 class, he would get exactly the same error, since: the main method will not be found

Well thanks for correcting me. You are right ,'apart from' is misleading. But anyways you posted what I actually wanted to convey :)

DJSAN10 28 Posting Whiz in Training

Apart from what stultuske said , I think you are executing static_demo class. Instead run static_demo1 class. Also you need to create object of static_demo in main(). What is x1 ? You should be calling it as static_class.show().

DJSAN10 28 Posting Whiz in Training

@narue ok thank you for the correction

DJSAN10 28 Posting Whiz in Training

I am not sure of this. But see if you can use the following somewhere

scanf("%[^\n]");

This code skips new line

DJSAN10 28 Posting Whiz in Training

Its not a compiled language, right ?

Java source code is compiled into byte code which is then JITed into an executable code. Try searching for Just In Time Compiler, you might get a clearer idea.

DJSAN10 28 Posting Whiz in Training

I think if you understand C++ concepts well, Java should not be a problem. It will be even simpler. The only difference will be in the syntax which is a matter of practice.

DJSAN10 28 Posting Whiz in Training

Even I was thinking on the same. Did you execute the program. I will try and find out the answer for this

DJSAN10 28 Posting Whiz in Training

This is because ,in this case , printf() is right justified i.e. it works from right to left.

DJSAN10 28 Posting Whiz in Training

21 : p2=fopen("file2.txt","r");

You are opening it in read mode and trying to write

DJSAN10 28 Posting Whiz in Training

This might help answer your questions
http://users.aber.ac.uk/auj/voidmain.shtml

DJSAN10 28 Posting Whiz in Training

:twisted: :D

DJSAN10 28 Posting Whiz in Training

@gourav1 You need to do at least some search by yourself dude. If you don't understand anything from what you have read, then you may post your doubts here. You cannot simply ask for links around here. No one will do the typing for you in the search bar. You will learn a lot more if you learn by yourself. If you have a doubt later, come here and post, everyone is ready to help you, not spoon feed you. I hope you are understanding what I want to say.

DJSAN10 28 Posting Whiz in Training

Well I do know about cricket so can help you but your question is too vague. What i feel is you enter number of 6s,4s,3s,2s,1s and dots. Also you need to enter number of balls played. You take this information from user. Now you calculate the total runs, average and strike rate which is simple mathematics . That is how I see it.

DJSAN10 28 Posting Whiz in Training

each student should had evluated only 5 teacher so i use n[col]=5.

What I understand by this is that you want every student should be evaluated only 5 times.Is this the case? If so , take a counter and increment it after each evaluation. Your if statement will now check if the counter <= 5, only then evaluation will be done. Also don't forget to reset the counter i.e. counter=0 for every new student evaluation. Let me know if I have misinterpreted your problem as I am not quite able to understand what you exactly want to do.

DJSAN10 28 Posting Whiz in Training

You might want to check out some links.Here is one
http://mindprod.com/jgloss/buffer.html

DJSAN10 28 Posting Whiz in Training

Agree.You don't need the if statement.
Also , your if statement is never evaluating to true

DJSAN10 28 Posting Whiz in Training

In simple terms you can assume a buffer to be a temporary storage area. Think of it in this way,
suppose you bring a book from place A and give it your friend to keep it in place B. By the time your friend goes to place B ,you fetch another book from place A. Your friend is of smaller age so takes longer to return each time.Now you decide to place a table in between.Each time you get a book you place it on the table and continue with getting other books. When your friend comes back he can take the book from the table. Here the table is a buffer.
Apart from synchronizing speeds, many times buffers are used to fetch data quicker. The data that is required more frequently is placed into buffers. Disk accesses (which are slower) are thus avoided for frequently needed data.

Flushing a buffer basically means transferring data from memory to disk.

DJSAN10 28 Posting Whiz in Training

You can first Convert your decimal to binary and then group them into digits of four and use a switch case for your sixteen hexadecimal digits.That is just 1 way of doing it.I suggested it so that you can use your above program for the same.

DJSAN10 28 Posting Whiz in Training
DJSAN10 28 Posting Whiz in Training

Also, if possible paste what output you are getting.Is it atleast printing Total Vikt ?

DJSAN10 28 Posting Whiz in Training

ryggsackArray[arrayCounter] = s;

I think that is where your problem lies.Try using a copy constructor

DJSAN10 28 Posting Whiz in Training

I agree with all above.Try a better/newer IDE .Avoid using Turbo C, it is considered to be non-standard. There are many things in it which are outdated and not according to ANSI standard.

DJSAN10 28 Posting Whiz in Training

Skepticisms is the longest word that alternates hands when typing!

DJSAN10 28 Posting Whiz in Training

Those who sleep on the floor will not fall off the bed

DJSAN10 28 Posting Whiz in Training

It is not the size of a dog in a fight... It is the size of the fight in a dog.

DJSAN10 28 Posting Whiz in Training

thank you so much

DJSAN10 28 Posting Whiz in Training

Yeah true,i agree with you that Java did come for mobile,rather as an embedded platform since Java itself is considered to be a mini OS.
And what i wanted to stress by

You CANNOT write an operating system in Java.

actually was "why Java is not used for low level programming" rather than it can never be used.Sorry for the misleading sentence.Thank you for correcting me.

DJSAN10 28 Posting Whiz in Training

Computer Security, taught by Dan Boneh, John Mitchell and Dawn Song
http://www.security-class.org/

Cryptography, taught by Professor Dan Boneh
http://crypto-class.org/

Software Engineering for Software as a Service (SAAS), taught by Armando Fox and David Patterson
http://saas-class.org/

Game Theory, taught by Matthew O. Jackson and Yoav Shoham
http://game-theory-class.org

Natural Language processing, taught by Dan Jurafsky and Christopher Manning
http://nlp-class.org

Probabilistic Graphical Models, taught by Daphne Koller
http://pgm-class.org/

Human-Computer interfaces, taught by Scott Klemmer
http://hci-class.org/

DJSAN10 28 Posting Whiz in Training

I guess this code is similar to a simple assembler where the various instructions have been given opcodes . Depending upon the instruction you enter the appropriate switch case is executed.What working do u want to be explained depends on what doubts you have.Please be more specific.

DJSAN10 28 Posting Whiz in Training

Basically, because if you try to find out in which language your operating system is written into,you can probably get your answer.Java is designed for the web.C on the other hand is for interaction with the hardware.You CANNOT write an operating system in Java.C is the base for System programming.If there is no system, where would you do application/web programming.

DJSAN10 28 Posting Whiz in Training

Why do we have to suffix long literals by 'L' or 'l' even though we have specified the datatype ? Does it serve any special purpose?

DJSAN10 28 Posting Whiz in Training

I am working with Java RMI. I have created my client in netbeans. After failing to use rmic in netbeans i created stub file using rmic on command prompt and placed the file in my project folder's build\classes directory.Now when i run the server from command prompt, binding takes place correctly but client gives an exception that it is unable to find the stub file..
This is the exception that i get :
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: RMIImp_Stub (no security manager: RMI class loader disabled)

Does this mean i have to place the stub file somewhere else..?? Is there any other solution..please help...

thanks...

DJSAN10 28 Posting Whiz in Training

Check out this link..I hope it might be of some help
http://www.emgu.com/wiki/index.php/Main_Page

DJSAN10 28 Posting Whiz in Training

Try n go for EmguCV ..Its a wrapper for OpenCV for VS
may be that will help

DJSAN10 28 Posting Whiz in Training

thank you mike... that was helpful..

DJSAN10 28 Posting Whiz in Training

what happens if we delete a pointer twice..??

DJSAN10 28 Posting Whiz in Training

i thot tht ws quite implicit wat u said...
newez sry fr nt putting it correclty...
my doubt is simply whther is it necessary to perform d above typecast???

jonsca commented: Speak in full sentence English, please. That was part of the reason for the -1 before. -1
DJSAN10 28 Posting Whiz in Training

This is a part of code i read in a standard book..


f()
{}
.
.
.

int *ip;
ip=((int *)f);

my question is..f gives d address of function..then wat is d need to typecast..??/

DJSAN10 28 Posting Whiz in Training

k thnks ancient dragon..tht was helpful...

DJSAN10 28 Posting Whiz in Training

sry..bt is this related to the same context..???

DJSAN10 28 Posting Whiz in Training

m a bit confused...how can it b written in C coz again u will need a C compiler to compile it..
also if it is written in assembly..then how can the code run on different machines..i mean,assembly language would be different for different architectures,won't it..??

DJSAN10 28 Posting Whiz in Training

in which language are definitions of built in functions like printf written...assembly or C?

DJSAN10 28 Posting Whiz in Training

thanx al..

DJSAN10 28 Posting Whiz in Training

Are constants, defined by using the keyword const , external linkage or internal linkage?
Can constants be modified using pointers?
What about constants defined using by #define?

DJSAN10 28 Posting Whiz in Training

Why is float called single precision floating point and double as double precision floating point?

DJSAN10 28 Posting Whiz in Training

it wrks.thnx

DJSAN10 28 Posting Whiz in Training

ctrl Z doesnt wrk.. i 'll give ctrl-d a try