User profile: jlb

User info
User name:jlb
History
Joined:
Number of posts:3788
Latest posts:

argc with segmentation fault
Well to start using argc won't cause a segmentation fault. However trying to access argv[] out of bo...

Adding an interview to the beginning of a string
Also the problem may not really be caused by using a std::string, but with the way the string is be...

How to tell wheater vector realloc fails
Really in such a memory constrained system you should be avoiding new/delete or malloc/free as much ...

Adding an interview to the beginning of a string
[quote]Aren't VLA's a GNU extension in C++?[/quote] Yes g++ has an extension to allow VLA in C++. [...

Split string that contains delimeter and store into vector pair
Why not just use a stringstream to process the string? [code] std::string my_pair{"1234:3323"}; std:...