mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
examples: Added 'Interesting' tag to examples
* Added //! [Interesting] tag to all examples which were missing this * Removed windows CR/LF * Removed pointers from examples since these are not needed. Removed try/catch which seems to be there only to handle failing pointers and return value from main. * Reformatted examples when the formatting was wonky/inconstant. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -49,6 +49,7 @@ void stop()
|
||||
|
||||
int main()
|
||||
{
|
||||
//! [Interesting]
|
||||
long id = 0; // Sample number
|
||||
string fileName = "./ads1015.data"; // Output filename
|
||||
ofstream f;
|
||||
@ -97,6 +98,7 @@ int main()
|
||||
return 1;
|
||||
}
|
||||
cout << "Wrote " << id << " samples to file: " << fileName << endl;
|
||||
//! [Interesting]
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user