Forum: C++
Aug 4th, 2007, 11:56 AM
|
|
Replies: 18
Views: 585
|
Forum: C++
Jul 26th, 2007, 9:21 PM
|
|
Replies: 18
Views: 585
|
Forum: C++
Jul 26th, 2007, 8:38 PM
|
|
Replies: 18
Views: 585
|
Forum: C++
Jan 10th, 2007, 7:57 PM
|
|
Replies: 10
Views: 328
I'd say that this is far more 'C++' .. ...
I'd say that this is far more 'C++' .. std::string my_string("The quick brown fox jumped over the lazy dog");
std::replace( my_string.begin(), my_string.end(), 'o', '*' ); :)
|
Forum: C++
Jan 7th, 2007, 11:54 AM
|
|
Replies: 5
Views: 169
Have a look here -...
Have a look here -
http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.9
|
Forum: C++
Dec 22nd, 2006, 9:00 AM
|
|
Replies: 9
Views: 227
The difference between the 3 styles is the...
The difference between the 3 styles is the difference between whether or not you fill up your program's namespace scope with identifiers from the standard library.
The main idea of namespaces is to...
|
Forum: C++
May 7th, 2006, 11:31 AM
|
|
Replies: 6
Views: 458
|
Forum: C++
Apr 12th, 2006, 5:18 PM
|
|
Replies: 16
Views: 432
|
Forum: C++
Mar 29th, 2006, 5:59 PM
|
|
Replies: 75
Views: 1,633
|
Forum: C++
Mar 28th, 2006, 9:15 PM
|
|
Replies: 75
Views: 1,633
|
Forum: C++
Mar 28th, 2006, 8:44 PM
|
|
Replies: 7
Views: 247
|
Forum: C++
Mar 19th, 2006, 4:50 PM
|
|
Replies: 19
Views: 596
Why not use the standard library algorithm...
Why not use the standard library algorithm provided for this purpose? :)
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
string s("tnorf-ot-kcab");
...
|
Forum: C++
Mar 14th, 2006, 10:38 AM
|
|
Replies: 21
Views: 536
I believe there is currently some discussion...
I believe there is currently some discussion among members of the ISO C++ Standards Committee about precisely how the value of a null pointer should be written. In a recent usenet post, Bjarne...
|
Forum: C++
Mar 14th, 2006, 9:55 AM
|
|
Replies: 9
Views: 388
|
Forum: C++
Mar 14th, 2006, 9:05 AM
|
|
Replies: 21
Views: 536
|
Forum: C++
Mar 12th, 2006, 9:11 AM
|
|
Replies: 13
Views: 493
When using non-standard/non-portable code, you...
When using non-standard/non-portable code, you might want to localise it to one small part of your program (eg, a function wrapper) - Then all calls to the non-standard code will be through that...
|
Forum: C++
Mar 9th, 2006, 5:02 AM
|
|
Replies: 17
Views: 463
I believe he's referring to the fact that your...
I believe he's referring to the fact that your examples encouraged sprintf() over streams, not necessarily a claim that you said "X is better than Y".
On the other hand, he may have a point - The...
|
Forum: C++
Mar 3rd, 2006, 7:40 PM
|
|
Replies: 14
Views: 488
My guess is that you are a Windows user, and...
My guess is that you are a Windows user, and problem has nothing to do with C++ ... windows automatically closes console windows when a console program is finished... The easy solution - don't let...
|
Forum: C++
Mar 1st, 2006, 7:01 PM
|
|
Replies: 3
Views: 222
|
Forum: C++
Feb 19th, 2006, 4:36 PM
|
|
Replies: 10
Views: 654
a dumbed-down explanation
You may feel comfort in the fact that the majority of people also found themselves banging their head against a wall at one stage or another when they first tried to grasp OOP (I know I did).
You...
|