- To compile & run your c program, open terminal and type in:
gcc -o myprogram file.c
./myprogram
Or you can execute both commands in a single go by joining them with a;
. For example,gcc -o myprogram file.c; ./myprogram
- Some info on data types & printing data types here.
- Template for a C file:
#include
This file contains hidden or 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> | |
#include <armadillo> | |
#include <stdlib.h> | |
#include <omp.h> | |
#include <mlpack/methods/ann/convolution_rules/border_modes.hpp> | |
#include <mlpack/methods/ann/convolution_rules/naive_convolution.hpp> | |
using namespace std; | |
using namespace arma; |