Search:

Type: Posts; User: elvio.vicosa

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    12,316

    Get CPU info

    Hello...

    I am trying to get CPU info on Linux. I need to get how many cpu\cores the CPU have. It is like "cat /proc/cpuinfo" but I am looking for a syscall or something like this. Anybody know?
    ...
  2. Replies
    2
    Views
    1,052

    Hello. Guys, i solve the problem. I will post...

    Hello.

    Guys, i solve the problem. I will post the code, it should help anybody.
    N is the size of vector
    fat is the factorial of a number
    fill and show are auxiliary functions to fill and show...
  3. Replies
    2
    Views
    1,052

    ops, the last vector i repeated a value, it is...

    ops, the last vector i repeated a value, it is wrong.. ok?. thanks
  4. Replies
    2
    Views
    1,052

    Random vector

    Hi there.

    I need to create a vector, with not repeated values.
    I have a size(i will know it in runtime), and i need all possibilities of values.
    Like:
    n = 3
    [0, 1, 2, 3]
    [0, 1, 3, 2]
    [0,...
  5. Replies
    8
    Views
    4,177

    Hi. My problem is that i must alloc a struct(...

    Hi.

    My problem is that i must alloc a struct( double x, y) and a graph( int** )
    The problem is the "salesman problem", and sometimes i need to read and alloc 33,000 cities on the
    program. So, i...
  6. Replies
    8
    Views
    4,177

    Memory dynamic allocation

    Hi guys.

    I'm trying alloc memory with malloc, but i am having problems.
    I need too much memory that malloc can alloc. I'm trying to use mmap too, but no sucess.
    Anybody can help me? I am using...
Results 1 to 6 of 6