ファイル名は
153Rxxxxxx-05-1.cpp
153Rxxxxxx-05-2.cpp
153Rxxxxxx-05-3.cpp
これらをzipで圧縮 -> 153Rxxxxxx-05.zip
function vimgitshow(){ | |
git show "$1" | vim -M -c 'set nomod' -c "file ${1##*/}" -c 'filetype detect' - | |
} |
cppソースの下書きとか お試しとか |
#include <stdio.h> | |
int pow_ten(int a) | |
{ | |
if(a<1) return 1; | |
int rtn = 1; | |
for(int i=0; i<a; i++){ | |
rtn *= 10; | |
} |
// | |
//問題1 (20点) | |
//入力された二つの整数のどちらが大きいか | |
//を表示するプログラムを作りなさい. | |
// | |
//ファイル名を学籍番号10桁-14-1.cppとする. | |
// | |
#include<stdio.h> | |
int main(int argc, char** argv) |
#include <stdio.h> | |
#include <math.h> | |
const int N = pow(10, 4); | |
struct Point | |
{ | |
double x; | |
double y; | |
double z; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
const char* month_db[] = { | |
"January", | |
"Feburuary", | |
"March", | |
"April", | |
"May", |
#include <stdio.h> | |
void input(char str1[], char str2[]) | |
{ | |
printf("文字列入力1:"); | |
scanf("%[^\n]", str1); | |
printf("文字列入力2:"); | |
scanf(" %[^\n]", str2); | |
} |
#include <stdio.h> | |
void print99() | |
{ | |
for(int i=1; i<10; i++){ | |
for(int j=1; j<10; j++){ | |
if(i*j%2){ | |
printf("[%2d] ", i*j); | |
}else{ | |
printf(" %2d ", i*j); |
#include<stdio.h> | |
int cubic(int x) | |
{ | |
return x*x*x; | |
} | |
int main(void) | |
{ | |
int x = 0; |