Click here to Skip to main content
14,241,538 members

Managed C++/CLI

 
NewsC++/CLI support comes to ReSharper C++ Pin
John Schroedl23-Jul-18 6:22
professionalJohn Schroedl23-Jul-18 6:22 
QuestionTo find the angle of turn in a car racing game in C++/SFML Pin
Tarun Jha21-Jul-18 23:39
memberTarun Jha21-Jul-18 23:39 
AnswerRe: To find the angle of turn in a car racing game in C++/SFML Pin
John Schroedl23-Jul-18 6:41
professionalJohn Schroedl23-Jul-18 6:41 
GeneralRe: To find the angle of turn in a car racing game in C++/SFML Pin
Tarun Jha25-Jul-18 7:36
memberTarun Jha25-Jul-18 7:36 
QuestionSmall RAII-like cleanup class in C++/CLI Pin
John Schroedl15-Jun-18 9:08
professionalJohn Schroedl15-Jun-18 9:08 
QuestionInformation Edit Source code for c++ Pin
Member 1165875229-May-18 19:48
memberMember 1165875229-May-18 19:48 
AnswerRe: Information Edit Source code for c++ Pin
Richard MacCutchan29-May-18 21:05
protectorRichard MacCutchan29-May-18 21:05 
AnswerRe: Information Edit Source code for c++ Pin
Jochen Arndt30-May-18 2:55
mveJochen Arndt30-May-18 2:55 
I'm not going to write the complete edit function for you. But you already have most of the parts because editing can be implemented by selecting, reading, entering new data, deleting the old record, and inserting the edited data.

Quote:
Also it does not going back to main menu after adding a record.
Never call main() from within your code as done here in the record() function:
if (choice2=='n'||choice2=='N')
{
    system("cls");
    main();
}
Just return from the function (simply delete the above code block). Then execution continues after the function call in main(). Similar for the other functions where you call main() too.

To process the next operation you have to implement a loop in main() that gets and processes the next choice until the exit option is selected:
do
{
    printf("\nEnter your Choice here \t");
    scanf("%i",&choice);
    fflush(stdin);
    switch (choice)
    {
        // ...
    }
    system("cls");
} while (choice != 5);

Note also that this the wrong forum because this is about Managed C++/CLI as stated in the topmost (sticky) post. Please use the C / C++ / MFC Discussion Boards[^] or Ask a Question for further C/C++ related questions where the latter is the better choice when posting larger amounts of code (which should be avoided).
QuestionError On a Project I'm Working On. (Sorry If Not descriptive enough, 1st time) Pin
CyberFaggot9-May-18 15:53
memberCyberFaggot9-May-18 15:53 
AnswerRe: Error On a Project I'm Working On. (Sorry If Not descriptive enough, 1st time) Pin
Richard MacCutchan11-May-18 21:19
protectorRichard MacCutchan11-May-18 21:19 
QuestionPrint causes in afxtls.cpp Pin
Erich Ruth19-Apr-18 5:37
memberErich Ruth19-Apr-18 5:37 
AnswerRe: Print causes in afxtls.cpp Pin
Richard Andrew x6413-May-18 7:22
professionalRichard Andrew x6413-May-18 7:22 
QuestionWhat is the alternative of _kbhit_ in linux ? Pin
Tarun Jha16-Apr-18 4:04
memberTarun Jha16-Apr-18 4:04 
AnswerRe: What is the alternative of _kbhit_ in linux ? Pin
Maria Okta25-Jul-18 19:23
professionalMaria Okta25-Jul-18 19:23 
QuestionMore Than One Operator "+" Matches These Operands Pin
Paramu197313-Apr-18 5:26
memberParamu197313-Apr-18 5:26 
QuestionRe: More Than One Operator "+" Matches These Operands Pin
Richard MacCutchan13-Apr-18 5:51
protectorRichard MacCutchan13-Apr-18 5:51 
AnswerRe: More Than One Operator "+" Matches These Operands Pin
Paramu197313-Apr-18 6:05
memberParamu197313-Apr-18 6:05 
GeneralRe: More Than One Operator "+" Matches These Operands Pin
Richard MacCutchan13-Apr-18 6:40
protectorRichard MacCutchan13-Apr-18 6:40 
GeneralRe: More Than One Operator "+" Matches These Operands Pin
Paramu197313-Apr-18 14:18
memberParamu197313-Apr-18 14:18 
QuestionHow to access the ref class declared DataTable ? Pin
Paramu197311-Apr-18 21:10
memberParamu197311-Apr-18 21:10 
SuggestionRe: How to access the ref class declared DataTable ? Pin
Richard MacCutchan11-Apr-18 22:53
protectorRichard MacCutchan11-Apr-18 22:53 
GeneralRe: How to access the ref class declared DataTable ? Pin
Paramu197312-Apr-18 1:42
memberParamu197312-Apr-18 1:42 
GeneralRe: How to access the ref class declared DataTable ? Pin
Richard MacCutchan12-Apr-18 2:26
protectorRichard MacCutchan12-Apr-18 2:26 
GeneralRe: How to access the ref class declared DataTable ? Pin
Paramu197312-Apr-18 7:50
memberParamu197312-Apr-18 7:50 
QuestionString class using dynamic memory allocation Pin
Member 137677597-Apr-18 12:12
memberMember 137677597-Apr-18 12: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.