|
-
November 24th, 2009, 11:16 AM
#21
Re: Bar Charts in C++?
 Originally Posted by potatoCode
Would you prefer the solution on a silver plater like this
Code:
#include <iostream>
#include <string>
int main()
{
std::string ll1l;
for(int ll(0), lll(4000),l1(0), ll1(5), l1l(100);
ll++ != ll1 && (std::cout << "Sales amount: ", std::cin >>l1);
std::cout << ll1l.append((l1 < 0 ||l1 > lll ?
(std::cout << "Try again: ", std::cin >>l1, --ll) :l1)/ l1l, '*')
<< "\n" , ll1l.clear());
}
or the way these members had been trying to guide you in the right direction?
It's your choice.
Yes, the old "give them the obfuscated answer version" trick. I've done that a few times ...
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|