C/C++ printf() before scanf() issue
C |
https://codedump.io/share/9QK69QMDc8FE
|
I'm using Eclipse to code in C/C++ and I'm struggling with what might be something pretty easy. In my code below I use printf() and after scanf(). Alt...
1 year ago
C++ equivalent for C# Action passing
C++ |
https://codedump.io/share/N59ZL3blXWl2
|
can somebody help me find a solution? I want to know whether there is a C++ equivalent for the following C# code:
// C# Code here
private void Execu...
1 year ago
Triggering event in C# from C++ DLL
C# |
https://codedump.io/share/4blTzqcG7NZi
|
I have an umanaged C++ DLL which is communicating with a Cisco Server (UCCX).
It sends and receives messages to and from this server via TCP/IP. Now...
1 year ago
Wrapping C++ class API for C consumption
C |
https://codedump.io/share/kjVZo0gxmcIK
|
I have a set of related C++ classes which must be wrapped and exported from a DLL in such a way that it can be easily consumed by C / FFI libraries. I...
1 year ago
How to call C++ code from C#
C# |
https://codedump.io/share/0a0AILNmYWJP
|
I have C++ code. That code contains Windows mobile GPS enable/disable functionality. I want to call that method from C# code, that means when the user...
1 year ago
Packing and pointer aliasing, C and C++
C |
https://codedump.io/share/q7GoHANb6SEf
|
union vec
{
#pragma pack(push,1)
struct
{
float x, y, z;
}
#pragma pack(pop)
float vals[3];
};
Consider the above definition. (Ano...
1 year ago
Explicit type casting operator in C/C++
C |
https://codedump.io/share/gw2Z9WchQcWe
|
The following code converts the float type 7.5 to an integer value 7, the remainder is lost. Here, the typecasting operator is int. I know it is vali...
2 years ago
C/C++ with Android Studio version 2.2
C |
https://codedump.io/share/aTtG6jQ13x7l
|
With Android Studio 2.2, and the new C++ support they added; can I now write and compile inside android studio, or do I need to compile and import my ...
2 years ago
How much faster is C++ than C#?
C# |
https://codedump.io/share/hmRuksFj22DG
|
Or is it now the other way around?
From what I've heard there are some areas in which C# proves to be faster than C++, but I've never had the guts to...
2 years ago
Differences between Pthread in C vs C++
C |
https://codedump.io/share/4N0gZWlcg8bS
|
So I was able to pass an Ada function using Ada_function'Address to a C_function. Here is the C function:
void Create_Process(int * status, void * f...
2 years ago
sizeof a union in C/C++
C |
https://codedump.io/share/Z0l67jUmanWu
|
What is the sizeof the union in C/C++? Is it the sizeof the largest datatype inside it? If so, how does the compiler calculate how to move the stack p...
2 years ago
C++ Mutex replacement in C sharp
C# |
https://codedump.io/share/sVVXuVDHTKez
|
I have a project which is written in C++ which has functionality of file copy and folder creations. It uses the Mutex.Lock() and Mutex.unLock() method...
2 years ago
Does Arduino use C or C++?
C |
https://codedump.io/share/t6MAXcFLLsxw
|
Coming from Python, the whole C/C++ thing is kind of alien to begin with... and then I see in one place that Arduino uses 'standard' C, and in another...
2 years ago
C# method prototype like in c++
C# |
https://codedump.io/share/l3mR8WbsjzF0
|
Can I somehow make a prototype of method and declare its body in c# like I do in c++?
For Example in C++:
void foo();
int main()
{
foo();
re...
2 years ago
Which C/C++ compiler does Xcode use?
C |
https://codedump.io/share/YoDlOU4ezJww
|
I just started to get my hands dirty with C/C++, and I am still getting my head around the different concepts (I've written mostly Java previously). I...
2 years ago
C/C++ multithreded code example inconsistent data
C |
https://codedump.io/share/mnfBldwjqrj7
|
Would any of you have idea of some code in c/c++ which would
have few threads running operations on a variable or array of variables which would event...
2 years ago
Does C# clean up C++ allocated memory?
C# |
https://codedump.io/share/90RJej7gfzJn
|
I have a hypothetical COM object with the following signature
void MemAlloc(ref double[] test, int membercount)
where the memory is allocated in C+...
2 years ago
Use rspec to test C/C++ program
Ruby |
https://codedump.io/share/DXfcSj0kuxqf
|
Is Rspec ruby/rails specific? Is it possible to use it as a test framework for C/C++ program?
2 years ago
Exposing an ISO C++ class to C#
C# |
https://codedump.io/share/ctSq7SfXIHML
|
I need to expose some C++ classes to C# (I am building on Linux, using mono, so COM is not an option)
The evidence I have gathered so far suggests th...
1 year ago