Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » How to do interation on Vector<String>
Re: How to do interation on Vector<String> [message #10655 is a reply to message #10654] Sat, 21 July 2007 13:02 Go to previous messageGo to previous message
johnevans77 is currently offline  johnevans77
Messages: 38
Registered: July 2007
Member
[quote title=fudadmin wrote on Sat, 21 July 2007 12:25]
johnevans77 wrote on Sat, 21 July 2007 06:48


...
1. But i usually using cout to output something to console.


Quote:

Waste of time, very bad and stupid Smile. Don't be insulted it's not at you. It's at a bit of a joke at the habit from pre-historic (pre-GUI) computers age...

No problem Smile Hehe.

Quote:


Seriously, Why?
1. Is your apps interface mostly console?
2. The result is temporary:
3. you don't have "written" proof to show to other people Smile
4. can't compare to the other tests or runs.
5. can't have history.
6. have to wait while console opens
7. have to close the console window.
8. can't use that piece of code in real app.
9. ...


Sometimes, i usually print variable's value in console, when running in debug mode. So, i need this feature Smile When console is not open, should there is no problem. Just nothing is printed.

Quote:


Strong advice:
1. do tests with your real small GUI's (or one for that purpose)
2. OR/AND learn and use ingenious U++ logging system!!!
3. AND/OR create a file, include it into the pr-aux package and do outputs to it (or use "always awake" editor like ADIE)


what is logging function/macro i can use?

Quote:


johnevans77 wrote on Sat, 21 July 2007 06:48


2. When i try to use std::cout, the compilation produced many errors.


Does any other console apps from examples work?
Have you setup your console package correctly (CONSOLE macro & CONSOLE flag) ?


yes. All examples are working. Using vector<int>, std::cout also work. But not with vector<String>.

Quote:


johnevans77 wrote on Sat, 21 July 2007 06:48


3. I can forget std namespace if there is alternative.


I didn't say forget... but the alternative is very clear Smile


can you tell me what are the alternatives? I am very new to ultimate++.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem using Split on carriage return
Next Topic: Can I extend the Serialization to other types?
Goto Forum:
  


Current Time: Thu May 09 05:18:52 CEST 2024

Total time taken to generate the page: 0.02284 seconds