Click here to Skip to main content
14,934,560 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill11-Jan-21 10:49
Memberjackngill11-Jan-21 10:49 
QuestionRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
David Crow11-Jan-21 16:36
MemberDavid Crow11-Jan-21 16:36 
AnswerRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill11-Jan-21 22:25
Memberjackngill11-Jan-21 22:25 
AnswerRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan11-Jan-21 22:36
mveRichard MacCutchan11-Jan-21 22:36 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill11-Jan-21 22:58
Memberjackngill11-Jan-21 22:58 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan11-Jan-21 23:09
mveRichard MacCutchan11-Jan-21 23:09 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill11-Jan-21 23:15
Memberjackngill11-Jan-21 23:15 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan11-Jan-21 23:55
mveRichard MacCutchan11-Jan-21 23:55 
You have another function inside main, which is also wrong:
int echo(){
    char input[80];

Each function must stand alone in the main part of the source file:
int echo()
{
    // code for the echo function
}

int main()
{
    // code for main, including any calls to echo
}

And get rid of those goto statements, that is really bad practice in modern programming. As I suggested above, get a copy of K & R and spend time learning the language properly. Trying to learn by questions here will take ten times as long, and not be comprehensive.
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill12-Jan-21 9:46
Memberjackngill12-Jan-21 9:46 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan12-Jan-21 21:32
mveRichard MacCutchan12-Jan-21 21:32 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill13-Jan-21 5:24
Memberjackngill13-Jan-21 5:24 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan13-Jan-21 1:50
mveRichard MacCutchan13-Jan-21 1:50 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill13-Jan-21 5:26
Memberjackngill13-Jan-21 5:26 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan13-Jan-21 5:36
mveRichard MacCutchan13-Jan-21 5:36 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill14-Jan-21 12:04
Memberjackngill14-Jan-21 12:04 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill15-Jan-21 23:59
Memberjackngill15-Jan-21 23:59 
QuestionMFC: Most recently used (MRU) files Pin
Member 1325158810-Jan-21 18:18
MemberMember 1325158810-Jan-21 18:18 
AnswerRe: MFC: Most recently used (MRU) files Pin
Victor Nijegorodov10-Jan-21 21:28
MemberVictor Nijegorodov10-Jan-21 21:28 
GeneralRe: MFC: Most recently used (MRU) files Pin
Member 1325158810-Jan-21 22:11
MemberMember 1325158810-Jan-21 22:11 
GeneralRe: MFC: Most recently used (MRU) files Pin
Victor Nijegorodov10-Jan-21 23:09
MemberVictor Nijegorodov10-Jan-21 23:09 
QuestionReading the Whole Array of Data from JSON Pin
Litu Sahoo10-Jan-21 4:55
MemberLitu Sahoo10-Jan-21 4:55 
QuestionRe: Reading the Whole Array of Data from JSON Pin
David Crow10-Jan-21 5:32
MemberDavid Crow10-Jan-21 5:32 
AnswerRe: Reading the Whole Array of Data from JSON Pin
Litu Sahoo10-Jan-21 6:21
MemberLitu Sahoo10-Jan-21 6:21 
QuestionRe: Reading the Whole Array of Data from JSON Pin
David Crow10-Jan-21 9:05
MemberDavid Crow10-Jan-21 9:05 
GeneralRe: Reading the Whole Array of Data from JSON Pin
Victor Nijegorodov10-Jan-21 9:57
MemberVictor Nijegorodov10-Jan-21 9:57 

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.