Re: [algogeeks] c program

2011-08-28 Thread UTKARSH SRIVASTAV
oh i didn't read the earlier postsystem call not allowed my file name was p8.c On Mon, Aug 29, 2011 at 3:29 AM, UTKARSH SRIVASTAV wrote: > #include > main() > { > system("cat p8.c"); > > } > > > On Sun, Aug 28, 2011 at 7:43 PM, teja bala wrote: > >> >> >> import java.io.*

Re: [algogeeks] c program

2011-08-28 Thread UTKARSH SRIVASTAV
#include main() { system("cat p8.c"); } On Sun, Aug 28, 2011 at 7:43 PM, teja bala wrote: > > > import java.io.*; > class hi > { > public static void main(String args[])throws IOException > { > FileReader fr=new FileReader("hi.java"); > int c; > while((c=fr.read())!= -1) > { > System

Re: [algogeeks] c program

2011-08-28 Thread teja bala
import java.io.*; class hi { public static void main(String args[])throws IOException { FileReader fr=new FileReader("hi.java"); int c; while((c=fr.read())!= -1) { System.out.print((char)c); } } } -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" gro

Re: [algogeeks] c program explain

2011-08-28 Thread PRATEEK VERMA
for(i=0;i<16;i++) printf("%d\n",(num

Re: [algogeeks] c program

2011-08-27 Thread Piyush Grover
it's a quine problem. char*f="char*f=%c%s%c; main(){ printf(f,34,f,34,10); }%c"; main() { printf(f,34,f,34,10); } I have used whitespaces to make it understand. On Sun, Aug 28, 2011 at 11:39 AM, rahul sharma wrote: > program whose output is the program itself??? > > -- > You receive

[algogeeks] c program

2011-08-27 Thread rahul sharma
program whose output is the program itself??? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@go

Re: [algogeeks] c program explain

2011-08-27 Thread Sanjay Rajpal
It is checking the MSB of the integer and, it is 1(checked by Bitwise AND with 1 at MSB), it prints 1 else 0. Sanju :) On Sat, Aug 27, 2011 at 9:25 PM, rohit wrote: > how is this program convert number to binary equivalent > int main() > { > unsigned int num =23 ; > int i; > for(i=0;i<16;i+

[algogeeks] c program explain

2011-08-27 Thread rohit
how is this program convert number to binary equivalent int main() { unsigned int num =23 ; int i; for(i=0;i<16;i++) printf("%d\n",(num

Re: [algogeeks] c++ program

2011-02-09 Thread Anil Kumar aRY@
thanx On Wed, Feb 9, 2011 at 3:47 PM, Rajeev Kumar wrote: > I don't know about cpp.But you can do it using selenium framework... > > On Wed, Feb 9, 2011 at 3:04 PM, Anil Kumar aRY@ wrote: > >> Write a program that reads a contents of webpages? >> >> -- >> *Anil Kumar Arya* >> *B.Tech 2nd Year* >>

Re: [algogeeks] c++ program

2011-02-09 Thread Rajeev Kumar
I don't know about cpp.But you can do it using selenium framework... On Wed, Feb 9, 2011 at 3:04 PM, Anil Kumar aRY@ wrote: > Write a program that reads a contents of webpages? > > -- > *Anil Kumar Arya* > *B.Tech 2nd Year* > *Motilal Nehru National Institute of Technology,* > *Allahabad* > *2110

[algogeeks] c++ program

2011-02-09 Thread Anil Kumar aRY@
Write a program that reads a contents of webpages? -- *Anil Kumar Arya* *B.Tech 2nd Year* *Motilal Nehru National Institute of Technology,* *Allahabad* *211004* *Email id:-**aryaanil...@gmail.com * -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" g

Re: [algogeeks] c program output

2011-02-07 Thread Rajeevpodar
Float comparison are not recomended in C++ better try the following condition. If( abs( a- 11.202 ) <= 1.e6 ) This will solve your problem. Sent from my iPod On Feb 7, 2011, at 8:22 PM, ankit agarwal wrote: > #include > > int main() > { > float a=11.202; > if(a<11.202) > prin

Re: [algogeeks] c program output

2011-02-07 Thread ankit agarwal
But is the bug in the given program On Mon, Feb 7, 2011 at 8:32 PM, Shalini Sah wrote: > try dis : > > #include > int main() > { > float a=11.202; > if((a-11.202)==0) > > printf("Hiii!!!\n"); > else > printf("Hello!!!\n"); > return 0; > } > you will

Re: [algogeeks] c program output

2011-02-07 Thread Shalini Sah
try dis : #include int main() { float a=11.202; if((a-11.202)==0) printf("Hiii!!!\n"); else printf("Hello!!!\n"); return 0; } you will get : Hello!!! On Mon, Feb 7, 2011 at 8:22 PM, ankit agarwal wrote: > #include > > int main() > { > float a=11.202; >

[algogeeks] c program output

2011-02-07 Thread ankit agarwal
#include int main() { float a=11.202; if(a<11.202) printf("Hiii!!!\n"); else printf("Hello!!!\n"); return 0; } output: Hiii!!! why does this output comes??? Ankit Agarwal -- You received this message because you are subscribed to the Google Groups "Algorithm