Beginners (Page 20)

by emcp
Apple CLang - Classes call to implicitly-deleted copy constructor???
I have been following a book about concurrent C++ code execution, trying to get one of the examples ...
[9 replies] Last: The code might have been designed against an outdated standard library... (by mbozzi)
by Mif
Read lines in text file from a certain line 'C'
Hello again.. I have one question, How can I read lines from a text file from a certain position? ...
[11 replies] Last: Okay dutch I solved I just added this line after the first strncat... (by Mif)
by skcpp
Stack and heap addresses
In this simple line of code, my understanding is that the "new" below simply initializes the data st...
[2 replies] Last: Awesome! Thanks dutch. (by skcpp)
by PK Dey
gets is undefined
when i debug the following code using MSVS-2019 compiler says that "gets" is undefined. it means tha...
[3 replies] Last: Two reasons not to use gets_s: 1. Although it is a C11 feature, it is ... (by dutch)
by Mif
Need Help with a warning.. 'C'
Hello.. I get this warning when I try to compile: 1430 Warning: 'fptr2' may be used uninitialized...
[14 replies] Last: Vindication! (Thanks MikeyBoy!) (by dutch)
by PK Dey
base name of class
When I go to add a class in my project there is a option to give base name. I don't know what is bas...
[4 replies] Last: Yes! I am using MSVS. Thanks to you all! (by PK Dey)
HAPPY 2021 everyone! I am stuck with a simple task and asking for any reference , help or recommen...
[4 replies] Last: FreeBSD libc (FreeBSD-2-Clause license): /* * Portable strlen() for... (by JLBorges)
by skcpp
High Address Preference in Stack
Is it true that structures are stored in stack starting from the highest hexadecimal address and in ...
[2 replies] Last: Thanks dutch. Neat response! It makes sense that the "heap" grows upwa... (by skcpp)
by kmce
shared pointers
I have a question about shared pointers, I found code on a site that is talking about shared pointer...
[9 replies] Last: That's a good question. Remember that it's a question of ownership, wh... (by dutch)
Binary Searching
Hello there! I just have a question. How can I solve this problem. It keeps getting error and I don'...
[2 replies] Last: Hello NoobCoder2333, In regards to the question that you deleted. You... (by Handy Andy)
by siid14
Segmentation Fault: 11
I get a segmentation fault, I do not understand why. Checked my code seems fine... Trying to get the...
[3 replies] Last: it means nothing on stack to trace, but why would that happen? It is ... (by coder777)
by skcpp
Changing the starting address of an array (1,2)
Is there a use case at all for needing to change the starting address of an array at run time? The l...
[20 replies] Last: It's fun trying to work it out though. seems to be allocating ... (by lastchance)
Review of Code C++
I feel that much of the code is to par for a homework assignment. Yes, I'm being upfront about this ...
[7 replies] Last: > why is "using namespace std" considered bad practice? It is conside... (by JLBorges)
Get string and save in array of pointers in C++
Hello, I would like to get 10 string from the input and save in array of pointers. Like this: ...
[7 replies] Last: If there must be an array of pointers, we can do this: #include <ios... (by JLBorges)
by skcpp
Memory Mgmt in C++ (Basic Question)
Similar to malloc and calloc in good old C, does the developer need to manually manage memory alloca...
[7 replies] Last: the c++ containers can be used in place of new and delete if you want ... (by jonnin)
Implementing queue using an array
Hello guys. I am trying to implement a queue by using an array. However my code has some flaws so pl...
[6 replies] Last: Thank you all very much for your precious posts! (by geovoulg)
by skcpp
Data type on stack
When a object or a pointer is declared with a data type, is the data type also stored on stack, and ...
[10 replies] Last: Duh! Thanks it works now :-) (by skcpp)
Passing function pointer down through multiple functions
This may have been a little bit of a complicated project to start with especially since I knew nothi...
[7 replies] Last: You have Callback CallBack and _callback . No wonder you can't ke... (by dhayden)
Rhombus star pattern
What i can change in this code so it would print 8 rows without asking? #include <stdio.h> ...
[6 replies] Last: As C without multiple for loops, consider: #define _CRT_SECURE_NO_W... (by seeplus)
Storing words into an array from a file in reverse order, and write into a new File.
So, I'm currently trying to figure out how to open a file that has a ton of different words of diffe...
[17 replies] Last: @OP Despite your green tick an interesting problem arises if all the... (by againtry)
Pages: 1... 181920212223
  Archived months: [dec2020]

Cannot post in this page. To post a new message, go to the first page.