C/C++ Troubleshooting C++ Program: Understanding usrStr and userInput Functions

  • Thread starter Thread starter elmessican
  • Start date Start date
  • Tags Tags
    C++ Program
AI Thread Summary
The discussion centers on difficulties in using the "usrStr" and "userInput" variables within two functions. The user notes that while the OutputWithoutWhiteSpace(userInput) function operates correctly, it introduces extra characters. Additionally, when calling the withoutspaces function, it adds the whitespace that was meant to be eliminated. A request is made for the user to share their code wrapped in specific tags for better troubleshooting.
elmessican
Messages
6
Reaction score
0
I'm having trouble understanding how to use the "usrStr" or how to use the userInput in both of my functions. I know the problem with my code, i see that when i call the OutputWithoutWhiteSpace(userInput) function it works fine but it adds the extra characters

first sentence = 46 characters
then when i call the withoutspaces fuction it adds the whitespaces eliminated to the result
 
Technology news on Phys.org
Hi, and welcome to the forum!

Could you post the code you are talking about? Please wrap it in the [CODE]...[/CODE] tags.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...

Similar threads

Replies
14
Views
34K
Replies
1
Views
5K
Replies
2
Views
5K
Replies
8
Views
4K
Replies
0
Views
2K
Replies
40
Views
3K
Back
Top