Click here to Skip to main content
14,766,926 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
Questioninline question Pin
Rw23712-Mar-19 13:52
MemberRw23712-Mar-19 13:52 
AnswerRe: inline question Pin
CPallini12-Mar-19 22:48
mveCPallini12-Mar-19 22:48 
QuestionC code for fourth degree polynomials Pin
Member 1417766810-Mar-19 20:45
MemberMember 1417766810-Mar-19 20:45 
AnswerRe: C code for fourth degree polynomials Pin
Victor Nijegorodov10-Mar-19 23:27
MemberVictor Nijegorodov10-Mar-19 23:27 
AnswerRe: C code for fourth degree polynomials Pin
leon de boer12-Mar-19 4:56
Memberleon de boer12-Mar-19 4:56 
QuestionUnexpected sequence of cout / perror in console output Pin
Vaclav_10-Mar-19 8:23
MemberVaclav_10-Mar-19 8:23 
AnswerRe: Unexpected sequence of cout / perror in console output Pin
Richard MacCutchan10-Mar-19 23:52
mveRichard MacCutchan10-Mar-19 23:52 
GeneralRe: Unexpected sequence of cout / perror in console output Pin
k505411-Mar-19 3:28
mvek505411-Mar-19 3:28 
GeneralRe: Unexpected sequence of cout / perror in console output Pin
Richard MacCutchan11-Mar-19 4:56
mveRichard MacCutchan11-Mar-19 4:56 
GeneralRe: Unexpected sequence of cout / perror in console output Pin
k505411-Mar-19 6:41
mvek505411-Mar-19 6:41 
GeneralRe: Unexpected sequence of cout / perror in console output Pin
Richard MacCutchan11-Mar-19 6:52
mveRichard MacCutchan11-Mar-19 6:52 
GeneralRe: Unexpected sequence of cout / perror in console output Pin
k505411-Mar-19 12:59
mvek505411-Mar-19 12:59 
GeneralRe: Unexpected sequence of cout / perror in console output Pin
leon de boer11-Mar-19 19:10
Memberleon de boer11-Mar-19 19:10 
QuestionC Programming[Solved] Pin
Evolt_Pratom9-Mar-19 2:07
MemberEvolt_Pratom9-Mar-19 2:07 
AnswerRe: C Programming Pin
Richard MacCutchan9-Mar-19 2:27
mveRichard MacCutchan9-Mar-19 2:27 
GeneralRe: C Programming Pin
k50549-Mar-19 5:27
mvek50549-Mar-19 5:27 
GeneralRe: C Programming Pin
Richard MacCutchan9-Mar-19 6:16
mveRichard MacCutchan9-Mar-19 6:16 
GeneralRe: C Programming Pin
Evolt_Pratom10-Mar-19 4:42
MemberEvolt_Pratom10-Mar-19 4:42 
GeneralRe: C Programming Pin
Richard MacCutchan10-Mar-19 8:02
mveRichard MacCutchan10-Mar-19 8:02 
Questiontemplate confusion Pin
Rw2377-Mar-19 14:00
MemberRw2377-Mar-19 14:00 
Learning programmer need some help. I understand c++ Classes and I used to think I understood namespaces. But while trying to learn templates I'm getting kinda confused what is going on with this template example.

template <typename CharT, typename Traits, typename Alloc>
const CharT* std::basic_string< CharT, Traits, Alloc >::c_str() const [inline]

//and later the definition of the member function c_str()
const _CharT* c_str() const { return _M_data(); }

(a) Do you call the first line the template declaration?
(b) Do you call the second line the template implementation or definition?
(c) It appears to be a scope resolution :: to the member function c_str() but what is the [inline] bracket syntax?

(d)Also I assume the < CharT, Traits, Alloc > are defined in the header (elsewhere) with some value (overloaded or not)?

Just anywhere you can illuminate what I'm missing on the concept.
AnswerRe: template confusion Pin
Rw2378-Mar-19 3:37
MemberRw2378-Mar-19 3:37 
GeneralRe: template confusion Pin
Richard MacCutchan8-Mar-19 5:01
mveRichard MacCutchan8-Mar-19 5:01 
GeneralRe: template confusion Pin
Victor Nijegorodov8-Mar-19 7:21
MemberVictor Nijegorodov8-Mar-19 7:21 
GeneralRe: template confusion Pin
Rw2379-Mar-19 7:08
MemberRw2379-Mar-19 7:08 
GeneralRe: template confusion Pin
k50548-Mar-19 7:50
mvek50548-Mar-19 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.