HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Abnormal behaviour of "cout" (iostream)
Operating System - HP-UX
1833777
Members
2158
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 11:28 PM
06-07-2002 11:28 PM
Abnormal behaviour of "cout" (iostream)
Hello
In a c++ application, using the cout object to output data to the stdout, i have a problem where in variables of type "string" are not printed out. But variables of type "int/float" are printed out on to the stdout.
OS used : HP-UX 11.00
model of teh server : D380 (D-Class HP server)
Thanks
Arun Kumar
In a c++ application, using the cout object to output data to the stdout, i have a problem where in variables of type "string" are not printed out. But variables of type "int/float" are printed out on to the stdout.
OS used : HP-UX 11.00
model of teh server : D380 (D-Class HP server)
Thanks
Arun Kumar
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2002 04:33 PM
06-08-2002 04:33 PM
Re: Abnormal behaviour of "cout" (iostream)
Hi,
Are you using the cout statement in a try-catch block?
Exception-handling is turned on by default in aC++. If you had turned it off by compiling your objects with +noeh, then any exception that is thrown in your code can cause permanent local memory variables, memory leaks and run-time errors.
However, this cannot possibly explain why int and float still works.
Btw, what is the version of aC++ you are using? I have HP-searched the patch database with the keywords "cout string" and have not come across any relevant patches with regards to the condition you encountered.
Hope this helps. Regards.
Steven Sim Kok Leong
Are you using the cout statement in a try-catch block?
Exception-handling is turned on by default in aC++. If you had turned it off by compiling your objects with +noeh, then any exception that is thrown in your code can cause permanent local memory variables, memory leaks and run-time errors.
However, this cannot possibly explain why int and float still works.
Btw, what is the version of aC++ you are using? I have HP-searched the patch database with the keywords "cout string" and have not come across any relevant patches with regards to the condition you encountered.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2002 10:27 AM
06-09-2002 10:27 AM
Re: Abnormal behaviour of "cout" (iostream)
I have used strings with aC++ for quite a while and have never observed this behavior.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP