- 博客(9)
- 收藏
- 关注
转载 为Fortran或者C编写简单的Makefile文件
贴一些网址:http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/简单为C写makefilehttps://docs.oracle.com/cd/E19205-01/819-5263/aevog/index.html这是对fortan中编译时会出现的mod文件做的说明,其主要观点是当编译一个module时不仅会生成....
2019-04-05 18:14:34 2319
原创 fortran中open中可以使用已定义的字符串变量,关键是不能省略file=
program main implicit none integer,parameter :: number=160 integer,parameter :: lanzhou=138 integer,parameter :: byear=1951!the beginning integer,parameter :: cyear=201...
2019-03-06 18:54:28 718
翻译 线性代数:矩阵的四种乘法
AB=C shape: A mxn , B nxp, C mxp1、Cij=(row i of A)* (column j of B)2、Matrix A times every column of BA[b1 ... bp]=[Ab1 ... Abp]3、Every row of A times matrix B[row i of A] B= [row i of AB]...
2019-02-18 12:51:38 1727
翻译 C++下标运算符重载的一些理解
重载二维数组时,调用时如a[1][2], 其实质应该是:(假设数组类型为int)a.operator[](1)返回int*,int*作为行指针调用(int*)[2],达到目的。分享mooc郭炜老师的一道题目:(关于三维数组下标符重载)#include <iostream>#include <iomanip> #include <cstring>...
2019-02-03 11:18:34 1626
翻译 C++复制构造函数起作用的三种情况
复制构造函数起作用的三种情况:1、当用一个对象去初始化另一个对象时Complex c1(c2)Complex c1=c2;//初始化语句非赋值语句2、如果某一个函数是类A的对象,那么该函数被调用时类A的复制构造函数会被调用class A{ public: A() {}; A(A& a) { cout<<...
2019-01-27 22:14:01 886
原创 Fortran : sign
program mainimplicit noneif (-0.0 == 0.0) write(*,*) "for other manipulations they are indentical "! don't do such thing for real variablesif (sign(2.0, -0.0) < sign(2.0, 0.0)) write (*,*)"for...
2018-11-20 15:15:11 2435
原创 Fotran intrinsic procedures : time
学习内部函数的目的:内部函数提供了一些基本的操作,甚至一些操作只能通过内部函数来实现。program main implicit none !call date_and_time([date] [,time] [,zone] [,values]) !date a string of length 8 or more , form ccyymmdd(yyyymm...
2018-11-19 17:17:14 134
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人