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 <stdio.h> | |
| #include <math.h> | |
| #include <float.h> | |
| #define EPSILON 0.01 | |
| float func(float x) | |
| { | |
| return powf(x, 4) + 5 * x - 7; | |
| } |
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 <stdio.h> | |
| void main(void) | |
| { | |
| FILE* file = fopen("table.txt", "w"); | |
| int i; | |
| fprintf(file, "+-----+-----+\n"); | |
| fprintf(file, "+- 1 -+- 2 -+\n"); | |
| fprintf(file, "+-----+-----+\n"); |
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 <stdio.h> | |
| float func(float x) | |
| { | |
| return x * 2 + 10; | |
| } | |
| void main(void) | |
| { | |
| FILE* file = fopen("table.txt", "w"); |
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
| -- Standard awesome library | |
| local gears = require("gears") | |
| local awful = require("awful") | |
| awful.rules = require("awful.rules") | |
| require("awful.autofocus") | |
| -- Widget and layout library | |
| local wibox = require("wibox") | |
| -- Theme handling library | |
| local beautiful = require("beautiful") | |
| -- Notification library |
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
| title: MyTitle |
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
| /* | |
| author: [email protected] | |
| date : 23/feb/2013 | |
| LICENSE: NO RESTRICTIONS, NO WARRANTIES | |
| */ | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <math.h> |
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 <fstream> | |
| #include <iostream> | |
| #include <string> | |
| int main() | |
| { | |
| std::ifstream in("input.txt", std::ios::in); | |
| std::ofstream out("output.txt", std::ios::out); | |
| if(in) |
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 <fstream> | |
| #include <iostream> | |
| #include <locale> | |
| #include <sstream> | |
| class FileModifier | |
| { | |
| std::string mFilename; | |
| public: |
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 <boost/utility.hpp> | |
| #include <boost/type_traits.hpp> | |
| #include <boost/preprocessor/punctuation/comma_if.hpp> | |
| #include <boost/preprocessor/repetition/repeat.hpp> | |
| #define ENTITY_MAX_COMPONENT_COUNT 10 | |
| #define ENTITY_TYPENAMES(z, n, text) BOOST_PP_COMMA_IF(n) text##n |
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 <boost/function.hpp> | |
| #include <boost/utility.hpp> | |
| #include <boost/type_traits.hpp> | |
| #include <boost/preprocessor/punctuation/comma_if.hpp> | |
| #include <boost/preprocessor/repetition/repeat.hpp> | |
| typedef float Real; | |
| typedef std::string String; |