Motorola launched Motorola xoom Wi-Fi and 3G model tablets.It is world's first device powered by Android 3.0. It has 1 Ghz dual-core processor and 1 GB RAM. It has also 2MP front-facing and rear-facing cameras.It include Google Mobile services on a 10.1 inch widescreen HD display.Motorola xoom supports a beat version of Adobe Flash Player 10.2. It features a built-in gyroscope, barometer, e-compass, accelerometer and adaptive lighting. The tablet supports up to 10 hours of video playback.The price of Motorola xoom are Rs.34,490 and Rs.41,490 respectively.
/* Program to take lines 1,4,7,10.... from a text file and to write into a new file. It is written in c with platform devcpp*/ /* eg:- input file -> ab.txt contain 1 lady gaga sdrgrg ergerg 2 oraph winfrey dfgdr dfgdf . output file neww.txt 1 lady gaga 2 oraph winfrey . . */ #include #include #include using namespace std; main() { char c; FILE *fp1,*fp2; if(fp1=fopen("e:\\ab.txt","r")) { cout<<"\n opened fp1"; } else { cout<<"\n failed fp1"; } if( fp2=fopen("e:\\neww.txt","w") ) { cout<<"\n opened fp2"; } else { cout<<"\n failed fp2"; } while(!feof(fp1)) { c=getc(fp1); while(c!='\n') { putc(c,fp2); c=getc(fp1); } putc('\n',fp2); c=getc(fp1); while(c!='\n') { c=getc(fp1); } c=getc(fp1); while(c!='\n') { c=getc(fp1); } } cout<<"\n End"; getch(); return 0; }
Comments
Post a Comment