This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
// Implicit type casting | |
float test_function(void) { | |
uint16_t a = 30; | |
float b = 10.4; | |
return a + b; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The build target | |
TARGET = assignment1 | |
# the compiler: gcc for C program, define as g++ for C++ | |
CC = clang++ | |
# compiler flags: | |
# -g - this flag adds debugging information to the executable file | |
# -Wall - this flag is used to turn on most compiler warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cayenne Low-power Payload Library | |
* | |
* @author Pasakorn Tiwatthanont | |
* @email [email protected] | |
* | |
* @link https://htmlcheatsheet.com/js/ | |
*/ | |
// console.log('Node.js version: ' + process.version) | |
format = require('string-format') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2007, Swedish Institute of Computer Science. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright |