• Class names start with an uppercase letter. All other identifiers start with a lowercase letter.
  • Starting an identifier with a single leading underscore indicates that the identifier is private.
  • Starting an identifier with two leading underscores indicates a strongly private identifier.
  • If the identifier also ends with two trailing underscores, the identifier is a language-defined special name.


'STUDY > Python' 카테고리의 다른 글

파이썬 디버깅(Debugging python)  (0) 2016.09.28
[Python] Reserved Words  (0) 2016.08.16


#include <stdio.h>

#include <direct.h>    // chdir


#ifndef _MAX_PATH

#define _MAX_PATH    260

#endif // _MAX_PATH


int main(){

char strBuffer[_MAX_PATH]={0,};

char strChangeDir[_MAX_PATH]={"..\\"};


char *pStrBuffer = NULL;

pStrBuffer = _getcwd(strBuffer, _MAX_PATH);

printf("Beginning path : %s\n", strBuffer);


int nResult = _chdir(strChangeDir);

if ( nResult == 0 ){

printf( "Successed\n" );

pStrBuffer = _getcwd(strBuffer, _MAX_PATH);

printf( "Ending path : %s\n", strBuffer);

} else {

perror( "Failed" );

}


return 0;

}







< 테스트 결과 (Result of test) >


#include <stdio.h>


#pragma warning(disable: 4996)


int main(){

FILE *pFile;

pFile = fopen("MakeAFile.txt", "w");

if ( pFile != NULL ){

fputs("fopen example", pFile);

fclose(pFile);

}


return 0;

}

+ Recent posts