-2 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
2 Posted Topics
Re: int to hex
[QUOTE=cwarn23;1111303]Hi and I am writing a small program but need to make a function that converts an integer to a hex. Below is an example of a similar function but need the result stored in a std::string variable. [CODE]printf("%x%x%x%x%x",h0, h1, h2, h3, h4);[/CODE] Does anybody know how to create a …
1. vector<bool>setlist; 2. setlist.push_back(true); 3. setlist.push_back(false); 4. setlist.push_back(true); 5. setlist.push_back(true); 6. 7. int i 8. string s1 = ","; 9. cout << "{"; 10. for (i = 0; i < setlist.size(); i++) 11. { 12. 13. if (setlist.at(i) == true) 14. { 15. cout << i; 16. 17. } 18. …
The End.
Poincarre