Hi,
I have two questions. Thanks in advance for pointing out what you think about them!
1. This is a question of GDB. How to step over instead of stepping into in the following code:
for(int i = 0; i < argc; i++)
cout << (i > 0 ? " " : "") << argv << (i < argc - 1 ? " \\" : "")...
Hi,
When using "..printf Functions" with Conversion specifier type "%g", it gives different results under different environment. For example, "sprintf(string,"%g",1e-6);" gives "1e-006" in Windows (Visual C++) and "1e-06" in Linux (gcc). Maybe I am wrong about it. Is it possible to get the same...
Thanks for pointing out what I was not unware of.
Besides that, let's move back to my original question. Will it cause runtime memory error using "malloc" to allocate memory within a function and then pass on to its outside?
Hi,
I am asking for using "malloc" to allocate memory within a self-written function and then pass on to the outside of the function. I did it this way but guess that it might be the reason that caused run-time memory error. Could you please point out if it is wrong and give the correct way...
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.