I’m having problem with my text file. Not too sure on which function to use in this program.
My text file contains integer numbers and float. It has many lines and 1 line contain more than 20 numbers. There can be a mix of number type within that line.
Here is the pseudo code of it.
Open text file
Read number position 1-15 (regardless of the line)
For every 4th position
Read and compare it with a threshold value
If the 4th position < threshold value
Add 1 to sum
Print the total sum
I would really appreciate if anyone could guide me step by step in doing it.
Thanks in advance.
Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat. The purpose of this eBook is to educate the reader about ransomware attacks.
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…