Click here to Skip to main content
15,563,981 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 11:49
jackngill11-Jan-21 11:49 
QuestionRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
David Crow11-Jan-21 17:36
David Crow11-Jan-21 17:36 
AnswerRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill11-Jan-21 23:25
jackngill11-Jan-21 23:25 
AnswerRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan11-Jan-21 23:36
mveRichard MacCutchan11-Jan-21 23:36 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill11-Jan-21 23:58
jackngill11-Jan-21 23:58 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan12-Jan-21 0:09
mveRichard MacCutchan12-Jan-21 0:09 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill12-Jan-21 0:15
jackngill12-Jan-21 0:15 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan12-Jan-21 0:55
mveRichard MacCutchan12-Jan-21 0:55 
You have another function inside main, which is also wrong:
C++
int echo(){
    char input[80];

Each function must stand alone in the main part of the source file:
C++
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 10:46
jackngill12-Jan-21 10:46 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan12-Jan-21 22:32
mveRichard MacCutchan12-Jan-21 22:32 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill13-Jan-21 6:24
jackngill13-Jan-21 6:24 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan13-Jan-21 2:50
mveRichard MacCutchan13-Jan-21 2:50 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill13-Jan-21 6:26
jackngill13-Jan-21 6:26 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan13-Jan-21 6:36
mveRichard MacCutchan13-Jan-21 6:36 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill14-Jan-21 13:04
jackngill14-Jan-21 13:04 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill16-Jan-21 0:59
jackngill16-Jan-21 0:59 
QuestionMFC: Most recently used (MRU) files Pin
Member 1325158810-Jan-21 19:18
Member 1325158810-Jan-21 19:18 
AnswerRe: MFC: Most recently used (MRU) files Pin
Victor Nijegorodov10-Jan-21 22:28
Victor Nijegorodov10-Jan-21 22:28 
GeneralRe: MFC: Most recently used (MRU) files Pin
Member 1325158810-Jan-21 23:11
Member 1325158810-Jan-21 23:11 
GeneralRe: MFC: Most recently used (MRU) files Pin
Victor Nijegorodov11-Jan-21 0:09
Victor Nijegorodov11-Jan-21 0:09 
QuestionReading the Whole Array of Data from JSON Pin
Litu Sahoo10-Jan-21 5:55
Litu Sahoo10-Jan-21 5:55 
QuestionRe: Reading the Whole Array of Data from JSON Pin
David Crow10-Jan-21 6:32
David Crow10-Jan-21 6:32 
AnswerRe: Reading the Whole Array of Data from JSON Pin
Litu Sahoo10-Jan-21 7:21
Litu Sahoo10-Jan-21 7:21 
QuestionRe: Reading the Whole Array of Data from JSON Pin
David Crow10-Jan-21 10:05
David Crow10-Jan-21 10:05 
GeneralRe: Reading the Whole Array of Data from JSON Pin
Victor Nijegorodov10-Jan-21 10:57
Victor Nijegorodov10-Jan-21 10: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.