Skip to content

Instantly share code, notes, and snippets.

View tinwritescode's full-sized avatar
🤒
Out sick

Tin Nguyen tinwritescode

🤒
Out sick
View GitHub Profile
#if defined _nex_ac_included
#else
#if defined _AntiCarTroll_included
public OnPlayerCarTroll(playerid, vehicleid, trolledid, trolltype) {
if(InDealer[playerid] > 0 || IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0) return 1;
if(ServerSystem[11] == 0 || StaffOnline() == 0) NightBot(playerid, "Trollcar");
else {
new string[180];
if(trolledid == INVALID_PLAYER_ID)
@tinwritescode
tinwritescode / validTriangle.cpp
Created November 15, 2019 11:01
validTriangle.cpp
/*
File: 19127582_C2.cpp
Author: Trung Tin Nguyen
Date: 15.11.2019
Course: CSC10001(19CLC6) - Nhập môn lập trình
Desc/Usage: Write a program that prompts the user to enter the squared lengths of three straight lines,
and then informs the user whether these lines form a valid triangle. Furthermore, if there is
a valid triangle, the program informs the user which type of triangle it is (normal,
equilateral, isosceles, right, 45°–45°–90°).
*/
@tinwritescode
tinwritescode / calculator.cpp
Created November 15, 2019 11:23
calculator.cpp
/*
File: 19127582_C4.cpp
Author: Trung Tin Nguyen
Date: 15.11.2019
Course: CSC10001(19CLC6) - Nhập môn lập trình
Desc/Usage: Write a program that prompts the user to enter two integers, a and b (b  0), and a character
that belongs to the set {+, -, *, /, %} (which denotes the arithmetic operators, addition,
subtraction, multiplication, division with decimal part, and modulus, respectively), and then
informs the user the result of corresponding arithmetic operations. Use switch-case only
*/
@tinwritescode
tinwritescode / anh_khoa.cpp
Created November 16, 2019 08:56
anh_khoa.cpp
/*
File: anh_khoa.cpp
Author: Trung Tin Nguyen
Date: 16.11.2019
Course: Unknown
Desc/Usage: Cho mảng a, cho x. Tìm ước của x trong mảng đó, xếp xuống cuối mảng.
*/
#define DEBUG
#include <iostream>
#include <cstring>
1. Nhận thông tin từ khách hàng ( lần 1 )
Nhóm cử đại diện lên gặp khách hàng để nhận thông tin, ghi chú lại và báo cáo lại cho nhóm lập trình.
Qua lần gặp khách hàng lần đầu tiên, Business Analyst (BA) đã nắm được cách lắp ráp các tầng đầu tiên, chi tiết về các khối, thứ tự lắp ráp, màu sắc cần lắp ráp.
Tuy nhiên phần giải thích của BA chưa rõ ràng và chưa thực sự hiểu ý của khách hàng dẫn đến nhiều tranh cãi trong quá trình thực hiện, cũng như chưa có sự hiểu ý giữa các thành viên
=> Sản phẩm còn nhiều sai sót.
=>Hoàn thành tương đối được 40%
2. Nhận thông tin từ khách hàng ( lần 2 )
BA đến gặp khách hàng và nhận thông tin mới, cũng như kiểm tra lại thông tin cũ. Qua tương tác với khách hàng, BA đã nhận ra lỗi của phần trước đó, và tiếp tục nhận thông tin mới từ các tầng tiếp theo.
BA đã giải thích lại cho nhóm hiểu rõ hơn và bắt đầu thực hiện trơn tru hơn, nhưng vẫn còn những chi tiết phụ và những tầng cuối BA vẫn chưa rõ ý kiến của khách hàng
=> Sản phẩm bước đầu đã sửa được các lỗi trước đó và không l
#include <iostream>
using namespace std;
struct Polynomial {
double a[100];
int n;
void Input() {
memset(a, 0, sizeof(a));
cout << "Nhap n: ", cin >> n;
for (int i = 0; i <= n; i++) {
#include <iostream>
#include <string>
using namespace std;
int max(int a, int b)
{
return a > b ? a : b;
}
string LCSubStr(string X, string Y, int m, int n)
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
struct Student {
int id{-1};
string name;
string gender;
double mark{ 0.0 };
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make",
"group": {
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",