Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to read command line arguments in vc++ Pin
_AnsHUMAN_ 14-Jul-09 21:31
_AnsHUMAN_ 14-Jul-09 21:31 
AnswerRe: How to read command line arguments in vc++ Pin
Rajesh R Subramanian14-Jul-09 21:32
professionalRajesh R Subramanian14-Jul-09 21:32 
AnswerRe: How to read command line arguments in vc++ Pin
CPallini14-Jul-09 21:39
mveCPallini14-Jul-09 21:39 
GeneralRe: How to read command line arguments in vc++ Pin
KASR114-Jul-09 22:24
KASR114-Jul-09 22:24 
AnswerRe: How to read command line arguments in vc++ Pin
Member 392263915-Jul-09 2:25
Member 392263915-Jul-09 2:25 
Questionhelp in modifying a code?[SOLVED] Pin
jon ray14-Jul-09 18:04
jon ray14-Jul-09 18:04 
AnswerRe: help in modifying a code? Pin
chandu00414-Jul-09 18:09
chandu00414-Jul-09 18:09 
AnswerRe: help in modifying a code? Pin
carter200014-Jul-09 18:28
carter200014-Jul-09 18:28 
Hi .
Is this what you want?

#include <direct.h>
#include <fstream>
#include <iostream>

using namespace std;

int main()
{	
    char root;
    char path[64];
    cin >> root;
    sprintf_s(path, "%c:/autorun.inf", root);
    _mkdir(path);	
    sprintf_s(path, "%s/protection.txt", path);
    ofstream output(path,ios::out);	
    output.close();	
    return 0;
}

GeneralRe: help in modifying a code? Pin
jon ray14-Jul-09 18:46
jon ray14-Jul-09 18:46 
GeneralRe: help in modifying a code? Pin
carter200014-Jul-09 18:59
carter200014-Jul-09 18:59 
GeneralRe: help in modifying a code? Pin
David Crow15-Jul-09 3:11
David Crow15-Jul-09 3:11 
Questioncommand buttons Pin
Member 59031014-Jul-09 17:46
Member 59031014-Jul-09 17:46 
AnswerRe: command buttons Pin
chandu00414-Jul-09 18:04
chandu00414-Jul-09 18:04 
GeneralRe: command buttons Pin
Member 59031014-Jul-09 18:09
Member 59031014-Jul-09 18:09 
GeneralRe: command buttons Pin
chandu00414-Jul-09 18:11
chandu00414-Jul-09 18:11 
GeneralRe: command buttons Pin
Member 59031014-Jul-09 18:12
Member 59031014-Jul-09 18:12 
GeneralRe: command buttons Pin
Member 59031014-Jul-09 18:12
Member 59031014-Jul-09 18:12 
AnswerRe: command buttons Pin
«_Superman_»14-Jul-09 19:53
professional«_Superman_»14-Jul-09 19:53 
QuestionBuffering incoming packets Pin
resolvequestion14-Jul-09 17:36
resolvequestion14-Jul-09 17:36 
AnswerRe: Buffering incoming packets Pin
«_Superman_»14-Jul-09 17:56
professional«_Superman_»14-Jul-09 17:56 
AnswerRe: Buffering incoming packets Pin
Richard Andrew x6414-Jul-09 20:05
professionalRichard Andrew x6414-Jul-09 20:05 
AnswerRe: Buffering incoming packets Pin
Stuart Dootson14-Jul-09 21:36
professionalStuart Dootson14-Jul-09 21:36 
GeneralRe: Buffering incoming packets Pin
resolvequestion15-Jul-09 3:30
resolvequestion15-Jul-09 3:30 
QuestionHow to read and display the height map from STL File? Pin
DevelopmentNoob14-Jul-09 15:44
DevelopmentNoob14-Jul-09 15:44 
AnswerRe: How to read and display the height map from STL File? Pin
DevelopmentNoob14-Jul-09 20:42
DevelopmentNoob14-Jul-09 20:42 

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.