Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~497 People Reached
Favorite Forums
Favorite Tags
c++ x 10
Member Avatar for I_Empire

i am writing a function to convert fractions to intgers for example: .636 -> 636 or .45 -> 45 [CODE] int ret_int(double input) { while(true) { // this line is for debugging only cout << input << " " << floor(input) << endl; if(input == floor(input)) return input; input = …

Member Avatar for I_Empire
0
147
Member Avatar for I_Empire

I wrote a template function that converts any numerical value to string : [code] template <class T> string ConverttoS(T input) { std::stringstream out; out << input ; return out.str(); } [/code] now i want to use this template function inside a class , but if i did so i would …

Member Avatar for siddhant3s
0
178
Member Avatar for I_Empire

Hi everybody, i was writing a small c++ class that uses a list as a data member , i then wrote a small print function to print the numbers in the list [code] #include <iostream> #include <string> #include <sstream> #include <list> using namespace std; class A { private: list<int> number; …

Member Avatar for I_Empire
0
172