Erm...yeah :)
A Pen by Jamie Coulter on CodePen.
#include <iostream> | |
#include <math.h> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
class DocGia { | |
protected: | |
string hoTen; | |
string ngayLapThe; | |
int soThangHieuLuc; |
#include "LinkedList.h" | |
LinkedList::LinkedList(){ | |
this->length = 0; | |
this->pHead = NULL; | |
} | |
Node* LinkedList::CreateNode(int data) { | |
Node* p = new Node; | |
if (p != NULL) { | |
p->key = data; | |
p->pNext = NULL; |
Erm...yeah :)
A Pen by Jamie Coulter on CodePen.
#include <iostream> | |
#include <math.h> | |
#include <string> | |
using namespace std; | |
class Diem | |
{ | |
public: | |
void Nhap(); | |
void Xuat(); | |
float khoangCach(Diem b); |
import React from 'react' | |
import quest1 from './Q1'; | |
import Question from './Question'; | |
class QuestionPaper extends React.Component{ | |
constructor(props){ | |
super(props); | |
this.state={totalscore:0}; | |
} |
import React from 'react' | |
import quest1 from './Q1'; | |
class Question extends React.Component{ | |
constructor (props){ | |
super(props); | |
this.state ={ correctRecorded: false, incorrectRecorded: false}; | |
} | |
handleChange(event){ | |
var score = 0; |
#include "SingleLinkedList.h" | |
int CompareData(Data info1, Data info2) { | |
if (info1.x == info2.x) return 0; | |
else if (info1.x > info2.x) return 1; | |
return -1; | |
} | |
void InitList(List& l) { | |
l.pHead = l.pTail = NULL; | |
} | |
bool isEmptyList(List l) { |
#include "Ham.h" | |
int CheckLeap(int year){ | |
int leap; | |
if (year % 4 == 0 || (year % 4 == 0 && year % 100 != 0)) leap = 1; | |
else leap = 0; | |
return leap; | |
} | |
int DayInMonth(int month, int year){ | |
int nday; | |
switch (month) |
#include <stdio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
void CheckSST(float a, float b, float c) { | |
float aceil = ceilf(a*a*10)/10; | |
float bceil = ceilf(b*b*10)/10; | |
float cceil = ceilf(c*c*10)/10; | |
if (a==b && ceilf((a*a+b*b)*10)/10 == cceil) { | |
printf("Passed !\n"); | |
} |
#include <stdio.h> | |
void Process(int a){ | |
int n; | |
for (int i = 10; i <=a;){ | |
a = a/10; | |
} | |
printf("Chu so dau tien cua so a la : %d ", a); | |
} | |
void main() { | |
int a; |