Could anyone help me with an issue that I have? I have a program that reads from a data file using an array and the data is structured as a long interger. I am trying to break up a long interger in to pairs i.e 141251 into 14:12:15 using c++.
Ccrobinson001 0 Light Poster
Recommended Answers
Jump to Post>This is a math problem.
No, it's not. Reading the data as an integer strikes me as dangerous in this case. I can easily see integer overflow being a potential problem, and that serious affects the robustness of the code. Something like this would be better:#include …
Jump to Post>you think that using a modulus in this case would cause a problem?
No, I think reading integers would cause a problem.I'm going to quote your PM to me as it has no business being sent to me privately and should have been in this thread.
Thanks for …
All 5 Replies
Duoas 1,025 Postaholic Featured Poster
Narue 5,707 Bad Cop Team Colleague
Ccrobinson001 0 Light Poster
Narue 5,707 Bad Cop Team Colleague
Ccrobinson001 0 Light 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.