マイホーム・マイチルドケア

マイホームと育児と日常

2020-01-01から1年間の記事一覧

C sample

//テキストファイルの文書を置換するコード #include <stdio.h> //FILE構造体, fopen, fclose, fgetc, fgets, fseekで使用 #include <stdlib.h> //malloc, freeで使用 #include <string.h> int fgsds(char **buf, const char *fname, int lines, int *len); int fgl(const char *fname); i</string.h></stdlib.h></stdio.h>…

vba sample

Option VBASupport 1 REM ***** BASIC ***** Sub Main Dim xlLastRow As Long 'Excel自体の最終行 Dim LastRow As Long '最終行 Dim i As Integer Dim j As Integer Dim s As String Dim RowAfterAdd As Long Dim Cellnum() As Long xlLastRow = Cells(Rows.…