User profile: salem c

User info
User name:salem c
Location:The Rock
Bio:Please don't PM me to do your homework, unless it comes with a credible offer of money.
My rate is US$50 per hour.
Number of posts:1465
Latest posts:

asterisks in a form of triangles
Well it would be a hell of a lot easier if you chose meaningful variable names. [code] for ( int row...

all prime numbers upto n using loop
Well since your friend's attempt has no indentation, and piles everything into main(), it's hard to ...

Is it possible to read from a file without fstream?
Sure, if you redirect the input, you're now going through istream rather than fstream. The >> and g...

Is there better way to increment the count every 10, 100, 1000, ...?
Presumably, your compressor can output "7a" "42a" "451a" or indeed any other integer number it likes...

How do you persist data for next execution of the program?
TBH, 100KB might not be worth the trouble of trying to do anything fancy. Especially if your "interm...