[c-prog] need help in this code

2009-04-12 Thread vipsiboy
#includeiostream.h #includeconio.h #includefstream.h #includestdlib.h int main(int argc,char *argv[]) { int number[9]={11,22,33,44,55,66,77,88,99}; if(argc!=3) { coutargc = argc\n; couterror in args\n; } ofstream fout1,fout2; fout1.open(argv[1]); if (fout1.fail()) { coutcould t open file; }

Re: [c-prog] need help in this code

2009-04-12 Thread Tyler Littlefield
- From: vipsiboy To: c-prog@yahoogroups.com Sent: Sunday, April 12, 2009 1:44 AM Subject: [c-prog] need help in this code #includeiostream.h #includeconio.h #includefstream.h #includestdlib.h int main(int argc,char *argv[]) { int number[9

Re: [c-prog] need help in this code

2009-04-12 Thread Thomas Hruska
vipsiboy wrote: snip this code written in turbo c++ compiles givs success. bt showing error while run.. can anyone help me with this code... pls mail the copy of correct code to hans.vi...@gmail.com Well, you did put forth effort, but you are using an ancient compiler and simply