forked from CalvinNeo/CFortranTranslator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
21 lines (20 loc) · 862 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**********************************************************************/
/* File: */
/* Author: */
/* This codes is generated by CFortranTranslator */
/* CFortranTranslator is published under GPL license */
/* refer to https://github.com/CalvinNeo/CFortranTranslator/ for more */
/**********************************************************************/
#include "../for90std/for90std.h"
#define USE_FORARRAY
int main()
{
forprintfree("hello, world!");
forprintfree( formap([&](int x) {return x + 1; }, 1) );
farray<int> a({ 1 }, { 3 });
a = make_init_list({1, 2, 3});
forprintfree(formap([&](int x) {return x + 1; }, 1));
forprintfree(formap([&](int x) {return x + 1; }, a));
stop();
return 0;
}