Can't find calculator01.cpp from PPP example code - c++

the books says to run calculator01.cpp but I can't find it anywhere.
I've tried Where is Bjarne C++ PPP book calculator example code?
but gives me Forbidden access when accessing it.
The chapter is chapter 6.

You can download all the code from the book at Stroustrup's site as well, at:
https://stroustrup.com/Programming/code.tar
The filenames are based on the chapter names, not the names in the text; so for calculator01.cpp, which appears at the beginning of section 6.7, you'd be looking in the code/Chapter06 folder for chapter6.7.cpp - this would be identical to calculator01.cpp.
(The code.tar file above is technically for the first edition of the book, not the second; however, aside from typo corrections, chapters 6.6 and 6.7 are identical in both editions. So this particular bit of code works with either edition.)

Related

Why is there no information about Int in the documentation for OCaml (4.07.0)?

I'm a newbie to the OCaml language, I am currently watching .
There is an example that uses Int.descending , but I didn't find the relevant information in the documentation (4.07.0). I only saw Int32 and Int64.
Where can I find documentation about Int.descending And its other properties.
You cannot find Int.descending just because it is not in the standard library of OCaml.
My guess is that you are looking a code using Jane Street's Base library which has descending:
https://github.com/janestreet/base/blob/dee8d637af902a92c739df7f3f8bc4d715c9d35d/src/comparable_intf.ml

How to track newer C++ std documents of given topic?

Following is a C++ std document. The document number is N3721, which superseded the older N3634.
Obviously, it's easy to track older documents of given topic.
However, my question is:
How to track newer documents of given topic?
For example, if N3721 is superseded by a newer document, how to track the newer one?
For the newer proposals (ones that start with the letter P) you can use wg21.link redirect service to obtain the latest document:
wg21.link - WG21 redirect service.
Usage:
wg21.link/nXXXX
wg21.link/pXXXXrX
Get paper.
wg21.link/pXXXX
Get latest public revision of paper.
wg21.link/std
wg21.link/std{11,14,17}
Get working draft.
wg21.link/cwgXXX
wg21.link/ewgXXX
wg21.link/lwgXXX
wg21.link/lewgXXX
wg21.link/fsXXX
wg21.link/editXXX
Get issue.
wg21.link/pXXXX/issue
Get issue for paper.
wg21.link/*wgXXX/paper
Get paper for issue.
wg21.link/index.json
wg21.link/index.ndjson
wg21.link/index.txt
wg21.link/specref.json
Get everything.
wg21.link/
Get usage.
wg21.link/<something else>
Get 404.
If you're Slackbot or Twitterbot:
Get OpenGraph metadata instead.
For example for P0476: Bit-casting object representations if we use wg21.link/P0476 we obtain the latest version which is P0476R2.
In my answer to How does the standards committee indicate the status of a paper under consideration? I go into more details of the WG21 site and what documents you can find there.
Use the everything link for Pre P proposals
If we use the wg21 redirect service Get Everything link we can do a text search for the paper title. So for your example Improvements to std::future<T> and Related APIs we can see the last document is N3857:
"N3857": {
"type": "paper",
"title": "Improvements to std::future and Related APIs",
"subgroup": "Concurrency",
"author": "N. Gustafsson, A. Laksberg, H. Sutter, S. Mithani",
"long_link": "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3857.pdf",
"link": "https://wg21.link/n3857",
"source": "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/",
"date": "2014-01-16"
},

Stata - r-class command - Guidance

Is there anybody who could give me a first hint on how to program an r-class command in Stata? Also a helpful link containing instructions or guidance would be useful.
The original and in many ways best introduction is in the later chapters of the User's Guide. That's bundled with Stata as a .pdf. See also Kit Baum's text http://www.stata.com/bookstore/stata-programming-introduction/

Trying to find a syntax highlighter for ColdFusion in Notepad++

I use CFEclipse for most of my projects and heavy lifting but sometimes I find the need to do a quick fix on pages outside the project scope that is easier to accomplish in a simple text editor.
I have googled but can't seem to find an answer so either a link to a download or a link to how to build my own would be awesome. thanks.
Update: Brien Malone's answer below along with charlie arehart's comments are what people should use at this point as nppColdFusion is no longer maintained as of 23 Sept 2011.
Disregard
nppColdFusion is actively maintained
In notepadd ++, go to 'Plugins'> 'Plugin Manager'> 'show plugin manager'. 'Coldfusion Lexer' is listed as available plugin
This question is a few years old now, and unfortunately, the accepted answer involving nppColdFusion is no longer valid because the plug-in doesn't work with NP++ after version 5.x.x and is not being maintained. (It stopped working when Notepad++ switched their plug-in hooking mechanism in version 6.x.x)
The Notepad++ site points to a library of nearly every language highlighter available:
http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files
ColdFusion (specifically CF9) is listed:
http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_CF9.xml
It's not as good as a full plug-in like nppColdFusion, but it is better than pages of black text.
Just a comment about Tony's answer (Aug 22 '14 at 13:00) : he wrote "In notepadd ++, go to 'Plugins'> 'Plugin Manager'> 'show plugin manager'."
However, in ver. 6.8 (maybe since before), there's no "Plugins" menu item on the menu bar. What I had to do is:
1- From the User Defined Language Page
http://docs.notepad-plus-plus.org/index.php?title=User_Defined_Language_Files
Download the ColdFusion User Defined Language file
http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_CF9.xml
Into the Notepad++ Folder
2- From the User Defined Language panel, import that file:
Language > Define your language... then press the Import button
ColdFusion will then appear at the bottom of the Language menu item selection list, and NotePad++ will automatically use it for any .CF file you open.
This link might help: http://howardscholz.wordpress.com/2007/06/01/notepad-support-for-coldfusion-8/
Disclaimer: I haven't tried it myself.
I found that nppColdFusion was working well, until I updated NP++ to version 7.6.6. I have tried just about everything to get it working, but to no avail.
I tried Delire Web's solution and it worked perfectly.
The different formatting (font and background colors) takes a bit of getting used to though.

funny looking comments - c++

when i read through source files of opensource projects i often come across some weird phrases in the comments
/*
#brief ......
#usage.....
#remarks....
#par....
*/
questions
1.What are they?(were not mentioned when i was learning c++)
2.Do they have any documentation(where)
They are just comments and as such have no special meaning in C++. They are probably to allow a documentation generator (For example Doxygen) to extract the data from the comments.
Those are for some flavour of automatic documentation generator. Another program runs through the code looking for comments of like you see there. The #... keywords identify how the documentation should be laid out, and that program generates pretty HTML or printed documentation directly from the source code. It's a way to keep the docs up-to-date with the code more easily.