Should i use inline function my program? [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a 2500 line and 76.8 kb c++ console program. I learned inline function but heard about inline function makes a trouble in huge programs. Is it true? This program is huge or not. It can be a trouble in the future. What should i do or what is your suggestion for me.
Note:Program include lots of functions.
Thanks!

Is it true?
You can check out the advantage and disadvantages of Inline Functions and justify it

Related

How can I mix C/C++ with python? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to use C++ for opengl and python for scripting various social api calls. IS there a better option?
Prototype with your OpenGL calls in python - it is much quicker to prototype than C/C++ and then see if it is quick enough - if it is then you are done - if not then find the bottlenecks and consult the documentation on C/C++ plug in to address those issues.
Note that there are python OpenGL bindings available here which already use C/C++ on the OpenGL side so should be as fast as anything you are likely to come up with quickly.

Using command line instructions in VS2010 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I would like to call from a program in VS2010 C++ a windows application using a system call.
How is that possible in Windows? I would like to compress a file using the 7z applicaition. Can I call it from the VS2010 program?
The command is: C:\Program Files\7-Zip>7z a -mx9 -tbzip2 zip1.bz2 History.txt
Thank you
You can use
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762153%28v=vs.85%29.aspx
or
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx
or
http://msdn.microsoft.com/en-us/library/windows/desktop/ms687393(v=vs.85).aspx
or
call system() function

Storing Objective-C class instance in C++ class [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is there a way to store an Objective-C class instance inside of a C++ class as a member?
You need to make a .mm file, and then you can use the features outlined here. See also a reference to Apple's old documentation on the hybrid language.

Basic C++ Pseudo-Random Number Generation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am learning C++ and something I would like to do is be able to generate pseudo-random numbers. I am aware that you can #include <random> however it seems as if that is still unstable (I could not get it to work.) Any help on the matter is appreciated. Thanks.
According to this question, #include <random> is a C++11 header. You might want to check if your compiler supports it, and that the proper flags are set.
Otherwise, have you looked at rand()? It should be enough for basic random numbers.

How drop packet with libiptc in c++? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
Is there a way to drop packets with libiptc c++?,i want a sample code for drop packet with libiptc in c++.
for this you should write a driver.
for example you can use main_hook function.