Click here to Skip to main content
15,886,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: file not recognized: File format not recognized Pin
Vaclav_29-Jan-20 6:44
Vaclav_29-Jan-20 6:44 
GeneralRe: file not recognized: File format not recognized Pin
Vaclav_29-Jan-20 6:58
Vaclav_29-Jan-20 6:58 
GeneralRe: file not recognized: File format not recognized Pin
k505429-Jan-20 7:15
mvek505429-Jan-20 7:15 
GeneralRe: file not recognized: File format not recognized Pin
Vaclav_29-Jan-20 15:39
Vaclav_29-Jan-20 15:39 
Questionreplace words in a file Pin
Member 1295754729-Jan-20 4:19
Member 1295754729-Jan-20 4:19 
AnswerRe: replace words in a file Pin
Victor Nijegorodov29-Jan-20 5:30
Victor Nijegorodov29-Jan-20 5:30 
GeneralRe: replace words in a file Pin
Member 1295754729-Jan-20 5:34
Member 1295754729-Jan-20 5:34 
GeneralRe: replace words in a file Pin
k505429-Jan-20 5:52
mvek505429-Jan-20 5:52 
Member 12957547 wrote:
because I do not know how many items get from the CLI

Yes, you do, or at least main() does.
C
int main(int argc, char **argv)
argc is the number of arguments passed to main, and argv is an array of strings containing the command line arguments. Remeber that argv[0] is the program name, so argc is always > 0.

The following will print all the command line arguments
C
#include <stdio>

int main(int argc, char **argv)
{
    for(int i = 0; i < argc; ++i)
        printf("argv[%d] = \"%s\"\n", i, argv[i];
    return0;
}

AnswerRe: replace words in a file Pin
k505429-Jan-20 5:42
mvek505429-Jan-20 5:42 
SuggestionRe: replace words in a file Pin
David Crow29-Jan-20 17:04
David Crow29-Jan-20 17:04 
AnswerRe: replace words in a file Pin
Stefan_Lang29-Jan-20 21:21
Stefan_Lang29-Jan-20 21:21 
QuestionLinking libraries - follow-up- gcc++ won't link Pin
Vaclav_28-Jan-20 4:22
Vaclav_28-Jan-20 4:22 
AnswerRe: Linking libraries - follow-up- gcc++ won't link Pin
Richard MacCutchan28-Jan-20 5:04
mveRichard MacCutchan28-Jan-20 5:04 
AnswerRe: Linking libraries - follow-up- gcc++ won't link Pin
k505428-Jan-20 5:08
mvek505428-Jan-20 5:08 
AnswerRe: Linking libraries - follow-up- gcc++ won't link Pin
CPallini28-Jan-20 5:13
mveCPallini28-Jan-20 5:13 
GeneralRe: Linking libraries - follow-up- gcc++ won't link Pin
k505428-Jan-20 6:47
mvek505428-Jan-20 6:47 
GeneralRe: Linking libraries - follow-up- gcc++ won't link Pin
CPallini28-Jan-20 9:52
mveCPallini28-Jan-20 9:52 
AnswerRe: Linking libraries - follow-up- gcc++ won't link Pin
Vaclav_28-Jan-20 7:07
Vaclav_28-Jan-20 7:07 
GeneralRe: Linking libraries - follow-up- gcc++ won't link Pin
Richard MacCutchan28-Jan-20 9:22
mveRichard MacCutchan28-Jan-20 9:22 
AnswerSOLVED (?) Re: Linking libraries - follow-up- gcc++ won't link Pin
Vaclav_29-Jan-20 4:00
Vaclav_29-Jan-20 4:00 
GeneralRe: SOLVED (?) Re: Linking libraries - follow-up- gcc++ won't link Pin
Richard MacCutchan29-Jan-20 4:16
mveRichard MacCutchan29-Jan-20 4:16 
QuestionReverse engineering GCC output - need library file (name) and path. Pin
Vaclav_27-Jan-20 5:34
Vaclav_27-Jan-20 5:34 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
Gerry Schmitz27-Jan-20 5:55
mveGerry Schmitz27-Jan-20 5:55 
GeneralRe: Reverse engineering GCC output - need library file (name) and path. Pin
Vaclav_28-Jan-20 2:44
Vaclav_28-Jan-20 2:44 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
Richard MacCutchan27-Jan-20 6:09
mveRichard MacCutchan27-Jan-20 6:09 

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.