SW Study/기타 프로그래밍 학습 (4) 썸네일형 리스트형 C# 파일 이름 중복일 때 (N)으로 파일명 생성 #region FileUploadName : 파일업로드시 파일명 생성하기 - 동일 파일이 이미 존재할 경우 파일명(+count)로 생성 public string FileUploadName(String dirPath, String fileN) { string fileName = fileN; if (fileN.Length > 0) { int indexOfDot = fileName.LastIndexOf("."); string strName = fileName.Substring(0, indexOfDot); string strExt = fileName.Substring(indexOfDot); bool bExist = true; int fileCount = 0; string dirMapPath = string.Em.. Visual Studio C# 라이브러리 추가 도구 -> NuGet 패키지 관리자 -> 솔루션용 NuGet 패키지 관리 클릭 패키지 관리에서 원하는 라이브러리 검색, 설치 Vector 이용 #include #include #include using namespace std; class list { struct Num { char name[20]; char phone[20]; }; vector Nums; public: void Registerd() { char InName[20]; cin >> InName; Num *NewNum = new Num; strcpy(NewNum->name, InName); Nums.push_back(NewNum); } void listOut() { for (int i = 0; i Linked List //Linked List 구조 #include using namespace std; struct Node //노드 구조 { int val; Node * next; }; class Iterator //순회자 클래스 { public: Node * CurrentNode; void Next() //다음으로 이동 { CurrentNode = CurrentNode->next; } int PointVal() //가리키는 값 { return CurrentNode->val; } bool Compare(Iterator diffIter) //노드 비교 { // return CurrentNode != diffIt.CurrentNode; if (CurrentNode != diffIter.CurrentNode) return tr.. 이전 1 다음