Since I know that xcx[i] + dx[i] < bux[i], I decided to make small values of dx to be equal to zero. Thank you for the replies.
Type: Posts; User: nepper271
Since I know that xcx[i] + dx[i] < bux[i], I decided to make small values of dx to be equal to zero. Thank you for the replies.
Thanks for the quick reply.
But shouldn't gdb round it up too? Also, when I manually set the number to the sum using gdb, it works. And the rest of the program runs normally.
(gdb) print...
Hello everyone,
I'm having a very strange problem with my code. In an assignment, the right hand is a sum, that I verify using gdb. The left side does not take that value. Instead, it takes the...
Never mind this post. It is working now.
Sorry for the inconvenience
Hello,
I have a library which typedefs a long int
//from tpd1.h
typedef long int Int
foo is not my function, is part of a C library.
Hello all,
I have a C function
void foo (double * x, size_t s);
where x is a vector and which I know that doesn't modify x.
And I have a pointer
I normally separate the executable from the rest, and with the rest I call a library. However, in my line of work, I make libraries that other people will use (hopefully). What this mean is that I...
I'm not familiar with static_assert, so I went to make some tests. I tried this code:
#include <iostream>
using namespace std;
template < typename T > void function_create (T& a) {
Like I said first : "I'm using a library in C for my project". It's not my library. function_int_start and function_long_start are already created. I need to use them.
Actually, the C library is compiled with both definitions, and each with a different name. The functions in the C library are defined so that every difference from a long to a int is resolved with a...
Yes, the implementation is the same very much like a template, changing only the type. The problem with using template is that I can't figure out how to change the function name in the call. E.g.:
...
Hello all,
I'm using a library in C for my project. This library defines two functions for everything it does, one for int and other for long int. To use the long version, you must define...
Hello all,
I found the problem. My linking was done wrong, because of inverted order of inclusion of libraries. I didn't know that the compiler (g++) reads it from the right to the left.
Thank...
Still no solution found, nobody can help with this?
I've just made the following modification to short3.cpp:
//short3.cpp modified
#include "base_matrices.h"
using namespace base_matrices;
int main (void) {
Okay.
First of all, sorry for the big post.
I'm trying to work with CHOLMOD. There is a huge number of functions and definitions here, but all I need to include is cholmod.h, which have extern...
The final executable. If I try to include the libraries before, the compiler says they where not used.
Hello all,
I'm using some libraries made in C, in my C++ program. I must design a library that will basically encapsulate this C library. There is a test1.c example of the use of the library. I...
Try something like
X = 0
while (X != 7) {
X = call_menu()
}
i.e. put everything inside a while whose stopping condition is the quit entry.
The correct syntax is
if (exp) {
} else if (exp2) {
}
You are doing
Thank you cas, you are right.
I have changed maxG to 50 and it worked properly.
Thanks a lot for the reply,
Abel
Hello,
I have the following simple program
#include <stdio.h>
#include <math.h>
#define maxG 500
Thank you for the effort, and sorry to waste your time. I found what happened (though I haven't found where it happen yet).
The vector vCOMP was pointing to right before where S where pointing to....
Hi all,
I'm having a problem with a pointer struct to pointer passed in a function...
We'll, better show first.
void defCompraBuscaLocal ( int * vCOMP, Instancia * I, Solucao * S,...