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 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...

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