분류 전체보기
-
c_strC++ Builder/함수 2018. 12. 6. 22:06
#c_str string 문자열을 문자형 포인터로 변환하는데 사용된다.System.UnicodeString.c_str Up to Parent: UnicodeStringC++WideChar* c_str() const { return (Data)? Data: const_cast(L"");} PropertiesTypeVisibilitySourceUnitParentfunctionpublicustring.hSystemUnicodeStringDescriptionReturns a pointer to the underlying string data as const wchar_t*.c_str returns a wchar_t pointer to the location in memory where the value of t..
-
자료구조 윤성우 저 챕터5 1번문제 (자체 수정본)자료구조 2013. 4. 8. 06:54
NightDutyMain.c #include #include #include #include "CLinkedList.h" #include "Employee.h" Employee * WhosNightDuty(List * plist, char * name, int day); void ShowEmployeeInfo(Employee * emp); int main(void) { int i; Employee * pemp; // List의 생성 및 초기화 /////// List list; ListInit(&list); // 4명의 데이터 저장 /////// pemp = (Employee*)malloc(sizeof(Employee)); pemp->empNum = 11111; strcpy(pemp->name, "Terr..