Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDebuggung question Pin
Michael Martin5-Jul-01 17:30
professionalMichael Martin5-Jul-01 17:30 
Questionwhere is the mouse? Pin
Alex Griffing5-Jul-01 15:04
Alex Griffing5-Jul-01 15:04 
AnswerRe: where is the mouse? Pin
Tomasz Sowinski5-Jul-01 23:52
Tomasz Sowinski5-Jul-01 23:52 
GeneralHTTP Post Question Pin
Cabadam5-Jul-01 14:27
Cabadam5-Jul-01 14:27 
Generalifstream question Pin
5-Jul-01 13:10
suss5-Jul-01 13:10 
GeneralRe: ifstream question Pin
Christian Graus5-Jul-01 13:22
protectorChristian Graus5-Jul-01 13:22 
GeneralRe: ifstream question Pin
5-Jul-01 13:25
suss5-Jul-01 13:25 
Generalbasic c/c++ question (const related) Pin
Alex Griffing5-Jul-01 12:12
Alex Griffing5-Jul-01 12:12 
I'd just like to make sure of something that I'm kind of worried about.

This is not ok:
char *Foo() {
char ret[100] = "hello";
return ret;
}

This is not ok:
char *Foo() {
char ret[100] = "hello";
return ret;
}

This is ok:
const char *Foo() {
return "hello world";
}

main() {
printf(Foo());
}

Is this right?
Thanks!

GeneralRe: basic c/c++ question (const related) Pin
5-Jul-01 18:20
suss5-Jul-01 18:20 
GeneralRe: basic c/c++ question (const related) Pin
Malcolm McMahon5-Jul-01 22:35
Malcolm McMahon5-Jul-01 22:35 
GeneralProcess Directory Pin
John Uhlenbrock5-Jul-01 11:26
John Uhlenbrock5-Jul-01 11:26 
GeneralRe: Process Directory Pin
Christian Graus5-Jul-01 12:15
protectorChristian Graus5-Jul-01 12:15 
GeneralRe: Process Directory Pin
John Uhlenbrock5-Jul-01 12:18
John Uhlenbrock5-Jul-01 12:18 
GeneralRe: Process Directory Pin
Christian Graus5-Jul-01 12:28
protectorChristian Graus5-Jul-01 12:28 
GeneralRe: Process Directory Pin
John Uhlenbrock5-Jul-01 12:32
John Uhlenbrock5-Jul-01 12:32 
GeneralRe: Process Directory Pin
Tim Deveaux5-Jul-01 13:28
Tim Deveaux5-Jul-01 13:28 
GeneralRe: Process Directory Pin
John Uhlenbrock5-Jul-01 13:30
John Uhlenbrock5-Jul-01 13:30 
GeneralRe: Process Directory Pin
Tim Deveaux5-Jul-01 13:40
Tim Deveaux5-Jul-01 13:40 
GeneralRe: Process Directory Pin
Mike Burston5-Jul-01 14:30
Mike Burston5-Jul-01 14:30 
GeneralRe: Process Directory Pin
Kannan Kalyanaraman5-Jul-01 23:10
Kannan Kalyanaraman5-Jul-01 23:10 
GeneralRe: Process Directory Pin
Mike Burston5-Jul-01 13:36
Mike Burston5-Jul-01 13:36 
GeneralRe: Process Directory Pin
Carlos Antollini5-Jul-01 12:36
Carlos Antollini5-Jul-01 12:36 
GeneralRe: Process Directory Pin
#realJSOP6-Jul-01 4:54
professional#realJSOP6-Jul-01 4:54 
GeneralRe: Everyone. Pin
John Uhlenbrock9-Jul-01 7:05
John Uhlenbrock9-Jul-01 7:05 
GeneralSimulate a carriage return Pin
RobJones5-Jul-01 10:12
RobJones5-Jul-01 10:12 

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.