FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
libdiffpy/examples/testlib.cpp at main · diffpy/libdiffpy · GitHub
diffpy
libdiffpy
Repository navigation
Code
Issues
9
(9)
Pull requests
3
(3)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
libdiffpy
/
examples
/
testlib.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (16 loc) · 512 Bytes
Breadcrumbs
libdiffpy
/
examples
/
testlib.cpp
Copy path
File metadata and controls
19 lines (16 loc) · 512 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//
Test program for checking the installation of libdiffpy shared library.
//
Compile and run this code using:
//
//
c++ testlib.cpp -ldiffpy
//
./a.out
#
include
<
iostream
>
#
include
<
diffpy/srreal/ScatteringFactorTable.hpp
>
int
main
(
int
argc,
char
* argv[])
{
using
namespace
diffpy
::srreal
;
ScatteringFactorTablePtr ntbl;
ntbl =
ScatteringFactorTable::createByType
(
"
neutron
"
);
ntbl->
lookup
(
"
Pb
"
);
std::cout <<
"
Installation of libdiffpy shared library works!
\n
"
;
return
0
;
}
Back
|
FazBrowse Home
|
New Git URL