Questions tagged as 'ponteiro'

1
answer

Program received signal sigsegv segmentation fault

I made the C code of the statement:    Develop a program that simulates a ticketing system from a   airline. The company has n flights, where in each of them there are m   places available. The first m / 2 seats on each flight are reserved fo...
asked by 12.11.2016 / 17:42
1
answer

What is the use of * in the expression "Foo * foo = new Foo" in C ++? [duplicate]

I was analyzing this question made in SOEN. There you are teaching to instantiate a particular class. I was able to understand more or less how it works, because when I use my example, it is giving error when compiling. class Pessoa {...
asked by 05.01.2016 / 15:50
0
answers

Doubt with pointers in C

Hello, I'm looking for the hrs problem in this excerpt (implementation of an avl tree) but I can not find, I pass a D for this function and its value is modified within the context, but it is not modified in the context in function is called....
asked by 04.07.2016 / 00:27
0
answers

Recover data from another process

I would like to know if there is any way in C ++ to get some data (value) from a process, but without using a pointer to memory, when I try to use the cheat engine until I find the dynamic address, but the debugger does not work to go after poin...
asked by 11.03.2016 / 22:33
1
answer

Passing by reference of a structure with vector in C!

I have the following code: #include <stdio.h> #include <stdlib.h> #include <string.h> #define TAM 3 typedef struct{ char nome[50]; char musica[50]; int integrantes; int ranki...
asked by 15.03.2016 / 20:19
1
answer

Problem with array editing outside main ()

So, guys, I'm in extreme doubt with the code below. I started to study pointers in C a few days ago and I believe it is the solution to my problem, but I do not know how to handle the code. The problem is as follows. In the multiplyMatters ()...
asked by 07.03.2016 / 07:12
1
answer

Doubt about pointers and return of functions

Hello everyone. I would like to know why the function below would need a pointer to the pointer, in this case a **root , so that the line / 1 / could modify the *root , while the line / 2 / can modify it without having to resort to i...
asked by 26.12.2015 / 23:47
1
answer

Why can not I print content in Linked List

Good evening, I have a problem with a college job. I need to create a linked list that receives student records. I created a function to register, however, I can not externally print the contents of it using the first one's pointer. I would like...
asked by 24.10.2015 / 02:28
1
answer

How to pass a pointer inside a struct per function parameter?

The situation is as follows: I have a struct with a field that is a pointer pointer, however I want to pass as a parameter in a function only the pointer pointed to, that is, the most internal pointer of that field in the struct: In code i...
asked by 25.10.2015 / 12:53
2
answers

Adding a char to a char pointer in C / C ++

I need to add char to a char pointer. For example: I have a pointer of char named name, which receives "log", after the process, I want it to be "log1". I tried to implement this, but it did not work. bool trocarNome(c...
asked by 27.04.2016 / 19:33