Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
wellformed number
//clang 3.8.0 #include <iostream> class abc {private: int x; public: void input(); void check(); }; void abc::input() { std::cout<<"enter the number "; std::cin>>x; } void abc::check() {int h,t,f,d; f=0; t=x; h=t%10; t=t/10; while(t>0) {d=t%10; if(d>=h) {f=1; break; } h=d; t=t/10; } if(f==0) std::cout<<"wellformed number"; else std::cout<<"not a wellformed number"; } int main() {abc object; object.input(); object.check(); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
6 14 15 17 21 33 29
template specialization inheritance solution
GreedyProblem1
Atomic trivial default constructor
Heap: insert and deleteMin() Implementations
user defined exception
non-deduced context
overloadresolution
std::function ambiguity clang
MPL 2-1
Please log in to post a comment.