Skip to content

Instantly share code, notes, and snippets.

View qvil's full-sized avatar

Taesu Hyeon qvil

View GitHub Profile
@qvil
qvil / teacher-appointment-exam-2017.c
Created November 5, 2017 12:04
teacher-appointment-exam-2017.c
#include <stdio.h>
void func(int *w, int *x, int *y, int *z);
void main()
{
int data[3] = {3, 70, 700};
int a, sum, *pa, *pb, *pc;
a = 6;
pa = &a;
pb = &data[0];
pc = data + 1;
@qvil
qvil / teacher-appointment-exam-2017.c
Last active November 5, 2017 11:35
teacher-appointment-exam-2017.c
#include <stdio.h>
#define SIZE 5
void func(int *, int);
int main(void)
{
int ary[SIZE] = {1, 7, 3, 9, 5};
func(ary, SIZE);
@qvil
qvil / teacher-appointment-exam-2010.c
Created June 28, 2017 09:42
Teacher appointment exam
#include <stdio.h>
void print_r(int a[], int n);
int main(void)
{
int a[] = {10, 20, 30, 40, 50};
print_r(a, 5);
return 0;
}
@qvil
qvil / teacher-appointment-exam-2011.c
Created June 28, 2017 09:38
Teacher appointment exam
#include <stdio.h>
int main(void)
{
int score[10] = {1, 2, 3, 4, 5};
int i, op = 2, sum = 0;
switch (op)
{
case 1:
for (i = 0; i < 10; i++)
@qvil
qvil / index.js
Created June 26, 2017 07:35
For react-tutorial
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
@qvil
qvil / App.js
Created June 26, 2017 07:16
For react-tutorial
import React from 'react';
import Header from './Header';
import Body from './Body';
const App = () => {
return (
<div>
<Header text="Hello World"/>
<Body number={3}/>
</div>
@qvil
qvil / Body.js
Created June 26, 2017 07:16
For react-tutorial
import React, { Component } from 'react';
class Body extends Component {
constructor(props) {
super(props);
this.state = {
number: 1
};
}
render() {
@qvil
qvil / Header.js
Created June 26, 2017 07:15
For react-tutorial
import React from 'react';
const Header = ({ text }) => {
return (
<div>
<h1>Header Props Text : {text}</h1>
</div>
);
};

리눅스 스크립트 치트시트