piglove06 / piglove06 Goto Github PK
View Code? Open in Web Editor NEW코딩 코칭.
코딩 코칭.
/*
15.10.12
c++ 동적할당
16:05분 코딩시작 16분끝
using namespace std;
int mian() {
int *a;
int length;
cout << "동적할당 배열길이 입력하세요 ";
cin >> length;
a = new int[length];
for (int i = length - 1; i >= 0; i--) {
a[i] = i;
if (i == length) {
cout << "배열값은 ";
}
cout << "\t" << a[i];
}
free(a);
}
/*
15.10.12
c 동적할당
15:43분 코딩시작 57분 끝
int main() {
int *a; //c언어때 malloc 사용, 동적할당 변수선언시 포인터로 한다.
int length;
printf("동적할당 배열길이 입력하세요 ");
scanf_s("%d", &length);
a = (int*)malloc(sizeof(int) * length); //변수선언시 포인터로 하고 sizeof로 타입의 크기를 알아낸 후 배열길이를 곱해준다.
for (int i = length-1; i >= 0; i--) {
a[i] = i;
if (i == length) {
printf("배열값은 ");
}
printf("\t%d", a[i]);
}
free(a);
printf("\n");
//while (1);
system("pause");
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.