What do you want to save?
Add Code snippet
New code examples in category C++
-
-
David Powell 2021-08-30 04:05:03
const c++
// various versions of const are explained below #include <iostream> class Entity { private: int m_X, m_Y; mutable int var; // can be modified inside const menthods int* m_x, *m_y;// * use to create pointer in one line public: int GetX() const /... Add solution -
John 2021-08-30 00:38:01
c++ convert const char* to int
#include <iostream> #include <sstream> const char* value = "1234567"; stringstream strValue; strValue << value; unsigned int intValue; strValue >> intValue; cout << value << endl; cout << intValue <... Add solution
Best helpers
Lim
+5
Brenten1
+5
NullPointer
+5
Sg qy
+5
Bryce Wagner
+5
Lara
+5
TheBeege
+5
JCM
+5
Dasedes
+5
Mark Walsh
+5
Adb
+5
Chd
+5
Skout
+5