https://herbsutter.com/2008/01/01/gotw-88-a-candidate-for-the-most-important-const/
Q: what about this (see below ) ? ... because I do shit like this all the time:
(for const Suburb& suburb : thing.getSuburbList())
{
}
https://herbsutter.com/2008/01/01/gotw-88-a-candidate-for-the-most-important-const/
Q: what about this (see below ) ? ... because I do shit like this all the time:
(for const Suburb& suburb : thing.getSuburbList())
{
}
| // pick a good fft size for fftw (of the form 2^a * 3^b * 5^c * 7^d * [1|11|13] ) | |
| int selectFFTSize(int n) | |
| { | |
| int s = 1; | |
| for(int ef : {1, 11, 13}) { | |
| for(int d = 1 ; d <= n; d *= 7) { | |
| for(int c = 1; c <= n; c *= 5) { | |
| for(int b = 1; b <= n; b *= 3) { |
| #ifndef UGLYPLOT_H | |
| #define UGLYPLOT_H | |
| #include <iostream> | |
| #include <cmath> | |
| class UglyPlot | |
| { | |
| public: | |
| static void plot(const double* p, int length) |
| Mr Mrs | |
| Ms | |
| Miss | |
| Dr | |
| Herr | |
| Monsieur | |
| Hr | |
| Frau | |
| - | |
| A V M |
| "quince" | |
| "apple" | |
| "bananna" | |
| "cherry" | |
| "" |
| class FrequencyDoubler | |
| { | |
| public: | |
| FrequencyDoubler() { | |
| coeffs = ReSampler::makeHilbert(1001); | |
| length = coeffs.size(); | |
| history.resize(length); | |
| centerTap = length / 2; | |
| currentIndex = length - 1; | |
| } |
| VAR = foobar => Assign value to variable when qmake is run | |
| $$VAR => QMake variable's value at the time qmake is run | |
| $${VAR} => QMake variable's value at the time qmake is run (identical but enclosed to separate from surrounding text) | |
| $(VAR) => Contents of an Environment variable at the time Makefile (not qmake) is run | |
| $$(VAR) =>Contents of an Environment variable at the time qmake (not Makefile) is run |