User profile: Peter87

User info
User name:Peter87
Website:http://dataapa.net/
History
Joined:
Number of posts:9967
Latest posts:

Does C++ have anything like Java's inner classes?
[quote]You can use an anonymous namespace[/quote] Unnamed namespaces should normally not be used in ...

My final value is not consistent.
[quote=GCC][output]test.cpp:174:16: warning: iteration 50 invokes undefined behavior [-Waggressive-l...

Adding to file name using a (string)variable + "test.txt)
[code]#include <iostream> #include <string> using namespace std; int main() { string username = "...

Adding to file name using a (string)variable + "test.txt)
ifstream is used to read from files. It doesn't create files.

How to make arrays work when "Expression must have a constant value." keeps showing up
[quote]I don't think that the arrays need to be changed to vectors since the arrays themself remaine...