187 questions
Filter
- 0 votes0 answers3 views
Build a virtual server that runs a C++ program when needed.
Is there a way that I can build a virtual server (virtual meaning only on the web) that will be available 24/7. This server would hold a C++ program that would be ...
- 0 votes2 answers13 views
What's the difference between these two code?
`#include int arraySum(int arr[], int n) { int sum = 0; int i; for(i = 0; i int arraySum(int array[],const int n) { int sum = 0; int *ptr; int *const ...
- 0 votes0 answers21 views
My friend and I want to help you complete a simulation program
Write a C program which performs the multiplication of a single -dimensional array by a given value alpha (an integer) and returns the average value of the resulting ...
- 1 votes1 answers105 views
- 0 votes1 answers12 views
Realize of DEC to BIN
Realize function, which should modify DEC->BIN and BIN->DEC.
- 1 votes2 answers16 views
Realize of Vigenere Cipher
Vigenere Cipher in JS or C++/C#. Realize Encryption and Decryption by one code, when user can choose mode (Encrypt or Decrypt). Encryption: Plaintext: Hello World Key: ...
- 2 votes1 answers24 views
Realize of Caesar Cipher
Caesar Cipher in JS or C++/C#. Example Encryption: Plaintext: defend the east wall of the castle Key: 5 Encrypted Text: ijkjsi ymj jfxy bfqq tk ymj hfxyqj Decryption: Plaintext: ...
- 0 votes1 answers15 views
What is the difference between call by reference and call by address
What is the difference between call by reference and call by address in C++
- 0 votes1 answers42 views
What is the meaning of Bottom-up approach in Object Oriented programming(OOPs)
What is the meaning of Bottom-up approach in Object Oriented programming(OOPs) since procedural programming is Top-down approach. What is the difference between ...
- 0 votes1 answers11 views
Which books are good for self education in C++?
Which books are good for self education in C++?
- 1 votes0 answers18 views
- 0 votes1 answers33 views
C++ Static Variable
Can I declare static variable inside function or only within in class?
- 0 votes1 answers480 views
How to Pass vector as a function parameter in C++
How to Pass vector as a function parameter in C++
- 1 votes0 answers13 views
Processing a sorted array faster than processing an unsorted array. WHY??
Here is a piece of C++ code that shows some very peculiar behavior. For some strange reason, sorting the data miraculously makes the code almost six times faste...
- 2 votes1 answers55 views
Why sizeof(str) = 24? char *str[] = {"a", "ab", "cd"};
Thought it would be 3, the size of the array, but the answer is 24, size of 3 pointers.
- 1 votes2 answers113 views
What is std::move()
What is std::move()? When should it be used? What object is considered movable?
- 5 votes1 answers20 views
Difference between static and shared libraries
What are the differences between static and shared libraries? I prefer the answer to contain differences in terms of compilation/linage time, runtime, memory management/usage.
- 2 votes0 answers19 views
Google C++ style says "No exceptions"
Look at Google's C++ guide. It says, "We do not use C++ exceptions." Ok, they don't write code with exceptions, but what baffles me is that what about STL, don't ...
- 0 votes0 answers77 views
C++11 with difference G++. Error on namespace std::chrono_literals
I'm running the example from cppreference.com, and it fails with my GCC 5.4. The error message is error: 'chrono_literals' is not a namespace-name ->g++ --version g++ ...
- 1 votes0 answers17 views
C/C++: directory from where a program is running
How do I get the directory a program is running from? Don't be confused with the current working directory ($PWD). Please give a platform-agnostic and filesystem-agnostic ...