Okay, I guess the answer is "yes". But where can I find it?
I was thinking of something like php.net, just for c++. Preferably some
documentation that refers to the same standards that the gnu c++
compiler does (I'm using g++ V3.3.5 under Suse Linux 9.3).
In this specific case I wanna know the easiest way how to convert an
integer into a string variable (I mean which library / function to
use). I'm not a programming newbie by any means, but getting used to a
new developing environment sorta makes me feel like one all over again,
when I suddenly have to work without an extensive language reference
within my favourite editor and the likes...
I'm pretty happy with the way I can look up things on php.net, for php
- if there's anything similar for C++, I'd be overjoyed if you could
share the info :)
I like parashift.com, but is this: http://www.parashift.com/c++-faq-lit....html#faq-39.1
really the best way to do what otherwise could be a simple "alpha" << i
to make a string "alpha5" from i=5 ?
Best Regards,
Lars Uffmann 5 1741
<la**********@r wth-aachen.de> wrote in message
news:11******** **************@ t39g2000cwt.goo glegroups.com.. . Okay, I guess the answer is "yes". But where can I find it?
I often use this online reference: http://www.dinkumware.com/refxcpp.html
I also recommend this hard copy book: www.josuttis.com/libbook
I was thinking of something like php.net, just for c++. Preferably some documentation that refers to the same standards that the gnu c++ compiler does (I'm using g++ V3.3.5 under Suse Linux 9.3).
In this specific case I wanna know the easiest way how to convert an integer into a string variable (I mean which library / function to use). I'm not a programming newbie by any means, but getting used to a new developing environment sorta makes me feel like one all over again, when I suddenly have to work without an extensive language reference within my favourite editor and the likes...
I'm pretty happy with the way I can look up things on php.net, for php - if there's anything similar for C++, I'd be overjoyed if you could share the info :)
I like parashift.com, but is this:
http://www.parashift.com/c++-faq-lit....html#faq-39.1 really the best way
You'll need to decide what 'best' means to you. It might
not mean the same to others.
to do what otherwise could be a simple "alpha" << i to make a string "alpha5" from i=5 ?
-Mike
Mike Wahler wrote: http://www.parashift.com/c++-faq-lit....html#faq-39.1 really the best way
You'll need to decide what 'best' means to you.Â*Â*ItÂ*mig ht not mean the same to others.
Google for 'boost::lexical _cast<>'. Then get a simple version that works,
not the eternally correct and un-borrow-able one at www.boost.org
That's the problem with C++ - we invented it before HTML, so it has no root
webpage or single controlling entity. So all the rules, guidelines, tricks,
and traps are scattered hither and yon.
--
Phlip http://www.greencheese.org/ZeekLand <-- NOT a blog!!!
In article <11************ **********@t39g 2000cwt.googleg roups.com>, la**********@rw th-aachen.de wrote: Okay, I guess the answer is "yes". But where can I find it? I was thinking of something like php.net, just for c++. Preferably some documentation that refers to the same standards that the gnu c++ compiler does (I'm using g++ V3.3.5 under Suse Linux 9.3).
My favorite site is: <http://www.sgi.com/tech/stl/> for the stl stuff.
For everything else I just do a google search on the header name. Try
googling <cctype> and see what happens for example.
In this specific case I wanna know the easiest way how to convert an integer into a string variable (I mean which library / function to use). I'm not a programming newbie by any means, but getting used to a new developing environment sorta makes me feel like one all over again, when I suddenly have to work without an extensive language reference within my favourite editor and the likes...
I like parashift.com, but is this:
http://www.parashift.com/c++-faq-lit....html#faq-39.1 really the best way to do what otherwise could be a simple "alpha" << i to make a string "alpha5" from i=5 ?
That's what it takes. You need to use a stream of some sort to convert
the integer into a string, and you need to format it properly if the
default isn't satisfactory.
--
Magic depends on tradition and belief. It does not welcome observation,
nor does it profit by experiment. On the other hand, science is based
on experience; it is open to correction by observation and experiment.
On Tue, 28 Feb 2006 19:12:53 GMT, Phlip <ph*******@gmai l.com> wrote: That's the problem with C++ - we invented it before HTML
"we invented it" ... ??? I certainly had no part in it. It would be
interesting to hear what you did to help Bjarne Stroustrup back in
those days!
--
Bob Hairgrove No**********@Ho me.com
On 28 Feb 2006 10:51:23 -0800, la**********@rw th-aachen.de wrote: In this specific case I wanna know the easiest way how to convert an integer into a string variable (I mean which library / function to use).
....I like parashift.com, but is this: http://www.parashift.com/c++-faq-lit....html#faq-39.1 really the best way to do what otherwise could be a simple "alpha" << i to make a string "alpha5" from i=5 ?
No, but the C++ FAQ Lite contains many other useful and
understandable( !) tips. I'd write a function that internally uses
snprintf.
Best wishes,
Roland Pibinger This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jodocus |
last post by:
hi,
I am new to python (but not to programming - have programmed in many
other languages like C++/lisp/perl etc.) and I would like to buy a good
book. The local bookstore has no books about Python, so I cannot look
into a book and see whether I like it. That is why I turned to this
newsgroup for advise.
I would like a book with a very complete and correct description of the
language and the built-in features, and things like how to...
|
by: Charles Banas |
last post by:
I've been googling around for a while now an dhaven't been able to
find anything beyond SGI's C++ STL reference, which is a bit too terse
for my needs.
At home, I have a copy of the C++ Programmer's Reference (sorry, I
forget the details of the book now), and for work, I need a similar
online reference for the full STL and C/C++ library.
So, does anyone here know of (or use) a good complete reference other
than the SGI reference?
|
by: vlsidesign |
last post by:
I am a newbie and going through "The C programming language" by
Kernighan & Richie on my own time (I'm not a programmer but I want to
learn because it can save me time in my normal job, and it is kind of
fun). As I go through the book, I seek to do all the exercises because
they are very useful, and good, but it seems like I am just stumbling
through somewhat. In particular, I don't really know how to think about
"catching errors", or how...
|
by: Kevin Hall |
last post by:
C++ is one of my favorite languages to work in. This is because it has
so many differrent strengths. But there is also a number of blemishes
in the language -- some could potentially be fixed, others are not
likely. I wanted to open a discussion on what people think are the
good and bad things about C++. Here are my lists:
Good things about C++
---------------------
- multi-paradigm language.
- const-specifications
|
by: gjrw68 |
last post by:
I used to code in C about 10 years ago but haven't done anything since
than. What's the best refresher site out there for someone who codes
daily and needs to get back into C?
Cheers,
TF
| |
by: =?Utf-8?B?TWljaGFlbFF1aW5sYW4=?= |
last post by:
In my development environment I can add references to the Microsoft Practices
libraries and everything works ok. But when I copy the application to the
test server I get the message "CS0234: The type or namespace name 'Practices'
does not exist in the namespace 'Microsoft' (are you missing an assembly
reference?)".
A search of the web suggests that I am missing an assembly reference
(exactly as the message says). I cannot find any place...
|
by: lorlarz |
last post by:
Crockford's JavaScript, The Good Parts (a book review).
This shall perhaps be the world's shortest book review (for one of the
world's
shortests books).
I like Douglas Crockford (because I am a crabby old man too; plus he
_is_
smart and good).. But, how can he write a book on the good parts of
JavaScript
and not mention functions that address CSS & DOM? Weird. It's like
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |