No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have this calculator class that performs business calculations distributed among small methods. I'm split between choosing to save the state, or just calculate everytime a method is called. Am I doing unnecessary micro-optimization or not? class Bill { private $value1; private $rate1; private $value2; private $rate2; // ...code here … |
|
Is a sandbox application feasible for an undergraduate thesis? I'm thinking of creating a sandbox application in which a web surfer could search any site he wants, dangerous or not. Everything that would come from the internet would be trapped inside this application. It will not be able to change … |
|
I haven't got any luck finding why this program wouldn't work. Here's the code. [CODE]int main (void) { ifstream file; char *streamer = NULL; file.open("now.txt", ios::in | ios::binary); if (file.is_open()) { while (!file.eof()) { streamer = new char[33]; cout << "Prestream: " << streamer << endl; file.read(streamer, 32); cout << … |