Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++ 2022 cout bug? Pin
Richard MacCutchan12-May-23 22:24
mveRichard MacCutchan12-May-23 22:24 
GeneralRe: Visual C++ 2022 cout bug? Pin
Shao Voon Wong12-May-23 2:03
mvaShao Voon Wong12-May-23 2:03 
QuestionPlaying an mp3 file using MCI Pin
Derell Licht11-May-23 10:34
professionalDerell Licht11-May-23 10:34 
AnswerYou might as well use DirectShow to play MP3 and AAC. Pin
Shao Voon Wong11-May-23 15:55
mvaShao Voon Wong11-May-23 15:55 
AnswerRe: Playing an mp3 file using MCI Pin
Derell Licht12-May-23 9:10
professionalDerell Licht12-May-23 9:10 
QuestionMessage Closed Pin
10-May-23 8:07
Member 1496877110-May-23 8:07 
AnswerRe: another "everybody knows that " question on C++ : Preserved for posterity Pin
k505410-May-23 8:43
mvek505410-May-23 8:43 
AnswerRe: another "everybody knows that " question on C++ Pin
k505410-May-23 9:05
mvek505410-May-23 9:05 
You should have Stroustrups's "The C++ Programming Language", which is the C++ equivalent of K&R for C. https://www.amazon.com/C-Programming-Language-4th/dp/0321563840 It's not cheap, but its the bible of C++. Stroustrup invented it after all.

I lost my copy of K&R a long time ago. My version was pre-ANSI, which meant that there was no void, and no function prototypes, among other things, and function definitions looked like
C
foo(x, y)
int x;
int y;
{
   /* function body */
}
I'd be willing to bet even K&R that old explained the difference between "pass by value" and "pass by reference" i.e the difference between making a copy of an object and passing that to the function (pass by value, possibly expensive), and passing a pointer to a an object (pass by reference, usually cheap. But at least in C may lead to off-by-one and other assorted bugs. NB. An array is always passed by reference.). In C++ we have references. [Reference declaration - cppreference.com]
(https://en.cppreference.com/w/cpp/language/reference)
Keep Calm and Carry On

GeneralMessage Closed Pin
10-May-23 9:54
Member 1496877110-May-23 9:54 
GeneralRe: another "everybody knows that " question on C++ Pin
k505410-May-23 10:31
mvek505410-May-23 10:31 
GeneralRe: another "everybody knows that " question on C++ Pin
jschell11-May-23 4:57
jschell11-May-23 4:57 
GeneralRe: another "everybody knows that " question on C++ Pin
harold aptroot10-May-23 10:39
harold aptroot10-May-23 10:39 
GeneralMessage Closed Pin
10-May-23 11:26
Member 1496877110-May-23 11:26 
GeneralRe: another "everybody knows that " question on C++ Pin
Richard MacCutchan10-May-23 21:46
mveRichard MacCutchan10-May-23 21:46 
AnswerRe: another "everybody knows that " question on C++ Pin
jschell11-May-23 5:10
jschell11-May-23 5:10 
GeneralMessage Closed Pin
11-May-23 6:32
Member 1496877111-May-23 6:32 
GeneralRe: another "everybody knows that " question on C++ Pin
Richard MacCutchan11-May-23 9:05
mveRichard MacCutchan11-May-23 9:05 
RantMessage Closed Pin
12-May-23 9:35
Member 1496877112-May-23 9:35 
GeneralRe: another "everybody knows that " question on C++ Pin
OriginalGriff12-May-23 23:32
mveOriginalGriff12-May-23 23:32 
GeneralRe: another "everybody knows that " question on C++ Pin
jschell12-May-23 9:36
jschell12-May-23 9:36 
QuestionMessage Closed Pin
8-May-23 6:28
Member 149687718-May-23 6:28 
AnswerRe: C++ for loop syntax ? Pin
CPallini8-May-23 8:02
mveCPallini8-May-23 8:02 
AnswerRe: C++ for loop syntax ? Pin
Richard MacCutchan8-May-23 21:46
mveRichard MacCutchan8-May-23 21:46 
GeneralMessage Closed Pin
9-May-23 7:13
Member 149687719-May-23 7:13 
GeneralRe: C++ for loop syntax ? Pin
Richard MacCutchan9-May-23 10:11
mveRichard MacCutchan9-May-23 10:11 

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.