İ dont know anything about file IO.if you have any idea how can write a c++ program to my hw pls share your ideas.homework is in the attchement.
c++34 0 Newbie Poster
Recommended Answers
Jump to Post>İ dont know anything about file IO
That's nice, so what are you going to do about it? If you said "Post to Daniweb and hope someone does my homework for me", you get a slap on the wrist. If you said "Open my book and try to figure it …
Jump to Post>no,you are wrong.
Prove it.>i've tried lots of time.
I don't see your attempts. All I see is a problem description. Where are the "lots of time" you've tried?>if you dont want to help pls dont depress others.
I (and anyone else qualified to answer questions …
Jump to Post>the problem it thah how can i use the isdigit() function to find the digits in the text
That's much better, thank you. Most likely, you aren't allowed to use the std::string class yet, so you're stuck with C-style strings. In the case, you can simply loop from the beginning …
Jump to Post>while (!infile.eof() )
eof() is not intended to be used as a loop condition. Use the result of your input request instead.>if(isdigit(x)==0)
This says "if x is *not* a digit".I also don't see the need for an array unless you want to limit the size of …
All 14 Replies
Narue 5,707 Bad Cop Team Colleague
c++34 0 Newbie Poster
Nedals 0 Light Poster
Narue 5,707 Bad Cop Team Colleague

iamthwee
c++34 0 Newbie Poster

iamthwee
Narue 5,707 Bad Cop Team Colleague
c++34 0 Newbie Poster
c++34 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
c++34 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
c++34 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.