User profile: Gamer2015

User info
User name:Gamer2015
Name:Stefan Kreiner
Location:Austria
Website:http://github.com/Gamer2015/Openpp
Statistical data
Birthdate:Jan 19, 1996
Gender:Male
Occupation:Student
Skills:C
PHP
C++
Java
C#
Javascript
Python
Brainfuck
History
Joined:
Number of posts:810
Latest posts:

Memory allocation problem
After looking at it again... changing a pointer in a function won't change the pointer itself. This...

Friendship
yeah, exactly. But B doesn't have access to it either so it would be pretty weird if it would work t...

Friendship
Why don't you just try it? [code]#include <iostream> class A { public: A(int val) : val(val) {...

Memory allocation problem
Please add that you want a C- not a C++-solution in your question... maybe the array size is 0 and ...

array overflow
or you use the STL and use a fancy class called vector [code]#include <vector> #include <iostream> ...