Posts by Vitor Carlos • 120 points
5 posts
-
1
votes1
answer647
viewsQ: Dynamic allocation in C++
I was learning a little bit more about dynamic allocation in C++ on the Internet, and a teacher’s code caught my attention. It is a code made to spend only the necessary memory and not have "blank…
-
1
votes1
answer379
viewsQ: What are the differences and advantages between "typedef struct" and "struct"?
I saw that the structure statement is not a standard among many programmers, while some use the typedef struct, others use only struct. Which is best to use? Has some difference in performance?…
-
4
votes1
answer83
viewsQ: Is it possible to use logical operators within "Cout"? - C++
I would like to know if you have how to use logical operators and/or ternary operator within the Cout, as well as is possible within the printf. int main () { int n = 5; //Como fazer isso (Funciona)…
c++asked Vitor Carlos 120 -
-1
votes1
answer49
viewsA: abstract class error (invalid new-Expression of Abstract) C++
the "getpreco" function was not remade in the children
-
3
votes1
answer273
viewsQ: How to assign a character to a string position?
I’m having some difficulty assigning a character to a certain position of string. I researched a lot before asking here and found nothing. Criticism is always welcome. This function is a part of a…