User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 455,969 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,760 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 428 | Replies: 6 | Solved
Reply
Join Date: Nov 2007
Posts: 21
Reputation: ricnyx is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ricnyx ricnyx is offline Offline
Newbie Poster

Help arghh.......help me pls~~~~urgent

  #1  
Nov 25th, 2007
im the newbie among the newbie .....need a nice and patient guy who willing to guide me of my assignment.....cause the deadline is tis weekend......i dun know or can say hard to post the problem out...cause too many.............need urgent reply.........can msn ??? pls pls pls pls...........i got plenty of question to ask......really need a patient guy ........
Last edited by ricnyx : Nov 25th, 2007 at 2:52 pm. Reason: Removed email
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Posts: 21
Reputation: ricnyx is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ricnyx ricnyx is offline Offline
Newbie Poster

Re: arghh.......help me pls~~~~urgent

  #2  
Nov 25th, 2007
can guide me through msn????? pls .....
Reply With Quote  
Join Date: Sep 2004
Posts: 6,507
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 31
Solved Threads: 487
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: arghh.......help me pls~~~~urgent

  #3  
Nov 25th, 2007
No. Read our rules about keeping help on the site.
I'm here to prove you wrong.
Reply With Quote  
Join Date: Nov 2007
Posts: 21
Reputation: ricnyx is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ricnyx ricnyx is offline Offline
Newbie Poster

Re: arghh.......help me pls~~~~urgent

  #4  
Nov 25th, 2007
haiz....all sleep?
hope tat hav ppl can ans my question now.....

#include <fstream>
#include <iostream>
#include <cstdlib>

int main( )
{
using namespace std;
ifstream in_stream;
ofstream out_stream;

in_stream.open("infile.dat");
if (in_stream.fail( ))
{
cout << "Input file opening failed.\n";
exit(1);
}

out_stream.open("outfile.dat");
if (out_stream.fail( ))
{
cout << "Output file opening failed.\n";
exit(1);
}

int first, second, third;
in_stream >> first >> second >> third;
out_stream << "The sum of the first 3\n"
<< "numbers in infile.dat\n"
<< "is " << (first + second + third)
<< endl;

in_stream.close( );
out_stream.close( );

return 0;
}

wat if i wan to read all integer number ???wat should i do?
Reply With Quote  
Join Date: Nov 2007
Posts: 21
Reputation: ricnyx is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ricnyx ricnyx is offline Offline
Newbie Poster

Re: arghh.......help me pls~~~~urgent

  #5  
Nov 25th, 2007
time is mana ~~~~ ^^V
guide me guide me pls............
Reply With Quote  
Join Date: Aug 2007
Posts: 18
Reputation: bilalb1 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
bilalb1 bilalb1 is offline Offline
Newbie Poster

Re: arghh.......help me pls~~~~urgent

  #6  
Nov 25th, 2007
i will give u a hint u might find atoi function useful...

here is the link...
http://www.space.unibe.ch/comp_doc/c...xponent.c#atoi

i am sorry if i got the question u r asking wrong...
Reply With Quote  
Join Date: Aug 2007
Posts: 18
Reputation: bilalb1 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
bilalb1 bilalb1 is offline Offline
Newbie Poster

Re: arghh.......help me pls~~~~urgent

  #7  
Nov 25th, 2007
i am afraid thats all i can do...try reading line by line convert to each string to int and add them ...
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 9:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC