mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-02 10:12:45 +08:00
MSVC does not know cstring-use string-for toString
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Required to compile std::toString function using MSVC
|
||||
#include <string>
|
||||
#else
|
||||
#include <cstring>
|
||||
#endif
|
||||
|
||||
int main() {
|
||||
int num;
|
||||
std::cout << "Enter number = ";
|
||||
|
||||
Reference in New Issue
Block a user