I have just installed linux redhat 7.2 for the first time and I am having trouble understanding its directory/file structure. Does anyone know of any websites/books that can help.
A quick add to all that. If you are using new and delete for dynamic memory allocation make sure the source file is compiled using the cpp file extension. For plain old c programming use malloc and free. Personally I think new and delete are easier to use.
James
When using the c++ cin.getline function you can use an overloaded version that allows you to enter input the name of the string where the input stream will be copied to, the size of the string and the delimiting character. Eg cin.getline(Buffer,20,'\n');
Function works fine for less than 20...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.