Introduction
Introduction Statistics Contact Development Disclaimer Help
tyour_username.B.cpp - numeric - C++ library with numerical algorithms
git clone git://src.adamsgaard.dk/numeric
Log
Files
Refs
LICENSE
---
tyour_username.B.cpp (241B)
---
1 #include <iostream>
2 #include <string>
3 #include <cstdlib> // For getenv()
4
5 void your_username()
6 {
7
8 // Get USER environment variable
9 std::string username = getenv("USER");
10
11 // Print username to stdout
12 std::cout << username << '\n';
13
14 }
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.