how to get os name in c++
C++
#include <stdio.h>
#if defined(_WIN32) || defined(_WIN64)
const char* os = "Windows";
#else
#ifdef __linux
const char* os = "Linux";
#else
const char* os = "Unknown";
#endif
#endif
int main(void)
{
printf("os = %s\n", os);
return 0;
}
Also in C++:
- Title
- set c++
- Category
- C++
- Title
- binary tree search
- Category
- C++
- Title
- how to iterate over unordered_map c++
- Category
- C++
- Title
- erase in set
- Category
- C++
- Title
- friend function in c++
- Category
- C++
- Title
- c++ string to stream
- Category
- C++
- Title
- c++ print one line to console instead of multiple
- Category
- C++
- Title
- pyqt connect
- Category
- C++
- Title
- user input c++
- Category
- C++
- Title
- switch c++
- Category
- C++
- Title
- variabvles in c++
- Category
- C++
- Title
- c++ show time elapsed
- Category
- C++
- Title
- iostream library in cpp
- Category
- C++
- Title
- stack c++
- Category
- C++
- Title
- cloud hosting
- Category
- C++
- Title
- sieve of eratosthenes c++
- Category
- C++
- Title
- c++ compiler for sublime text
- Category
- C++
- Title
- how to ensure the user inouts a int and not anything else c++
- Category
- C++
- Title
- merge sort in c++
- Category
- C++
- Title
- how to delete an element in vector pair in cpp
- Category
- C++
- Title
- how to check datatype of a variable in c++
- Category
- C++
- Title
- c++ code 2d block
- Category
- C++
- Title
- case label in c++
- Category
- C++
- Title
- pause the console c++
- Category
- C++
- Title
- primeros numeros primos
- Category
- C++
- Title
- C++ remove element from set
- Category
- C++
- Title
- declaration vs. definition cpp
- Category
- C++
- Title
- print type cpp
- Category
- C++
- Title
- error: redefinition of ‘class Customer’
- Category
- C++
- Title
- Html tab
- Category
- C++
- Title
- c++ how to loop through a vector but not the last element
- Category
- C++
- Title
- c++ string to vector int
- Category
- C++
- Title
- string substr c++
- Category
- C++
- Title
- pass by reference c++
- Category
- C++
- Title
- rand c++
- Category
- C++
- Title
- best fit algorithm
- Category
- C++
- Title
- matrix eigen c++ example
- Category
- C++
- Title
- double to string c++
- Category
- C++
- Title
- modular exponentiation c++
- Category
- C++
- Title
- c++ vector constructors
- Category
- C++
- Title
- C++ while
- Category
- C++
- Title
- opencv compile c++
- Category
- C++
- Title
- c++ isalphanum
- Category
- C++
- Title
- can you use rand to read in from an external file inc++
- Category
- C++
- Title
- error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(s[i] != "b"){
- Category
- C++
- Title
- mao two drivers c++
- Category
- C++
- Title
- find_if c++ example
- Category
- C++
- Title
- c++ iterate over vector
- Category
- C++
- Title
- how to check a number in string
- Category
- C++
- Title
- c++ get last element in vector
- Category
- C++
- Title
- two sum problem in c++
- Category
- C++
- Title
- if not defined c++
- Category
- C++
- Title
- subarray sum in c++
- Category
- C++
- Title
- what is time complexity of insertion sort
- Category
- C++
- Title
- c++ while true
- Category
- C++
- Title
- visual studio 2019 c++ tutorial project
- Category
- C++
- Title
- c++ delet from memory
- Category
- C++
- Title
- how to use winmain function
- Category
- C++
- Title
- how to run c++ file mingw cmd
- Category
- C++
- Title
- c++ class method example
- Category
- C++
- Title
- checking an int in c++
- Category
- C++
- Title
- how to iterate through a map in c++
- Category
- C++
- Title
- how to format decimal palces in c++
- Category
- C++
- Title
- else if c++
- Category
- C++
- Title
- log base e synthax c++
- Category
- C++
- Title
- split string at index c++
- Category
- C++
- Title
- arduino delay millis
- Category
- C++
- Title
- shortest path with bfs in c++
- Category
- C++
- Title
- strchr function in c++
- Category
- C++
- Title
- compile c++ linux
- Category
- C++
- Title
- zeros of array c++
- Category
- C++
- Title
- how to reverse a vector
- Category
- C++
- Title
- remove value from vector c++
- Category
- C++
- Title
- c++ string^ to char*
- Category
- C++
- Title
- heredar constructor c++
- Category
- C++
- Title
- make an x using asterisk c++
- Category
- C++
- Title
- Runtime Error: Runtime ErrorFloating-point exception (SIGFPE
- Category
- C++
- Title
- what does the modularity mean in c++
- Category
- C++
- Title
- ios_base::sync_with_stdio(false);cin.tie(NULL);
- Category
- C++
- Title
- c++ excel cell blank cells
- Category
- C++
- Title
- c++ menu selection with arrow keys
- Category
- C++
- Title
- file objects in c++
- Category
- C++
- Title
- exponenciacion binaria
- Category
- C++
- Title
- convert int to binary string c++
- Category
- C++
- Title
- append string to another string c++
- Category
- C++
- Title
- c++ create array
- Category
- C++
- Title
- c++ give options string
- Category
- C++
- Title
- c++ over load oprator to print variable of clas
- Category
- C++
- Title
- c++ push multiple elements to vector
- Category
- C++
- Title
- how to show c++ binary files in sublime text
- Category
- C++
- Title
- simple timer arduino blynk library error
- Category
- C++
- Title
- how to dynamically allocate an array c++
- Category
- C++
- Title
- map arduino
- Category
- C++
- Title
- primeros numeors primos menores que
- Category
- C++
- Title
- how to use wasd c++
- Category
- C++
- Title
- binary tree deletion
- Category
- C++
- Title
- c++ string contains
- Category
- C++
- Title
- how to get the largest number in a c++ array
- Category
- C++
- Title
- c++ public inheritance not getting protected
- Category
- C++
- Title
- C++ and endl
- Category
- C++