•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 401,675 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,449 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 2125 | Replies: 1
![]() |
•
•
Join Date: Oct 2004
Posts: 24
Reputation:
Rep Power: 4
Solved Threads: 0
How do you count charcters in C++? for example if the user inputs 1234 the output would be 4 and -1234 the output would be 5. also if a user enters a numbers until a 0 is entered it outputs the nunmber of positive numbers entered and the number of negative numbers entered. i know how to terminate the lop i'm not sure how to count the number of positive numbers and then the number of negative numbers entered. Any help on this would greatly be appreciated, i might be looking to much in to it, it's always the case lol. Thanks a bunch.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Char spacing neone?? (C++)
- HELP got a major issue with hotmail & its driving me mad!! (Web Browsers)
- Please could you help me with my code :) (Assembly)
- Password Generator (Visual Basic 4 / 5 / 6)
- help :) (Java)
- Array or String Comparing Assignment (C++)
- C++ Syntax (C++)
Other Threads in the C++ Forum
- Previous Thread: Need help calculating Median when array is even
- Next Thread: Difficulty understanding Object Orientated File Streaming



Linear Mode