No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
I am trying to write a C++ solution for a problem which is written C, I have learnt C++ very long ago(may be 15 years), and the way C++ is evolved now is kind of taking long to understand and not easy as 'C' to develop a solution. Would request …
In line number 18 of second program try to print the value of `chif`, do you see any one of 0,1,2,3? its random or unpredictable, so you need to initialize `chif` before using.
For comparing strings use `strcmp` Replace `cout` with `printf`, `cin` with `scanf` with %d and %s appropriately
I would really want to help, but code looks like a C program, not in C++.
The End.
ravss